New package: giac-1.4.9r17

Closes #9334.
This commit is contained in:
cr6git 2017-11-19 10:25:26 +01:00 committed by Enno Boland
parent 42cc908d3e
commit cd22dc9007
7 changed files with 73 additions and 0 deletions

View file

@ -2891,6 +2891,7 @@ libtacacs.so.1 tacacs-4.0.4.28_1
libffms2.so.4 libffms2-2.23.1_1
libduktape.so.201 duktape-2.1.1_1
liblsmash.so.2 liblsmash-2.9.1_1
libgiac.so.0 libgiac-1.4.9r17_1
libgnustep-base.so.1.25 gnustep-base-1.25.0_1
libtermbox.so.1 termbox-1.1.0_1
libmysofa.so.0 libmysofa-0.6_1

1
srcpkgs/giac-devel Symbolic link
View file

@ -0,0 +1 @@
giac

1
srcpkgs/giac-doc Symbolic link
View file

@ -0,0 +1 @@
giac

View file

@ -0,0 +1,11 @@
--- src/first.h.orig 2017-09-22 20:44:12.000000000 +0200
+++ src/first.h 2017-11-14 15:26:53.529711489 +0100
@@ -503,7 +503,7 @@
#if defined(__MINGW_H) || defined(VISUALC) // FIXME gamma, not used
inline float fgamma(float f1){ return f1; }
#else
-inline float fgamma(float f1){ return gammaf(f1); } // or tgammaf(f1) on some versions of emscripten
+inline float fgamma(float f1){ return tgammaf(f1); } // or tgammaf(f1) on some versions of emscripten
#endif
#endif
inline float atan2f(float f1,float f2,int rad){ if (rad) return atan2f(f1,f2); else return atan2f(f1,f2)*180/M_PI;}

View file

@ -0,0 +1,11 @@
--- src/History.cc.orig 2017-10-02 10:23:46.000000000 +0200
+++ src/History.cc 2017-11-14 15:42:12.119849965 +0100
@@ -3828,7 +3828,7 @@
// mode_s += "Time: ";
// double t=double(clock());
// mode_s += xcas::print_DOUBLE_(t/CLOCKS_PER_SEC);
-#ifdef HAVE_MALLOC_H //
+#if defined HAVE_MALLOC_H && defined __GLIBC__ //
struct mallinfo mem=mallinfo();
double memd=mem.arena+mem.hblkhd;
mode_s +=xcas::print_DOUBLE_(memd/1048576);

47
srcpkgs/giac/template Normal file
View file

@ -0,0 +1,47 @@
# Template file for 'giac'
pkgname=giac
version=1.4.9r17
revision=1
wrksrc="${pkgname}-${version/r*}"
build_style=gnu-configure
makedepends="fltk-devel gmp-devel gsl-devel lapack-devel
libjpeg-turbo-devel libpng-devel readline-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Free computer algebra system"
maintainer="cr6git <quark6@protonmail.com>"
homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
license="GPL-3"
distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/${pkgname}_${version/r/-}.tar.gz"
checksum=5d2d5856b58b882509428e00b26bee64bee468966bbe4b5423b74768c0e14b39
post_install() {
# remove duplicates
rm -r ${DESTDIR}/usr/share/doc
}
libgiac_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
giac-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} $makedepends"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
giac-doc_package() {
short_desc+=" - Documentation and Examples"
pkg_install() {
vmove "usr/share/giac/doc"
vmove "usr/share/giac/examples"
find ${PKGDESTDIR} -name "Makefile*" -delete
}
}

1
srcpkgs/libgiac Symbolic link
View file

@ -0,0 +1 @@
giac