From fa29a1de69029f0e9e973dbf073b4d5f55f0a08f Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Sun, 11 May 2014 22:33:29 +0000 Subject: [PATCH] pari: added a recipe for version 2.7.0 --- sci-mathematics/pari/pari-2.7.0.recipe | 80 +++++++++++++++++ .../pari/patches/pari-2.7.0.patchset | 89 +++++++++++++++++++ 2 files changed, 169 insertions(+) create mode 100644 sci-mathematics/pari/pari-2.7.0.recipe create mode 100644 sci-mathematics/pari/patches/pari-2.7.0.patchset diff --git a/sci-mathematics/pari/pari-2.7.0.recipe b/sci-mathematics/pari/pari-2.7.0.recipe new file mode 100644 index 000000000..abf2ceeb3 --- /dev/null +++ b/sci-mathematics/pari/pari-2.7.0.recipe @@ -0,0 +1,80 @@ +SUMMARY="A specialized computer algebra system." +DESCRIPTION=" +PARI/GP is a specialized computer algebra system, primarily aimed at number \ +theorists, but has been put to good use in many other different fields, from \ +topology or numerical analysis to physics. +Although quite an amount of symbolic manipulation is possible, PARI does \ +badly compared to systems like Axiom, Magma, Maple, Mathematica, Maxima, or \ +Reduce on such tasks, e.g.~multivariate polynomials, formal integration, \ +etc. On the other hand, the three main advantages of the system are its \ +speed, the possibility of using directly data types which are familiar to \ +mathematicians, and its extensive algebraic number theory module (from \ +the above-mentioned systems, only Magma provides similar features). +" +HOMEPAGE="http://pari.math.u-bordeaux.fr/" +SRC_URI="http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-$portVersion.tar.gz" +CHECKSUM_SHA256="ffe9940194b4a1274d8aa690d985e11539be36fcdd2215b74c39b30470a567c2" +LICENSE="GNU GPL v2" +COPYRIGHT=" + 2000-2014 The PARI Group, Bordeaux + " +REVISION="1" +ARCHITECTURES="x86 ?x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="?x86_gcc2 x86" + +PATCHES="$portVersionedName.patchset" + +PROVIDES=" + pari$secondaryArchSuffix = $portVersion compat >= 2 + cmd:gp + cmd:gp_2.7 + cmd:gphelp + cmd:tex2mail + lib:libpari_gmp$secondaryArchSuffix = $portVersion compat >= 2 + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libgmp$secondaryArchSuffix + lib:libncurses$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libgmp$secondaryArchSuffix + devel:libncurses$secondaryArchSuffix + " + +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:sed + " + +BUILD() +{ + ./Configure --prefix=$prefix --bindir=$binDir --includedir=$includeDir \ + --libdir=$libDir --mandir=$manDir --datadir=$dataDir \ + --sysdatadir=$sysDataDir + cd Ohaiku-* + make $jobArgs all + cd .. +} + +INSTALL() +{ + make install + rm $libDir/libpari.so + prepareInstalledDevelLib libpari-gmp + fixPkgconfig + packageEntries devel $developDir +} + +PROVIDES_devel=" + pari${secondaryArchSuffix}_devel = $portVersion compat >= 2 + devel:libpari_gmp$secondaryArchSuffix = $portVersion compat >= 2 + " +REQUIRES_devel=" + pari$secondaryArchSuffix == $portVersion base + " diff --git a/sci-mathematics/pari/patches/pari-2.7.0.patchset b/sci-mathematics/pari/patches/pari-2.7.0.patchset new file mode 100644 index 000000000..6c490c68f --- /dev/null +++ b/sci-mathematics/pari/patches/pari-2.7.0.patchset @@ -0,0 +1,89 @@ +From c34479129ddc5c5517c534a5650af347fa3fc537 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Sat, 10 May 2014 12:15:25 +0000 +Subject: we only use release versions, no point in checking .git + + +diff --git a/config/version b/config/version +index 6583ea3..4ec323e 100644 +--- a/config/version ++++ b/config/version +@@ -19,14 +19,6 @@ patchlevel_verbose= + + case "$stat" in # $stat rewritten by config/settar ? + *git-*) patchlevel_verbose="[ $stat ]";; +- *) if test -d "$TOP/.git"; then +- t=`git rev-list HEAD 2>/dev/null | wc -l` # ~ svn revision number +- T=`git log -1 --pretty=format:%h` # commit hash +- if test -z "$t"; then t=0; fi +- vcsversion=$t-$T +- status="$stat $vcsversion" +- patchlevel_verbose="[ $status ]" +- fi + esac + version=$VersionMajor.$VersionMinor + pari_release="$version.$patch" +-- +1.8.3.4 + + +From 1ef615f242aa68b60b9ce3c4f23c0e628688c266 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Sat, 10 May 2014 12:44:58 +0000 +Subject: Haiku support. + + +diff --git a/config/arch-osname b/config/arch-osname +index 5da1bc8..515bcfd 100755 +--- a/config/arch-osname ++++ b/config/arch-osname +@@ -74,6 +74,8 @@ if test -n "$myuname"; then + case $arch in i386-*) arch=i386;;esac;; + aix) arch=`uname -p`; + case $arch in powerpc) arch=ppc;;esac;; ++ haiku) arch=`uname -p` ++ ;; + esac + fi + echo $arch-$osname +diff --git a/config/get_dlld b/config/get_dlld +index 2272aac..10632d5 100644 +--- a/config/get_dlld ++++ b/config/get_dlld +@@ -9,7 +9,7 @@ DLSUFFIX=so + soname=.$soname_num + do_dll=yes + case "$osname" in +- gnu*|aix|osf1|solaris|linux|freebsd|netbsd) ++ gnu*|aix|osf1|solaris|linux|freebsd|netbsd|haiku) + case $pari_release_verbose in + *STABLE*) sodest=.$version.$patch;; # released version + *DEVELOPMENT*) sodest=.$patch.0.0;; # unstable version +diff --git a/config/get_ld b/config/get_ld +index 9a8482d..ec7b9da 100644 +--- a/config/get_ld ++++ b/config/get_ld +@@ -3,6 +3,7 @@ + _ld_list='LD LDFLAGS LIBS runpathprexix LDneedsWl LDused GNULDused' + case "$osname" in + darwin) LIBS= ;; ++ haiku) LIBS= ;; + osf1) LIBS='-lm -lots';; + *) LIBS=-lm;; + esac +diff --git a/config/get_libc b/config/get_libc +index 513a983..1e42fdd 100644 +--- a/config/get_libc ++++ b/config/get_libc +@@ -2,7 +2,7 @@ + exe=$osname-$arch-tmp$$ + _has_list= + echo Looking in C lib for some symbols... +-extra_flags=-lm ++#extra_flags=-lm + list=exp2; . ./look + list=log2; . ./look + extra_flags= +-- +1.8.3.4 +