aboutsummaryrefslogtreecommitdiff
path: root/math/pari
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-06-05 21:42:13 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-06-05 21:42:13 +0000
commit8887f148c041116e74d09c134a8b4594f62e6139 (patch)
tree6bedda2b1bfddadee5f0cbc4695d9ba63ab6a3b5 /math/pari
parentb50c4a004fcfcbcd06e3a4cadd315b15fa469127 (diff)
downloadports-8887f148c041116e74d09c134a8b4594f62e6139.tar.gz
ports-8887f148c041116e74d09c134a8b4594f62e6139.zip
Notes
Diffstat (limited to 'math/pari')
-rw-r--r--math/pari/Makefile32
-rw-r--r--math/pari/distinfo6
-rw-r--r--math/pari/files/patch-Configure14
-rw-r--r--math/pari/files/patch-af134
-rw-r--r--math/pari/files/patch-ag16
-rw-r--r--math/pari/files/patch-config-TOP_Make.SH10
-rw-r--r--math/pari/files/patch-config_arch-osname23
-rw-r--r--math/pari/pkg-descr5
-rw-r--r--math/pari/pkg-plist112
-rw-r--r--math/pari/pkg-plist.emacs76
-rw-r--r--math/pari/pkg-plist.emacs.noperl86
-rw-r--r--math/pari/pkg-plist.emacs.perl89
-rw-r--r--math/pari/pkg-plist.perl80
13 files changed, 435 insertions, 248 deletions
diff --git a/math/pari/Makefile b/math/pari/Makefile
index 913000e0263c..68f7d9864f25 100644
--- a/math/pari/Makefile
+++ b/math/pari/Makefile
@@ -14,38 +14,40 @@ DISTNAME= pari-${MAJOR_VERSION}.${MINOR_VERSION}.${REV_VERSION}
MAINTAINER= yoshiaki@kt.rim.or.jp
COMMENT= Mathmatics library and advanced calculator package
-CONFLICTS= pari-2.2.*
-
-EXTRACT_SUFX= .tgz
-NO_LATEST_LINK= yes
INSTALLS_SHLIB= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= Configure
CONFIGURE_ARGS= --prefix=${PREFIX} --share-prefix=${PREFIX}/share
-#USE_GMAKE= yes
MAKE_ARGS= gp
PLIST_SUB= MAJOR_VERSION=${MAJOR_VERSION} MINOR_VERSION=${MINOR_VERSION} REV_VERSION=${REV_VERSION}
MAJOR_VERSION= 2
-MINOR_VERSION= 1
-REV_VERSION= 7
+MINOR_VERSION= 3
+REV_VERSION= 0
-MAN1= gp.1 gphelp.1 tex2mail.1
+MAN1= gp.1 gphelp.1 gp-${MAJOR_VERSION}.${MINOR_VERSION}.1 tex2mail.1
MLINKS= gp.1 pari.1
.include <bsd.port.pre.mk>
+post-install:
+ @if [ -L ${PREFIX}/man/man1/pari.1 ]; then \
+ ${RM} -f ${PREFIX}/man/man1/pari.1 ;\
+ fi
+
HAVE_EMACS!= ${WHICH} emacs || ${ECHO} nope
+HAVE_PERL!= ${WHICH} perl || ${ECHO} nope
.if ${HAVE_EMACS} != "nope"
-PLIST= ${PKGDIR}/pkg-plist.emacs
+.if ${HAVE_PERL} != "nope"
+PLIST= ${PKGDIR}/pkg-plist.emacs.perl
+.else
+PLIST= ${PKGDIR/pkg-plit.emacs.noperl
+.endif
+.else
+.if ${HAVE_PERL} != "nope"
+PLIST= ${PKGDIR}/pkg-plist.perl
.endif
-
-.if ${ARCH} == "amd64"
-CFLAGS+= -fPIC
.endif
-
-post-patch:
- @${REINPLACE_CMD} -e 's|-O3|"${CFLAGS}"|' ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.post.mk>
diff --git a/math/pari/distinfo b/math/pari/distinfo
index 89f5c526661a..94623e1a7435 100644
--- a/math/pari/distinfo
+++ b/math/pari/distinfo
@@ -1,3 +1,3 @@
-MD5 (pari-2.1.7.tgz) = 357b7a42e89e2761a5367bbcbfcca5f2
-SHA256 (pari-2.1.7.tgz) = 9142f2cdaf3083c8962f1a5c2bb0e9fe8915f7d9490c03312ac2361c7ea155fa
-SIZE (pari-2.1.7.tgz) = 1542137
+MD5 (pari-2.3.0.tar.gz) = ea685da18e015a4365965e82e6e2a2dd
+SHA256 (pari-2.3.0.tar.gz) = e8d1ddbeb15e0df04e97ed274804ca2c790950327bdffa852388a31b57b1e10f
+SIZE (pari-2.3.0.tar.gz) = 2009553
diff --git a/math/pari/files/patch-Configure b/math/pari/files/patch-Configure
deleted file mode 100644
index f79872eac213..000000000000
--- a/math/pari/files/patch-Configure
+++ /dev/null
@@ -1,14 +0,0 @@
---- Configure.orig Fri Nov 26 00:58:25 2004
-+++ Configure Sun Jan 9 18:53:28 2005
-@@ -1006,7 +1006,10 @@
- # aix-*) DLSUFFIX=a ;; dynamic linking does not work!
- sunos-*) sodest=$VersionMajor$VersionMinor.$patch
- soname=$sodest;;
-- gnu-*|*-alpha|solaris-*|linux-*|freebsd-*)
-+ freebsd-*)
-+ sodest=1
-+ soname=$sodest;;
-+ gnu-*|*-alpha|solaris-*|linux-*)
- case $libpari_base in
- pari) sodest=$version.$patch;; # released versions
- *) sodest=$patch.0.0;; # unstable versions
diff --git a/math/pari/files/patch-af b/math/pari/files/patch-af
index a3ca00ca1e21..d38cb95063bf 100644
--- a/math/pari/files/patch-af
+++ b/math/pari/files/patch-af
@@ -1,15 +1,67 @@
---- config/Makefile.SH.orig Sat Apr 26 04:08:14 2003
-+++ config/Makefile.SH Tue Feb 28 19:07:18 2006
-@@ -183,7 +183,7 @@
- LIBDIR = \$(DESTDIR)$libdir
- BINDIR = \$(DESTDIR)$bindir
- DATADIR= \$(DESTDIR)$datadir
--MANDIR = \$(DESTDIR)$mandir
-+MANDIR = \$(DESTDIR)\${PREFIX}/man/man1
- ALLDIR = \$(DESTDIR)$miscdir
- READMEDIR = \$(ALLDIR)
- DOCDIR = \$(ALLDIR)/doc
-@@ -355,7 +355,7 @@
+--- config/Makefile.SH.orig Tue Jan 17 00:52:21 2006
++++ config/Makefile.SH Tue Feb 28 18:09:23 2006
+@@ -162,7 +162,7 @@
+ CC_FLAVOR =
+ CC = $CC \$(CC_FLAVOR)
+ CPPFLAGS = $CPPFLAGS
+-CFLAGS = $CFLAGS
++CFLAGS = $CFLAGS -fPIC
+ DLCFLAGS = $DLCFLAGS
+ LD_FLAVOR = \$(CC_FLAVOR)
+ LD = $LD \$(LD_FLAVOR)
+@@ -221,13 +221,15 @@
+
+ # Change these installation directories to suit your needs.
+ # DESTDIR is used to install to a false hierachy (to build a Debian package)
+-INCLUDEDIR= "\$(DESTDIR)$includedir"
+-LIBDIR = "\$(DESTDIR)$libdir"
+-BINDIR = "\$(DESTDIR)$bindir"
+-MANDIR = "\$(DESTDIR)$mandir"
+-EMACSDIR = "\$(DESTDIR)$emacsdir"
+-DATADIR = "\$(DESTDIR)$datadir"
+-SYSDATADIR= "\$(DESTDIR)$sysdatadir"
++INCLUDEDIR= "\$(DESTDIR)$includedir"
++LIBDIR = "\$(DESTDIR)$libdir"
++BINDIR = "\$(DESTDIR)$bindir"
++MANDIR = "\$(DESTDIR)\${PREFIX}/man/man1"
++EMACSDIR = "\$(DESTDIR)$emacsdir"
++ALLDIR = "\${PREFIX}/share/doc/pari"
++READMEDIR = "\$(ALLDIR)"
++DATADIR = "\$(ALLDIR)"
++SYSDATADIR= "\$(DESTDIR)$sysdatadir"
+
+ EXDIR = \$(DATADIR)/examples
+ MISCDIR = \$(DATADIR)/misc
+@@ -385,7 +387,7 @@
+ -\$(LN) gp.1 \$(MANDIR)/pari.1
+ -\$(LN) gp-$version.1 \$(MANDIR)/gp.1
+
+-install-misc: $install_emacs_files
++install-misc: $install_emacs_files install-top
+ -mkdir -p \$(MISCDIR) \$(BINDIR)
+ \$(INSTALL_PROGRAM) $misc/tex2mail \$(BINDIR)
+ \$(INSTALL_DATA) $doc/tex2mail.1 \$(MANDIR)
+@@ -398,6 +400,19 @@
+ \$(INSTALL_DATA) $misc/pari.xpm \$(MISCDIR)
+ \$(INSTALL_PROGRAM) $misc/xgp \$(MISCDIR)
+
++install-top::
++ -mkdir -p \$(READMEDIR)
++ \$(INSTALL_DATA) $TOP/AUTHORS \$(READMEDIR)
++ \$(INSTALL_DATA) $TOP/Announce.2.1 \$(READMEDIR)
++ \$(INSTALL_DATA) $TOP/CHANGES \$(READMEDIR)
++ \$(INSTALL_DATA) $TOP/COMPAT \$(READMEDIR)
++ \$(INSTALL_DATA) $TOP/COPYING \$(READMEDIR)
++ \$(INSTALL_DATA) $TOP/CVS.txt \$(READMEDIR)
++ \$(INSTALL_DATA) $TOP/MACHINES \$(READMEDIR)
++ \$(INSTALL_DATA) $TOP/NEW \$(READMEDIR)
++ \$(INSTALL_DATA) $TOP/README \$(READMEDIR)
++ \$(INSTALL_DATA) $TOP/TODO \$(READMEDIR)
++
+ install-cfg::
+ -mkdir -p \$(SYSDATADIR)
+ -\$(INSTALL_DATA) pari.cfg \$(SYSDATADIR)
+@@ -408,7 +423,7 @@
install-doc::
-mkdir -p \$(BINDIR) \$(DOCDIR)
@@ -18,14 +70,16 @@
-\$(INSTALL_PROGRAM) $doc/gphelp \$(BINDIR)
-\$(INSTALL_DATA) $doc/Makefile \$(DOCDIR)
-\$(INSTALL_DATA) $doc/translations \$(DOCDIR)
-@@ -374,10 +374,10 @@
+@@ -426,11 +441,11 @@
-\$(INSTALL_DATA) $doc/usersch4.tex \$(DOCDIR)
-\$(INSTALL_DATA) $doc/usersch5.tex \$(DOCDIR)
-\$(INSTALL_DATA) $doc/paricfg.tex \$(DOCDIR)
+- -\$(INSTALL_DATA) $doc/libpari.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/users.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/tutorial.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/refcard.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/refcard.ps \$(DOCDIR)
++# -\$(INSTALL_DATA) $doc/libpari.dvi \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/users.dvi \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/tutorial.dvi \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/refcard.dvi \$(DOCDIR)
@@ -33,49 +87,15 @@
install-examples:
-mkdir -p \$(EXDIR)
-@@ -395,8 +395,8 @@
- -\$(INSTALL_DATA) $ex/taylor.gp \$(EXDIR)
-
- install-data:
-- -mkdir -p \$(DATADIR)
-- -for f in $data/*; do \$(INSTALL_DATA) \$\$f \$(DATADIR); done 2>/dev/null
-+# -mkdir -p \$(DATADIR)
-+# -for f in $data/*; do \$(INSTALL_DATA) \$\$f \$(DATADIR); done 2>/dev/null
+@@ -524,9 +539,9 @@
+ --eval '(setq load-path (append (list ".") load-path))' \
+ -f batch-byte-compile *.el
- install-lib-sta: \$(LIBPARI_STA)
- -mkdir -p \$(LIBDIR)
-@@ -408,6 +408,7 @@
- -mkdir -p \$(LIBDIR)
- -\$(RM) \$(LIBDIR)/\$(LIBPARI_DYN)
- \$(INSTALL_PROGRAM) \$(LIBPARI_DYN) \$(LIBDIR)/\$(LIBPARI_DYN)
-+ \$(LN) \$(LIBPARI_DYN) \$(LIBDIR)/\$(LIBPARI_SO)
- EOT
- if test "$soname" != "$sodest"; then
- cat >> $file << EOT
-@@ -436,6 +437,7 @@
- \$(LIBPARI_DYN): \$(OBJS)
- -\$(RM) \$(LIBPARI_DYN)
- \$(DLLD) -o \$@ \$(DLLDFLAGS) \$(OBJS) \$(EXTRADLLDFLAGS)
-+ \$(LN) \$(LIBPARI_DYN) \$(LIBPARI_SO)
- EOT
- if test "$soname" != "$sodest"; then
- cat >> $file << EOT
-@@ -464,13 +466,13 @@
-
- if test -n "$emacs"; then
- cat >> $file << EOT
--$pari_elc: $emx/pari.el
-- @echo "Byte-Compiling pari.el..."
-- -cd $emx; $emacs -batch -l compile
-+#$pari_elc: $emx/pari.el
-+# @echo "Byte-Compiling pari.el..."
-+# -cd $emx; $emacs -batch -l compile
-
--$install_emacs_files: $pari_elc
-+$install_emacs_files: # $pari_elc
+-$install_emacs_files: elc
++$install_emacs_files: #elc
-mkdir -p \$(EMACSDIR)
-- -\$(INSTALL_DATA) $pari_elc \$(EMACSDIR)
-+# -\$(INSTALL_DATA) $pari_elc \$(EMACSDIR)
- \$(INSTALL_DATA) $emx/pari.el \$(EMACSDIR)
- \$(INSTALL_DATA) $emx/pariemacs.txt \$(EMACSDIR)
- \$(INSTALL_DATA) $emx/with-syntax.el \$(EMACSDIR)
+- -cd $emx; for f in *.elc *.el pariemacs.txt; do \
++ -cd $emx; for f in *.el pariemacs.txt; do \
+ \$(INSTALL_DATA) \$\$f \$(EMACSDIR); \
+ done
+ EOT
diff --git a/math/pari/files/patch-ag b/math/pari/files/patch-ag
index 2dab4d12f161..1c33689bfc43 100644
--- a/math/pari/files/patch-ag
+++ b/math/pari/files/patch-ag
@@ -1,9 +1,11 @@
---- doc/appb.tex.orig Sat Sep 17 01:50:48 2005
-+++ doc/appb.tex Tue Feb 28 19:07:18 2006
-@@ -35,5 +35,5 @@
- seen in detail in \secref{se:prog}, with the slight modifications explained
- at the end of that section.
+--- doc/appb.tex.orig Mon Dec 13 12:29:22 2004
++++ doc/appb.tex Sun Jan 9 18:34:08 2005
+@@ -30,7 +30,7 @@
+ $(CC) $(CFLAGS) -o extgcd extgcd.c -lpari -lm
+ @eprog
--\bprogfile{../examples/matexp.c}
+-\noindent We then give the listing of the program \kbd{examples/extgcd.c}
+\bprogfile{./matexp.c}
- \vfill\eject
+ seen in detail in \secref{se:prog}.
+
+ \bprogfile{../examples/extgcd.c}
diff --git a/math/pari/files/patch-config-TOP_Make.SH b/math/pari/files/patch-config-TOP_Make.SH
new file mode 100644
index 000000000000..716beb1e12d5
--- /dev/null
+++ b/math/pari/files/patch-config-TOP_Make.SH
@@ -0,0 +1,10 @@
+--- config/TOP_Make.SH.orig Thu Jan 15 04:33:33 2004
++++ config/TOP_Make.SH Sun Jan 9 18:38:25 2005
+@@ -38,7 +38,6 @@
+ @echo "Available extra tests: test-all $top_test_extra"
+
+ all::
+- @-cd doc && \$(MAKE) doc
+ @\$(MAKE) gp
+
+ gp bench test-kernel test-all $top_test_extra $top_dotest_extra install cleanobj cleantest install-bin install-doc install-data install-lib-sta install-bin-sta dobench tune::
diff --git a/math/pari/files/patch-config_arch-osname b/math/pari/files/patch-config_arch-osname
deleted file mode 100644
index 9d48a2f0ecfc..000000000000
--- a/math/pari/files/patch-config_arch-osname
+++ /dev/null
@@ -1,23 +0,0 @@
-
-$FreeBSD$
-
---- config/arch-osname.orig Mon Apr 2 00:10:23 2001
-+++ config/arch-osname Tue Nov 12 22:24:03 2002
-@@ -10,11 +10,16 @@
- irix*) osname=irix;;
- fx2800) arch=fx2800; osname=concentrix;;
- hp*) arch=hppa; osname=hpux;;
-- freebsd|os2) arch=ix86;;
-+ os2) arch=ix86;;
- ultrix) arch=mips;;
- nextstep) arch=`file /bin/sh | sed 's/.*(for architecture \(.*\))/\1/'`;;
- osf1) case "$5" in alpha) arch=alpha;; esac;;
- cygwin*) arch=$HOSTTYPE; osname=cygwin;;
-+ freebsd) arch=`uname -m`
-+ case $arch in
-+ i386) arch=ix86;;
-+ sparc64) arch=sparcv9;;
-+ esac;;
- linux) arch=`uname -m`
- case "`cat /proc/cpuinfo`" in
- *SuperSparc*) arch=sparcv8_super;;
diff --git a/math/pari/pkg-descr b/math/pari/pkg-descr
index 1b45a7b85662..42424f3450ed 100644
--- a/math/pari/pkg-descr
+++ b/math/pari/pkg-descr
@@ -9,3 +9,8 @@ application (for instance written in C, C++, Pascal or Fortran);
2) as a sophisticated programmable calculator, named GP, which contains
most of the standard control instructions of a standard language
like C.
+
+This is the alpha quality version that development is in the way.
+Algorithm, improvement of implementation are done.
+Because improvement of performance was big, ports was made as -devel in
+particular.
diff --git a/math/pari/pkg-plist b/math/pari/pkg-plist
index 6a13b6b823c4..b1242759f90e 100644
--- a/math/pari/pkg-plist
+++ b/math/pari/pkg-plist
@@ -1,10 +1,14 @@
-bin/gp-2.1
+bin/gp-%%MAJOR_VERSION%%.%%MINOR_VERSION%%
bin/gp
bin/tex2mail
bin/gphelp
include/pari/paricfg.h
include/pari/pariinl.h
include/pari/pari.h
+include/pari/parinf.h
+include/pari/pariold.h
+include/pari/paripriv.h
+include/pari/paritune.h
include/pari/paritype.h
include/pari/paricast.h
include/pari/paricom.h
@@ -15,57 +19,59 @@ include/pari/parisys.h
include/pari/pariport.h
include/pari/paridecl.h
include/pari/genpari.h
+lib/libpari.so.%%MAJOR_VERSION%%.%%MINOR_VERSION%%.%%REV_VERSION%%
+lib/libpari.so.%%MAJOR_VERSION%%
lib/libpari.so
-lib/libpari.so.1
-share/doc/pari/AUTHORS
-share/doc/pari/Announce.2.1
-share/doc/pari/CHANGES
-share/doc/pari/COMPAT
-share/doc/pari/COPYING
-share/doc/pari/CVS.txt
-share/doc/pari/MACHINES
-share/doc/pari/NEW
-share/doc/pari/README
-share/doc/pari/TODO
-share/doc/pari/misc/README
-share/doc/pari/misc/color.dft
-share/doc/pari/misc/gpalias
-share/doc/pari/misc/gpflog
-share/doc/pari/misc/gprc.dft
-share/doc/pari/misc/new.dic
-share/doc/pari/misc/pari.xpm
-share/doc/pari/misc/xgp
-share/doc/pari/doc/Makefile
-share/doc/pari/doc/translations
-share/doc/pari/doc/appa.tex
-share/doc/pari/doc/appb.tex
-share/doc/pari/doc/appc.tex
-share/doc/pari/doc/paricfg.tex.in
-share/doc/pari/doc/paricfg.tex
-share/doc/pari/doc/parimacro.tex
-share/doc/pari/doc/pdfmacs.tex
-share/doc/pari/doc/refcard.tex
-share/doc/pari/doc/tutorial.tex
-share/doc/pari/doc/users.tex
-share/doc/pari/doc/usersch1.tex
-share/doc/pari/doc/usersch2.tex
-share/doc/pari/doc/usersch3.tex
-share/doc/pari/doc/usersch4.tex
-share/doc/pari/doc/usersch5.tex
-share/doc/pari/examples/EXPLAIN
-share/doc/pari/examples/Inputrc
-share/doc/pari/examples/Makefile
-share/doc/pari/examples/bench.gp
-share/doc/pari/examples/cl.gp
-share/doc/pari/examples/classno.gp
-share/doc/pari/examples/contfrac.gp
-share/doc/pari/examples/lucas.gp
-share/doc/pari/examples/matexp.c
-share/doc/pari/examples/rho.gp
-share/doc/pari/examples/squfof.gp
-share/doc/pari/examples/taylor.gp
+lib/pari/pari.cfg
+%%DOCSDIR%%/AUTHORS
+%%DOCSDIR%%/Announce.2.1
+%%DOCSDIR%%/CHANGES
+%%DOCSDIR%%/COMPAT
+%%DOCSDIR%%/COPYING
+%%DOCSDIR%%/CVS.txt
+%%DOCSDIR%%/MACHINES
+%%DOCSDIR%%/NEW
+%%DOCSDIR%%/README
+%%DOCSDIR%%/TODO
+%%DOCSDIR%%/misc/README
+%%DOCSDIR%%/misc/color.dft
+%%DOCSDIR%%/misc/gpalias
+%%DOCSDIR%%/misc/gpflog
+%%DOCSDIR%%/misc/gprc.dft
+%%DOCSDIR%%/misc/new.dic
+%%DOCSDIR%%/misc/pari.xpm
+%%DOCSDIR%%/misc/xgp
+%%DOCSDIR%%/doc/Makefile
+%%DOCSDIR%%/doc/translations
+%%DOCSDIR%%/doc/appa.tex
+%%DOCSDIR%%/doc/appb.tex
+%%DOCSDIR%%/doc/appc.tex
+%%DOCSDIR%%/doc/paricfg.tex
+%%DOCSDIR%%/doc/parimacro.tex
+%%DOCSDIR%%/doc/pdfmacs.tex
+%%DOCSDIR%%/doc/refcard.tex
+%%DOCSDIR%%/doc/tutorial.tex
+%%DOCSDIR%%/doc/users.tex
+%%DOCSDIR%%/doc/usersch1.tex
+%%DOCSDIR%%/doc/usersch2.tex
+%%DOCSDIR%%/doc/usersch3.tex
+%%DOCSDIR%%/doc/usersch4.tex
+%%DOCSDIR%%/doc/usersch5.tex
+%%DOCSDIR%%/examples/EXPLAIN
+%%DOCSDIR%%/examples/Inputrc
+%%DOCSDIR%%/examples/Makefile
+%%DOCSDIR%%/examples/bench.gp
+%%DOCSDIR%%/examples/cl.gp
+%%DOCSDIR%%/examples/classno.gp
+%%DOCSDIR%%/examples/contfrac.gp
+%%DOCSDIR%%/examples/extgcd.c
+%%DOCSDIR%%/examples/lucas.gp
+%%DOCSDIR%%/examples/rho.gp
+%%DOCSDIR%%/examples/squfof.gp
+%%DOCSDIR%%/examples/taylor.gp
@dirrm include/pari
-@dirrm share/doc/pari/misc
-@dirrm share/doc/pari/doc
-@dirrm share/doc/pari/examples
-@dirrm share/doc/pari
+@dirrm lib/pari
+@dirrm %%DOCSDIR%%/misc
+@dirrm %%DOCSDIR%%/doc
+@dirrm %%DOCSDIR%%/examples
+@dirrm %%DOCSDIR%%
diff --git a/math/pari/pkg-plist.emacs b/math/pari/pkg-plist.emacs
deleted file mode 100644
index 7458f5cd7449..000000000000
--- a/math/pari/pkg-plist.emacs
+++ /dev/null
@@ -1,76 +0,0 @@
-bin/gp-2.1
-bin/gp
-bin/tex2mail
-bin/gphelp
-include/pari/paricfg.h
-include/pari/pariinl.h
-include/pari/pari.h
-include/pari/paritype.h
-include/pari/paricast.h
-include/pari/paricom.h
-include/pari/parierr.h
-include/pari/parigen.h
-include/pari/paristio.h
-include/pari/parisys.h
-include/pari/pariport.h
-include/pari/paridecl.h
-include/pari/genpari.h
-lib/libpari.so.1
-lib/libpari.so
-share/doc/pari/emacs/pari.el
-share/doc/pari/emacs/pariemacs.txt
-share/doc/pari/emacs/with-syntax.el
-share/doc/pari/emacs/pari-translator.el
-share/doc/pari/AUTHORS
-share/doc/pari/Announce.2.1
-share/doc/pari/CHANGES
-share/doc/pari/COMPAT
-share/doc/pari/COPYING
-share/doc/pari/CVS.txt
-share/doc/pari/MACHINES
-share/doc/pari/NEW
-share/doc/pari/README
-share/doc/pari/TODO
-share/doc/pari/misc/README
-share/doc/pari/misc/color.dft
-share/doc/pari/misc/gpalias
-share/doc/pari/misc/gpflog
-share/doc/pari/misc/gprc.dft
-share/doc/pari/misc/new.dic
-share/doc/pari/misc/pari.xpm
-share/doc/pari/misc/xgp
-share/doc/pari/doc/Makefile
-share/doc/pari/doc/translations
-share/doc/pari/doc/appa.tex
-share/doc/pari/doc/appb.tex
-share/doc/pari/doc/appc.tex
-share/doc/pari/doc/paricfg.tex
-share/doc/pari/doc/paricfg.tex.in
-share/doc/pari/doc/parimacro.tex
-share/doc/pari/doc/pdfmacs.tex
-share/doc/pari/doc/refcard.tex
-share/doc/pari/doc/tutorial.tex
-share/doc/pari/doc/users.tex
-share/doc/pari/doc/usersch1.tex
-share/doc/pari/doc/usersch2.tex
-share/doc/pari/doc/usersch3.tex
-share/doc/pari/doc/usersch4.tex
-share/doc/pari/doc/usersch5.tex
-share/doc/pari/examples/EXPLAIN
-share/doc/pari/examples/Inputrc
-share/doc/pari/examples/Makefile
-share/doc/pari/examples/bench.gp
-share/doc/pari/examples/cl.gp
-share/doc/pari/examples/classno.gp
-share/doc/pari/examples/contfrac.gp
-share/doc/pari/examples/lucas.gp
-share/doc/pari/examples/matexp.c
-share/doc/pari/examples/rho.gp
-share/doc/pari/examples/squfof.gp
-share/doc/pari/examples/taylor.gp
-@dirrm include/pari
-@dirrm share/doc/pari/emacs
-@dirrm share/doc/pari/misc
-@dirrm share/doc/pari/doc
-@dirrm share/doc/pari/examples
-@dirrm share/doc/pari
diff --git a/math/pari/pkg-plist.emacs.noperl b/math/pari/pkg-plist.emacs.noperl
new file mode 100644
index 000000000000..70e6f88db768
--- /dev/null
+++ b/math/pari/pkg-plist.emacs.noperl
@@ -0,0 +1,86 @@
+bin/gp-%%MAJOR_VERSION%%.%%MINOR_VERSION%%
+bin/gp
+bin/tex2mail
+bin/gphelp
+include/pari/paricfg.h
+include/pari/pariinl.h
+include/pari/pari.h
+include/pari/parinf.h
+include/pari/pariold.h
+include/pari/paripriv.h
+include/pari/paritune.h
+include/pari/paritype.h
+include/pari/paricast.h
+include/pari/paricom.h
+include/pari/parierr.h
+include/pari/parigen.h
+include/pari/paristio.h
+include/pari/parisys.h
+include/pari/pariport.h
+include/pari/paridecl.h
+include/pari/genpari.h
+lib/libpari.so.%%MAJOR_VERSION%%.%%MINOR_VERSION%%.%%REV_VERSION%%
+lib/libpari.so.%%MAJOR_VERSION%%
+lib/libpari.so
+lib/pari/pari.cfg
+%%DOCSDIR%%/AUTHORS
+%%DOCSDIR%%/Announce.2.1
+%%DOCSDIR%%/CHANGES
+%%DOCSDIR%%/COMPAT
+%%DOCSDIR%%/COPYING
+%%DOCSDIR%%/CVS.txt
+%%DOCSDIR%%/MACHINES
+%%DOCSDIR%%/NEW
+%%DOCSDIR%%/README
+%%DOCSDIR%%/TODO
+%%DOCSDIR%%/misc/README
+%%DOCSDIR%%/misc/color.dft
+%%DOCSDIR%%/misc/gpalias
+%%DOCSDIR%%/misc/gpflog
+%%DOCSDIR%%/misc/gprc.dft
+%%DOCSDIR%%/misc/new.dic
+%%DOCSDIR%%/misc/pari.xpm
+%%DOCSDIR%%/misc/xgp
+%%DOCSDIR%%/doc/Makefile
+%%DOCSDIR%%/doc/translations
+%%DOCSDIR%%/doc/appa.tex
+%%DOCSDIR%%/doc/appb.tex
+%%DOCSDIR%%/doc/appc.tex
+%%DOCSDIR%%/doc/paricfg.tex
+%%DOCSDIR%%/doc/parimacro.tex
+%%DOCSDIR%%/doc/pdfmacs.tex
+%%DOCSDIR%%/doc/refcard.tex
+%%DOCSDIR%%/doc/tutorial.tex
+%%DOCSDIR%%/doc/users.tex
+%%DOCSDIR%%/doc/usersch1.tex
+%%DOCSDIR%%/doc/usersch2.tex
+%%DOCSDIR%%/doc/usersch3.tex
+%%DOCSDIR%%/doc/usersch4.tex
+%%DOCSDIR%%/doc/usersch5.tex
+%%DOCSDIR%%/examples/EXPLAIN
+%%DOCSDIR%%/examples/Inputrc
+%%DOCSDIR%%/examples/Makefile
+%%DOCSDIR%%/examples/bench.gp
+%%DOCSDIR%%/examples/cl.gp
+%%DOCSDIR%%/examples/classno.gp
+%%DOCSDIR%%/examples/contfrac.gp
+%%DOCSDIR%%/examples/extgcd.c
+%%DOCSDIR%%/examples/lucas.gp
+%%DOCSDIR%%/examples/rho.gp
+%%DOCSDIR%%/examples/squfof.gp
+%%DOCSDIR%%/examples/taylor.gp
+share/emacs/site-lisp/pari/pari-conf.el
+share/emacs/site-lisp/pari/pari-completion.el
+share/emacs/site-lisp/pari/pari-fontification.el
+share/emacs/site-lisp/pari/pari-help.el
+share/emacs/site-lisp/pari/pari-messages.el
+share/emacs/site-lisp/pari/pari.el
+share/emacs/site-lisp/pari/pariemacs.txt
+share/emacs/site-lisp/pari/sli-tools.el
+@dirrm include/pari
+@dirrm lib/pari
+@dirrm %%DOCSDIR%%/misc
+@dirrm %%DOCSDIR%%/doc
+@dirrm %%DOCSDIR%%/examples
+@dirrm %%DOCSDIR%%
+@dirrm share/emacs/site-lisp/pari
diff --git a/math/pari/pkg-plist.emacs.perl b/math/pari/pkg-plist.emacs.perl
new file mode 100644
index 000000000000..dbda30011bb5
--- /dev/null
+++ b/math/pari/pkg-plist.emacs.perl
@@ -0,0 +1,89 @@
+bin/gp-%%MAJOR_VERSION%%.%%MINOR_VERSION%%
+bin/gp
+bin/tex2mail
+bin/gphelp
+include/pari/paricfg.h
+include/pari/pariinl.h
+include/pari/pari.h
+include/pari/parinf.h
+include/pari/pariold.h
+include/pari/paripriv.h
+include/pari/paritune.h
+include/pari/paritype.h
+include/pari/paricast.h
+include/pari/paricom.h
+include/pari/parierr.h
+include/pari/parigen.h
+include/pari/paristio.h
+include/pari/parisys.h
+include/pari/pariport.h
+include/pari/paridecl.h
+include/pari/genpari.h
+lib/libpari.so.%%MAJOR_VERSION%%.%%MINOR_VERSION%%.%%REV_VERSION%%
+lib/libpari.so.%%MAJOR_VERSION%%
+lib/libpari.so
+lib/pari/pari.cfg
+%%DOCSDIR%%/AUTHORS
+%%DOCSDIR%%/Announce.2.1
+%%DOCSDIR%%/CHANGES
+%%DOCSDIR%%/COMPAT
+%%DOCSDIR%%/COPYING
+%%DOCSDIR%%/CVS.txt
+%%DOCSDIR%%/MACHINES
+%%DOCSDIR%%/NEW
+%%DOCSDIR%%/README
+%%DOCSDIR%%/TODO
+%%DOCSDIR%%/PARI/822.pm
+%%DOCSDIR%%/pari.desc
+%%DOCSDIR%%/misc/README
+%%DOCSDIR%%/misc/color.dft
+%%DOCSDIR%%/misc/gpalias
+%%DOCSDIR%%/misc/gpflog
+%%DOCSDIR%%/misc/gprc.dft
+%%DOCSDIR%%/misc/new.dic
+%%DOCSDIR%%/misc/pari.xpm
+%%DOCSDIR%%/misc/xgp
+%%DOCSDIR%%/doc/Makefile
+%%DOCSDIR%%/doc/translations
+%%DOCSDIR%%/doc/appa.tex
+%%DOCSDIR%%/doc/appb.tex
+%%DOCSDIR%%/doc/appc.tex
+%%DOCSDIR%%/doc/paricfg.tex
+%%DOCSDIR%%/doc/parimacro.tex
+%%DOCSDIR%%/doc/pdfmacs.tex
+%%DOCSDIR%%/doc/refcard.tex
+%%DOCSDIR%%/doc/tutorial.tex
+%%DOCSDIR%%/doc/users.tex
+%%DOCSDIR%%/doc/usersch1.tex
+%%DOCSDIR%%/doc/usersch2.tex
+%%DOCSDIR%%/doc/usersch3.tex
+%%DOCSDIR%%/doc/usersch4.tex
+%%DOCSDIR%%/doc/usersch5.tex
+%%DOCSDIR%%/examples/EXPLAIN
+%%DOCSDIR%%/examples/Inputrc
+%%DOCSDIR%%/examples/Makefile
+%%DOCSDIR%%/examples/bench.gp
+%%DOCSDIR%%/examples/cl.gp
+%%DOCSDIR%%/examples/classno.gp
+%%DOCSDIR%%/examples/contfrac.gp
+%%DOCSDIR%%/examples/extgcd.c
+%%DOCSDIR%%/examples/lucas.gp
+%%DOCSDIR%%/examples/rho.gp
+%%DOCSDIR%%/examples/squfof.gp
+%%DOCSDIR%%/examples/taylor.gp
+share/emacs/site-lisp/pari/pari-conf.el
+share/emacs/site-lisp/pari/pari-completion.el
+share/emacs/site-lisp/pari/pari-fontification.el
+share/emacs/site-lisp/pari/pari-help.el
+share/emacs/site-lisp/pari/pari-messages.el
+share/emacs/site-lisp/pari/pari.el
+share/emacs/site-lisp/pari/pariemacs.txt
+share/emacs/site-lisp/pari/sli-tools.el
+@dirrm include/pari
+@dirrm lib/pari
+@dirrm %%DOCSDIR%%/misc
+@dirrm %%DOCSDIR%%/doc
+@dirrm %%DOCSDIR%%/examples
+@dirrm %%DOCSDIR%%/PARI
+@dirrm %%DOCSDIR%%
+@dirrm share/emacs/site-lisp/pari
diff --git a/math/pari/pkg-plist.perl b/math/pari/pkg-plist.perl
new file mode 100644
index 000000000000..faf1e0da5881
--- /dev/null
+++ b/math/pari/pkg-plist.perl
@@ -0,0 +1,80 @@
+bin/gp-%%MAJOR_VERSION%%.%%MINOR_VERSION%%
+bin/gp
+bin/tex2mail
+bin/gphelp
+include/pari/paricfg.h
+include/pari/pariinl.h
+include/pari/pari.h
+include/pari/parinf.h
+include/pari/pariold.h
+include/pari/paripriv.h
+include/pari/paritune.h
+include/pari/paritype.h
+include/pari/paricast.h
+include/pari/paricom.h
+include/pari/parierr.h
+include/pari/parigen.h
+include/pari/paristio.h
+include/pari/parisys.h
+include/pari/pariport.h
+include/pari/paridecl.h
+include/pari/genpari.h
+lib/libpari.so.%%MAJOR_VERSION%%.%%MINOR_VERSION%%.%%REV_VERSION%%
+lib/libpari.so.%%MAJOR_VERSION%%
+lib/libpari.so
+lib/pari/pari.cfg
+%%DOCSDIR%%/AUTHORS
+%%DOCSDIR%%/Announce.2.1
+%%DOCSDIR%%/CHANGES
+%%DOCSDIR%%/COMPAT
+%%DOCSDIR%%/COPYING
+%%DOCSDIR%%/CVS.txt
+%%DOCSDIR%%/MACHINES
+%%DOCSDIR%%/NEW
+%%DOCSDIR%%/README
+%%DOCSDIR%%/TODO
+%%DOCSDIR%%/PARI/822.pm
+%%DOCSDIR%%/pari.desc
+%%DOCSDIR%%/misc/README
+%%DOCSDIR%%/misc/color.dft
+%%DOCSDIR%%/misc/gpalias
+%%DOCSDIR%%/misc/gpflog
+%%DOCSDIR%%/misc/gprc.dft
+%%DOCSDIR%%/misc/new.dic
+%%DOCSDIR%%/misc/pari.xpm
+%%DOCSDIR%%/misc/xgp
+%%DOCSDIR%%/doc/Makefile
+%%DOCSDIR%%/doc/translations
+%%DOCSDIR%%/doc/appa.tex
+%%DOCSDIR%%/doc/appb.tex
+%%DOCSDIR%%/doc/appc.tex
+%%DOCSDIR%%/doc/paricfg.tex
+%%DOCSDIR%%/doc/parimacro.tex
+%%DOCSDIR%%/doc/pdfmacs.tex
+%%DOCSDIR%%/doc/refcard.tex
+%%DOCSDIR%%/doc/tutorial.tex
+%%DOCSDIR%%/doc/users.tex
+%%DOCSDIR%%/doc/usersch1.tex
+%%DOCSDIR%%/doc/usersch2.tex
+%%DOCSDIR%%/doc/usersch3.tex
+%%DOCSDIR%%/doc/usersch4.tex
+%%DOCSDIR%%/doc/usersch5.tex
+%%DOCSDIR%%/examples/EXPLAIN
+%%DOCSDIR%%/examples/Inputrc
+%%DOCSDIR%%/examples/Makefile
+%%DOCSDIR%%/examples/bench.gp
+%%DOCSDIR%%/examples/cl.gp
+%%DOCSDIR%%/examples/classno.gp
+%%DOCSDIR%%/examples/contfrac.gp
+%%DOCSDIR%%/examples/extgcd.c
+%%DOCSDIR%%/examples/lucas.gp
+%%DOCSDIR%%/examples/rho.gp
+%%DOCSDIR%%/examples/squfof.gp
+%%DOCSDIR%%/examples/taylor.gp
+@dirrm include/pari
+@dirrm lib/pari
+@dirrm %%DOCSDIR%%/misc
+@dirrm %%DOCSDIR%%/doc
+@dirrm %%DOCSDIR%%/examples
+@dirrm %%DOCSDIR%%/PARI
+@dirrm %%DOCSDIR%%