99 lines
2.7 KiB
Bash
99 lines
2.7 KiB
Bash
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/"
|
|
COPYRIGHT="2000-2016 The PARI Group, Bordeaux"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="4"
|
|
SOURCE_URI="http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/2.7/pari-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="39a797222e33b8498777d4bca7b0d64acebddecc9f478578ada87d769289b811"
|
|
PATCHES="pari-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
pari$secondaryArchSuffix = $portVersion compat >= 2
|
|
cmd:gp$secondaryArchSuffix
|
|
cmd:gp_2.7$secondaryArchSuffix
|
|
cmd:gphelp$secondaryArchSuffix
|
|
cmd:tex2mail$secondaryArchSuffix
|
|
lib:libpari_gmp$secondaryArchSuffix = $portVersion compat >= 2
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
pari_data == $portVersion
|
|
lib:libgmp$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
pari${secondaryArchSuffix}_devel = $portVersion compat >= 2
|
|
devel:libpari_gmp$secondaryArchSuffix = $portVersion compat >= 2
|
|
"
|
|
REQUIRES_devel="
|
|
pari$secondaryArchSuffix == $portVersion base
|
|
devel:libgmp$secondaryArchSuffix
|
|
devel:libncurses$secondaryArchSuffix
|
|
"
|
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
SUMMARY_data="A specialized computer algebra system (data files)"
|
|
ARCHITECTURES_data="any"
|
|
PROVIDES_data="
|
|
pari_data = $portVersion
|
|
"
|
|
REQUIRES_data=""
|
|
fi
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgmp$secondaryArchSuffix
|
|
devel:libncurses$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:diff
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
./Configure --prefix=$prefix --bindir=$binDir --includedir=$includeDir \
|
|
--libdir=$libDir --mandir=$manDir --datadir=$dataDir \
|
|
--sysdatadir=$libDir/pari
|
|
make -C Ohaiku-* $jobArgs all
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
rm $libDir/libpari.so
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $dataDir $documentationDir
|
|
else
|
|
packageEntries data $dataDir
|
|
fi
|
|
|
|
prepareInstalledDevelLib libpari-gmp
|
|
fixPkgconfig
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make dobench
|
|
# make test-all
|
|
}
|