diff options
author | jtb <jtb> | 2001-03-07 20:57:48 +0000 |
---|---|---|
committer | jtb <jtb> | 2001-03-07 20:57:48 +0000 |
commit | e3244b97a50b1041d1dcf8b45f851759a1eb68a0 (patch) | |
tree | 9c01a17c9e36c4def00dd846e0f001b0ebf9e9fc /math | |
parent | 1a47fc63544e0c6f09f9d2bf8c2e2d716909581c (diff) | |
download | pkgsrc-e3244b97a50b1041d1dcf8b45f851759a1eb68a0.tar.gz |
Initial import of pari.
PARI-GP is a package which is aimed at efficient computations in
number theory, but also contains a large number of other useful
functions. It is somewhat related to a Computer Algebra System, but
is not really one since it treats symbolic expressions as mathematical
entities such as matrices, polynomials, series, etc..., and not as
expressions per se. However it is often much faster than other CAS,
and contains a large number of specific functions not found elsewhere,
essentially for use in number theory.
This package can be used in an interactive shell (GP) or as a C/C++
library (PARI). It is free software, in the sense of freedom AND 'free
of charge'.
Diffstat (limited to 'math')
-rw-r--r-- | math/pari/Makefile | 29 | ||||
-rw-r--r-- | math/pari/files/md5 | 3 | ||||
-rw-r--r-- | math/pari/files/patch-sum | 5 | ||||
-rw-r--r-- | math/pari/patches/patch-aa | 217 | ||||
-rw-r--r-- | math/pari/patches/patch-ab | 81 | ||||
-rw-r--r-- | math/pari/patches/patch-ac | 13 | ||||
-rw-r--r-- | math/pari/pkg/DESCR | 12 | ||||
-rw-r--r-- | math/pari/pkg/PLIST | 43 |
8 files changed, 403 insertions, 0 deletions
diff --git a/math/pari/Makefile b/math/pari/Makefile new file mode 100644 index 00000000000..ac46f8a501f --- /dev/null +++ b/math/pari/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/03/07 20:57:48 jtb Exp $ + +DISTNAME= pari-2.1.0 +CATEGORIES= math +MASTER_SITES= ftp://www.gn-50uma.de/gn/gn-50uma.de/pari-2.1/ \ + http://www.gn-50uma.de/ftp/pari-2.1/ + +MAINTAINER= jtb@netbsd.org +HOMEPAGE= http://www.parigp-home.de +COMMENT= PARI-GP is a software package for computer-aided number theory + +DEPENDS+= readline>=4.0:../../devel/readline +BUILD_DEPENDS+= ${LOCALBASE}/bin/emacs:../../editors/emacs +BUILD_DEPENDS+= ${LOCALBASE}/bin/tex:../../print/teTeX + +USE_PERL5= #defined +USE_X11= #defined +HAS_CONFIGURE= #defined +CONFIGURE_SCRIPT= ${WRKSRC}/Configure +CONFIGURE_ARGS+= --prefix=${PREFIX} +EVAL_PREFIX+= READLINE_PREFIX=readline +CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} +CONFIGURE_ENV+= X11BASE=${X11BASE} +CONFIGURE_ENV+= READLINE_PREFIX=${READLINE_PREFIX} +CONFIGURE_ENV+= miscdir=${PREFIX}/share/pari +CONFIGURE_ARGS+= --graphic=X11 +REPLACE_NCURSES= ${WRKSRC}/Configure + +.include "../../mk/bsd.pkg.mk" diff --git a/math/pari/files/md5 b/math/pari/files/md5 new file mode 100644 index 00000000000..2b9809b87be --- /dev/null +++ b/math/pari/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2001/03/07 20:57:48 jtb Exp $ + +MD5 (pari-2.1.0.tar.gz) = 7cff208a621d2368ca0052c457b3b3cd diff --git a/math/pari/files/patch-sum b/math/pari/files/patch-sum new file mode 100644 index 00000000000..d15f87941d2 --- /dev/null +++ b/math/pari/files/patch-sum @@ -0,0 +1,5 @@ +$NetBSD: patch-sum,v 1.1.1.1 2001/03/07 20:57:48 jtb Exp $ + +MD5 (patch-aa) = a403b4654daa07a4095e5eb392e221de +MD5 (patch-ab) = 82f558054bd73eadd3528c0f50f11b96 +MD5 (patch-ac) = b968d5daccbe0846ffa824ec0a02339d diff --git a/math/pari/patches/patch-aa b/math/pari/patches/patch-aa new file mode 100644 index 00000000000..d3d57508d2d --- /dev/null +++ b/math/pari/patches/patch-aa @@ -0,0 +1,217 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/03/07 20:57:51 jtb Exp $ + +--- Configure.orig Mon Nov 13 14:35:43 2000 ++++ Configure +@@ -148,35 +148,10 @@ + pth="\ + /bin\ + /usr/bin\ +- /usr/locateal/bin\ +- /usr/ucb\ +- /usr/locateal\ +- /usr/lbin\ +- /usr/5bin\ +- /etc\ +- /usr/etc\ +- /usr/gnu/bin\ +- /usr/new\ +- /usr/new/bin\ +- /usr/nbin\ +- /sys5.3/bin\ +- /sys5.3/usr/bin\ +- /bsd4.3/bin\ +- /bsd4.3/usr/ucb\ +- /bsd4.3/usr/bin\ +- /usr/bsd\ +- /bsd43/bin\ +- /opt/ansic/bin\ +- /usr/ccs/bin\ ++ $LOCALBASE/bin\ + /usr/lib\ +- /usr/ucblib\ +- /lib\ +- /usr/ccs/lib\ +- /sbin\ +- /usr/sbin\ +- /usr/libexec\ +- /usr/openwin/bin\ +- /usr/local/bin\ ++ $LOCALBASE/lib\ ++ $READLINE_PREFIX/lib + " + # /usr/openwin/bin added for xmkmf + +@@ -252,6 +227,13 @@ + *RT625*) arch=sparcv8_super;; # HyperSparc + *CY605*) arch=sparcv8_super;; + esac;; ++ netbsd) case "`uname -m`" in ++ alpha) arch=alpha;; ++ hp300) arch=hppa;; ++ i386) arch=ix86;; ++ sun3) arch=m64k;; ++ *) arch=none;; ++ esac;; + sunos) case "$3" in 5*) osname=solaris;; esac + case "$5" in + sun3*) arch=m68k;; +@@ -294,7 +276,7 @@ + ========================================================================== + I know of the following Operating Systems + EOM +- rep='os2 freebsd cygwin linux hpux aix osf1 solaris sunos nextstep concentrix irix'; ++ rep='os2 freebsd netbsd cygwin linux hpux aix osf1 solaris sunos nextstep concentrix irix'; + . ./display + echo $n ..."Any of these apply ? $c" + dflt=$osname; . ./myread +@@ -330,7 +312,7 @@ + # Modifications for pretty name and asm file + # + case "$osname" in +- cygwin*|linux|freebsd|os2) pretty="$pretty running $osname";; ++ cygwin*|linux|freebsd|netbsd|os2) pretty="$pretty running $osname";; + nextstep) pretty="$pretty running $osname"; + if test "$arch" = m68k; then asmarch=none; fi ;; + esac +@@ -427,20 +409,9 @@ + fi;; + os2) libpth=`echo $LIBRARY_PATH | sed 's/;/ /g' | sed 's,\\\\,/,g'`;; + *) libpth="\ +- /usr/local/lib\ +- /lib\ + /usr/lib\ +- /opt/lib\ +- /opt/local/lib\ +- /opt/gnu/lib\ +- /lib/pa1.1\ +- /usr/lib/large\ +- /lib/large\ +- /usr/lib/small\ +- /lib/small\ +- /usr/ccs/lib\ +- /usc/ucblib\ +- /usr/shlib\ ++ $LOCALBASE/lib\ ++ $READLINE_PREFIX/lib\ + .\ + ";; + esac +@@ -523,9 +494,9 @@ + if test -n "$readline"; then + # Readline -- TermCap + if test -n "`(nm $rl_fullname | grep tgetent)2>/dev/null`"; then +- lib=ncurses; . ./locatelib ++ lib=curses; . ./locatelib + if test -n "$try" -a -n "`(nm $try | grep tgetent)2>/dev/null`"; then +- rl_ncurses=$ncurses ++ rl_curses=$curses + else + lib=termcap; . ./locatelib + rl_termcap=$termcap +@@ -546,17 +517,8 @@ + $cygtop/H-${arch}-cygwin32/${arch}-cygwin32/include\ + ";; + *) incpth="\ +- /usr/local/include/readline\ +- /usr/include/readline\ +- /opt/include/readline\ +- /opt/local/include/readline\ +- /opt/gnu/include/readline\ +- /usr/unsupported/include/readline\ +- /usr/local/include\ +- /usr/include\ +- /opt/include\ +- /opt/local/include\ +- /opt/gnu/include\ ++ $LOCALBASE/include\ ++ $READLINE_PREFIX/include/readline + ";; + esac + pth="$readline_add $incpth" +@@ -591,10 +553,10 @@ + # in case headers are not installed correctly + RLINCLUDE="-I$rl_include -DREADLINE_LIBRARY" + fi +- RLLIBS="-L$readline -lreadline" +- if test -n "$rl_ncurses"; then +- echo ..."Library ncurses needed by readline" +- RLLIBS="$RLLIBS -lncurses" ++ RLLIBS="-R$readline -L$readline -lreadline" ++ if test -n "$rl_curses"; then ++ echo ..."Library curses needed by readline" ++ RLLIBS="$RLLIBS -lcurses" + fi + if test -n "$rl_termcap"; then + echo ..."Library termcap needed by readline" +@@ -649,33 +611,7 @@ + # X11 -- Headers + if test ! -f $Xincroot/X11/Xos.h; then + x11pth="\ +- /usr/openwin/share/lib\ +- /usr/openwin/lib\ +- /usr/X11R6/lib\ +- /usr/X11R5/lib\ +- /usr/X11R4/lib\ +- /usr/lib/X11R6\ +- /usr/lib/X11R5\ +- /usr/lib/X11R4\ +- /usr/local/X11R6/lib\ +- /usr/local/X11R5/lib\ +- /usr/local/X11R4/lib\ +- /usr/local/lib/X11R6\ +- /usr/local/lib/X11R5\ +- /usr/local/lib/X11R4\ +- /usr/X11/lib\ +- /usr/lib/X11\ +- /usr/local/X11/lib\ +- /usr/local/lib/X11\ +- /usr/X386/lib\ +- /usr/x386/lib\ +- /usr/XFree86/lib/X11\ +- /usr/lib\ +- /usr/local/lib\ +- /usr/unsupported/lib\ +- /usr/athena/lib\ +- /usr/local/x11r5/lib\ +- /usr/lpp/Xamples/lib\ ++ $X11BASE/lib\ + "; + pth=`echo $x11pth | s,/lib,/include,g` + x=`./locate X11/Xos.h '' $pth` +@@ -816,8 +752,8 @@ + if test -n "$__gnuc__"; then + __GNUC__="-D__GNUC__" + warn="-Wall -Wno-implicit" +- OPTFLAGS="-O3 -DGCC_INLINE $warn" +- DBGFLAGS="-g $warn" ++ OPTFLAGS="-DGCC_INLINE $warn" ++ DBGFLAGS="$warn" + # Some architectures need -fPIC for building dynamic lib + case "$osname-$arch" in hpux-*) DLCFLAGS=-fPIC;; esac + # Specific optimisations for some architectures +@@ -937,6 +873,7 @@ + esac;; + solaris-*) LD=$CC; LDFLAGS=$cflags; runpathprefix=-R ;; + os2-*) LD=$CC; LDFLAGS="$cflags -Zexe" ;; ++ netbsd-*) LD=$CC ;; + *) LD=$CC; LDFLAGS=$cflags ;; + esac + +@@ -1156,7 +1093,7 @@ + dflt=$prefix/man/man1; . ./myread; mandir=$ans + + echo $n ..."documentation, help scripts, and emacs macros ? $c" +-dflt=$prefix/lib/pari; . ./myread; miscdir=$ans ++dflt=$prefix/share/pari; . ./myread; miscdir=$ans + + echo $n ..."miscellaneous data (galois resolvents) ? $c" + dflt=$miscdir/data; . ./myread; datadir=$ans +@@ -1211,7 +1148,7 @@ + case "$osname" in + *cygwin*) LDDYN="-L$libdir -lpari_dll" ; runpath="$libdir" ; + DYNLIBS=-lpari_dll ; DYNFLAGS=-Dlibpari_USE_DLL ;; +- *) LDDYN="-L$libdir -lpari" ; runpath="$libdir" ;; ++ *) LDDYN="-R$libdir -L$libdir -lpari" ; runpath="$libdir" ;; + esac + + cat << EOT diff --git a/math/pari/patches/patch-ab b/math/pari/patches/patch-ab new file mode 100644 index 00000000000..81c96af1e7d --- /dev/null +++ b/math/pari/patches/patch-ab @@ -0,0 +1,81 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/03/07 20:57:51 jtb Exp $ + +--- config/Makefile.SH.orig Mon Mar 27 17:43:42 2000 ++++ config/Makefile.SH +@@ -80,7 +80,7 @@ + X11) + PLOTFILE=plotX.c + PLOTCFLAGS=-I$Xincroot +- PLOTLIBS="-L$X11 -lX11 $extralib" ++ PLOTLIBS="-R$X11 -L$X11 -lX11 $extralib" + if test "$osname" = concentrix; then PLOTLIBS="-lX11"; fi + plotrunpath=$X11 + ;; +@@ -160,8 +160,9 @@ + INCLUDEDIR = $includedir + + INSTALL = $cfg/install +-INSTALL_PROGRAM = \$(INSTALL) +-INSTALL_DATA = \$(INSTALL) -m 644 ++INSTALL_PROGRAM = \$(BSD_INSTALL_PROGRAM) ++INSTALL_SCRIPT = \$(BSD_INSTALL_SCRIPT) ++INSTALL_DATA = \$(BSD_INSTALL_DATA) + + # Graphic library. + PLOTFILE = $PLOTFILE +@@ -257,21 +258,21 @@ + \$(INSTALL_DATA) \$\$i.h \$(INCLUDEDIR); done + -for i in $hlist; do \\ + \$(INSTALL_DATA) $src/headers/\$\$i.h \$(INCLUDEDIR); done +- -\$(RM) \$(INCLUDEDIR)/genpari.h ++# -\$(RM) \$(INCLUDEDIR)/genpari.h + -\$(LN) pari.h \$(INCLUDEDIR)/genpari.h + + install-bin: install-bin-$dft + + install-bin-dyn: gp-dyn + -mkdir -p \$(BINDIR) +- -\$(RM) \$(BINDIR)/gp-$version \$(BINDIR)/gp$exe_suff ++# -\$(RM) \$(BINDIR)/gp-$version \$(BINDIR)/gp$exe_suff + -\$(LD) -o \$(BINDIR)/gp-$version \$(LDFLAGS) \$(OBJSGP) \$(RUNPTH_FINAL) \$(TOPLDDYN) \$(LDDYN) \$(PLOTLIBS) \$(LIBS) +- strip \$(BINDIR)/gp-$version ++# strip \$(BINDIR)/gp-$version + -\$(LN) gp-$version$exe_suff \$(BINDIR)/gp$exe_suff + + install-bin-sta: gp-sta + -mkdir -p \$(BINDIR) +- -\$(RM) \$(BINDIR)/gp-$version \$(BINDIR)/gp$exe_suff ++# -\$(RM) \$(BINDIR)/gp-$version \$(BINDIR)/gp$exe_suff + \$(INSTALL_PROGRAM) gp-sta$exe_suff \$(BINDIR)/gp-$version$exe_suff + -\$(LN) gp-$version$exe_suff \$(BINDIR)/gp$exe_suff + # Can't strip it if we want install() to work on Linux or OSF. +@@ -281,17 +282,17 @@ + -mkdir -p \$(MANDIR) + \$(INSTALL_DATA) $doc/gphelp.1 \$(MANDIR) + \$(INSTALL_DATA) $doc/gp.1 \$(MANDIR) +- -\$(RM) \$(MANDIR)/pari.1 ++# -\$(RM) \$(MANDIR)/pari.1 + -\$(LN) gp.1 \$(MANDIR)/pari.1 + + install-misc: $install_emacs_files +- \$(INSTALL_PROGRAM) $misc/tex2mail \$(BINDIR) ++ \$(INSTALL_SCRIPT) $misc/tex2mail \$(BINDIR) + + install-doc: + -mkdir -p \$(MISCDIR) + -mkdir -p \$(BINDIR) + -cd $doc; \$(MAKE) all +- -\$(INSTALL_PROGRAM) $doc/gphelp \$(BINDIR) ++ -\$(INSTALL_SCRIPT) $doc/gphelp \$(BINDIR) + -\$(INSTALL_DATA) $doc/translations \$(MISCDIR) + -\$(INSTALL_DATA) $doc/paricfg.tex \$(MISCDIR) + -\$(INSTALL_DATA) $doc/parimacro.tex \$(MISCDIR) +@@ -311,7 +312,7 @@ + + install-lib-sta: libpari.a + -mkdir -p \$(LIBDIR) +- -\$(RM) \$(LIBDIR)/libpari.a ++# -\$(RM) \$(LIBDIR)/libpari.a + \$(INSTALL_DATA) libpari.a \$(LIBDIR)/libpari.a.$version + -\$(LN) libpari.a.$version \$(LIBDIR)/libpari.a + diff --git a/math/pari/patches/patch-ac b/math/pari/patches/patch-ac new file mode 100644 index 00000000000..1a95959dcaf --- /dev/null +++ b/math/pari/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/03/07 20:57:51 jtb Exp $ + +--- src/kernel/ix86/l0asm.c.orig Fri Nov 3 21:00:25 2000 ++++ src/kernel/ix86/l0asm.c +@@ -36,7 +36,7 @@ + global variable `hiremainder'. */ + + /* This should ideally be determined at configure time. */ +-#if defined(__EMX__) || defined(__DJGCC__) || defined(__GO32__) || (defined(linux) && !defined(__ELF__)) || defined(__386BSD__) || defined(__NetBSD__) || (defined(__FreeBSD__) && !defined(__ELF__)) || defined(NeXT) || defined(__CYGWIN32__) || defined(__MINGW32__) ++#if defined(__EMX__) || defined(__DJGCC__) || defined(__GO32__) || (defined(linux) && !defined(__ELF__)) || defined(__386BSD__) || defined(__NetBSD__) && !defined(__ELF__)|| (defined(__FreeBSD__) && !defined(__ELF__)) || defined(NeXT) || defined(__CYGWIN32__) || defined(__MINGW32__) + # define ASM_UNDERSCORE + #endif + diff --git a/math/pari/pkg/DESCR b/math/pari/pkg/DESCR new file mode 100644 index 00000000000..bd270df08f4 --- /dev/null +++ b/math/pari/pkg/DESCR @@ -0,0 +1,12 @@ +PARI-GP is a package which is aimed at efficient computations in +number theory, but also contains a large number of other useful +functions. It is somewhat related to a Computer Algebra System, but +is not really one since it treats symbolic expressions as mathematical +entities such as matrices, polynomials, series, etc..., and not as +expressions per se. However it is often much faster than other CAS, +and contains a large number of specific functions not found elsewhere, +essentially for use in number theory. + +This package can be used in an interactive shell (GP) or as a C/C++ +library (PARI). It is free software, in the sense of freedom AND 'free +of charge'. diff --git a/math/pari/pkg/PLIST b/math/pari/pkg/PLIST new file mode 100644 index 00000000000..eb59f2b9930 --- /dev/null +++ b/math/pari/pkg/PLIST @@ -0,0 +1,43 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/07 20:57:48 jtb Exp $ +bin/gp +bin/gp-2.1 +bin/gphelp +bin/tex2mail +include/pari/genpari.h +include/pari/pari.h +include/pari/paricast.h +include/pari/paricfg.h +include/pari/paricom.h +include/pari/paridecl.h +include/pari/parierr.h +include/pari/parigen.h +include/pari/pariinl.h +include/pari/pariport.h +include/pari/paristio.h +include/pari/parisys.h +include/pari/paritype.h +lib/libpari.a +lib/libpari.a.2.1 +man/man1/gp.1 +man/man1/gphelp.1 +man/man1/pari.1 +share/pari/pari-translator.el +share/pari/pari.el +share/pari/pari.elc +share/pari/paricfg.tex +share/pari/pariemacs.txt +share/pari/parimacro.tex +share/pari/refcard.dvi +share/pari/refcard.ps +share/pari/translations +share/pari/tutorial.dvi +share/pari/users.dvi +share/pari/usersch1.tex +share/pari/usersch2.tex +share/pari/usersch3.tex +share/pari/usersch4.tex +share/pari/usersch5.tex +share/pari/with-syntax.el +@dirrm include/pari +@unexec rmdir %D/share/pari/data 2>/dev/null || true +@dirrm share/pari |