diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2021-03-31 08:42:19 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2021-04-01 17:48:37 -0400 |
commit | 320334104e3e56e4fff1f1f821e74f7a122dfd57 (patch) | |
tree | 2ac46098dc1c8840c53009f29b3e7ce30fc8bd44 /sci-mathematics/giac/files | |
parent | games-strategy/wesnoth: Bump to version 1.15.11. Removed old (diff) | |
download | gentoo-320334104e3e56e4fff1f1f821e74f7a122dfd57.tar.gz gentoo-320334104e3e56e4fff1f1f821e74f7a122dfd57.tar.bz2 gentoo-320334104e3e56e4fff1f1f821e74f7a122dfd57.zip |
sci-mathematics/giac: new package for the Giac/Xcas math systems.
We have bugzilla requests for this package going back to 2005! The
SageMath suite has recently gained the ability to use Giac from the
system, so now is an especially good time to add it to the tree.
François Bissey has been maintaining this package for years in the
sage-on-gentoo overlay and contributing fixes upstream, so the ebuild
required only minor changes at this point. I personally thank him and
you should too.
Closes: https://bugs.gentoo.org/94539
Closes: https://bugs.gentoo.org/94542
Closes: https://bugs.gentoo.org/760684
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-mathematics/giac/files')
-rw-r--r-- | sci-mathematics/giac/files/giac-1.6.0-pari-2.11.patch | 17 | ||||
-rw-r--r-- | sci-mathematics/giac/files/giac-1.7.0.1-gsl_lapack.patch | 84 |
2 files changed, 101 insertions, 0 deletions
diff --git a/sci-mathematics/giac/files/giac-1.6.0-pari-2.11.patch b/sci-mathematics/giac/files/giac-1.6.0-pari-2.11.patch new file mode 100644 index 000000000000..24142257a340 --- /dev/null +++ b/sci-mathematics/giac/files/giac-1.6.0-pari-2.11.patch @@ -0,0 +1,17 @@ +Change test output for PARI 2.11 + +See https://trac.sagemath.org/ticket/25567 +and https://xcas.univ-grenoble-alpes.fr/forum/viewtopic.php?f=4&t=2102 + +diff -ru a/check/TP11-sol.cas.out1 b/check/TP11-sol.cas.out1 +--- a/check/TP11-sol.cas.out1 2014-10-21 10:51:48.000000000 +0200 ++++ b/check/TP11-sol.cas.out1 2018-08-07 17:04:12.528052773 +0200 +@@ -10,7 +10,7 @@ + 1073741824000000000000000000061203284109000000000000000000000000008409, + 2^3*3*389*733*156904374622257604823879982847602392900751802349981470895277241, + "Done", +-matrix[[2,7,1],[3,2,1],[389,2,1],[733,2,1],[156904374622257604823879982847602392900751802349981470895277241,2,matrix[[2,13,1],[3,3,1],[5,2,1],[7,2,1],[56467,2,1],[6553084925887974620811527,2,matrix[[2,5,1],[19,2,1],[71,2,1],[126823,2,1]]]]]], ++1, + 0, + [], + 1, diff --git a/sci-mathematics/giac/files/giac-1.7.0.1-gsl_lapack.patch b/sci-mathematics/giac/files/giac-1.7.0.1-gsl_lapack.patch new file mode 100644 index 000000000000..073762ec6a47 --- /dev/null +++ b/sci-mathematics/giac/files/giac-1.7.0.1-gsl_lapack.patch @@ -0,0 +1,84 @@ +diff --git a/configure.ac b/configure.ac +index 44fd519..0a6bad7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -38,6 +38,7 @@ AC_LANG([C++]) + AC_PROG_LIBTOOL + AC_PROG_YACC + AM_PROG_LEX ++PKG_PROG_PKG_CONFIG + AC_C_BIGENDIAN + + dnl Check for standard C+headers +@@ -225,47 +226,17 @@ AC_CHECK_SIZEOF(long) + AC_CHECK_SIZEOF(long long) + + dnl Checking for Gnu Sci Lib +-CONFIG_GSL="yes" +-AC_ARG_ENABLE([gsl],[ +- AS_HELP_STRING([--enable-gsl], [Use GNU scientific library [[default=yes]]])], +- [ if test "x$enableval" = "xno"; then CONFIG_GSL="no"; fi], []) +- +-if test "$CONFIG_GSL" = "yes"; then +- AC_CHECK_HEADERS(gsl/gsl_blas.h) +- AC_CHECK_HEADERS(gsl/gsl_eigen.h) +- if test "$ac_cv_header_gsl_gsl_blas_h" != "yes" -o "$ac_cv_header_gsl_gsl_eigen_h" != "yes"; then +- CONFIG_GSL="no" +- fi +-fi +-if test "$CONFIG_GSL" = "yes"; then +- save_LIBS="$LIBS" +- AC_CHECK_LIB(gslcblas, main, [], [CONFIG_GSL="no"]) +- AC_CHECK_LIB(gsl, gsl_sf_gamma, [], [CONFIG_GSL="no"]) +- LIBS="$save_LIBS" +- fi +-GSL_LIBS="" +-if test "$CONFIG_GSL" = "yes"; then +- GSL_LIBS="-lgsl -lgslcblas" +- fi +-AC_SUBST(CONFIG_GSL) +-AC_SUBST(GSL_LIBS) +-AM_CONDITIONAL(CONFIG_GSL, [test "$CONFIG_GSL" = "yes"]) +- +-CONFIG_LAPACK="yes" +-AC_ARG_ENABLE([lapack], +- [AS_HELP_STRING([--enable-lapack], [Use LAPACK [[default=yes]]])], +- [ if test "$enableval" = "no"; then CONFIG_LAPACK="no"; fi], []) +- +-if test "$CONFIG_LAPACK" = "yes"; then +-# AC_CHECK_LIB(f2c, main, [], [CONFIG_LAPACK="no"]) +-# AC_CHECK_LIB(blas, main, [], [CONFIG_LAPACK="no"]) +-# AC_CHECK_LIB(tmglib, main, [], [CONFIG_LAPACK="no"]) +- AC_CHECK_LIB(gfortran, main) +- AC_CHECK_LIB(blas, main) +- AC_CHECK_LIB(lapack, main, [], [CONFIG_LAPACK="no"]) +-# AX_BLAS([have_blas=yes],[have_blas=no]) +-# AX_LAPACK([have_lapack=yes],[have_lapack=no]) +-fi ++PKG_CHECK_MODULES([GSL], [gsl],[ ++ AC_DEFINE(HAVE_LIBGSL,1, [Define if gsl is installed]) ++ AC_SUBST(GSL_LIBS)]) ++ ++PKG_CHECK_MODULES([LAPACK], [lapack],[ ++ AC_DEFINE(HAVE_LIBLAPACK,1,[Define if LAPACK is installed]) ++ AC_SUBST(LAPACK_LIBS)]) ++ ++PKG_CHECK_MODULES([BLAS], [blas],[ ++ AC_DEFINE(HAVE_BLAS,1,[Define if BLAS is installed]) ++ AC_SUBST(BLAS_LIBS)]) + + dnl if test "$CONFIG_PARI" = "yes"; then + dnl AC_MSG_CHECKING([whether PARI is configured with pthreads]) +diff --git a/src/Makefile.am b/src/Makefile.am +index bb77986..d385fd0 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -16,7 +16,7 @@ libgiac_la_SOURCES = input_lexer.ll sym2poly.cc gausspol.cc threaded.cc \ + caseval.c cutils.c graphic.c libbf.c libregexp.c libunicode.c \ + qjsgiac.c quickjs.c quickjs-libc.c js.c + +-libgiac_la_LIBADD = $(NTL_LIBS) $(COCOA_LIBS) $(PARI_LIBS) $(GSL_LIBS) ++libgiac_la_LIBADD = $(NTL_LIBS) $(COCOA_LIBS) $(PARI_LIBS) $(GSL_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) + + giacincludedir = $(includedir)/giac + giacinclude_HEADERS = dispatch.h fraction.h gen.h desolve.h misc.h ti89.h \ |