the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: pari-gp%type_pkg[-nox]
#Type: -nox (. -nox -xemacs)
Type: -nox (-xemacs)
Version: 2.1.7
Revision: 1004
Depends: <<
readline5-shlibs (>= 5.0-1004),
libncurses5-shlibs (>= 5.4-20041023-1006),
(%type_raw[-nox] != -xemacs) emacsen-common,
(%type_raw[-nox] != -nox) x11-shlibs
<<
BuildDepends: <<
fink (>= 0.24.12),
tetex-base,
readline5 (>= 5.0-1004),
libncurses5 (>= 5.4-20041023-1006),
(%type_raw[-nox] = -xemacs) xemacs,
(%type_raw[-nox] != -nox) x11,
(%type_raw[-nox] != -nox) x11-dev
<<
Conflicts: pari-gp, pari-gp-nox, pari-gp-xemacs
Replaces: pari-gp, pari-gp-nox, pari-gp-xemacs
Source: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%v.tgz
Source-MD5: 357b7a42e89e2761a5367bbcbfcca5f2
Source2: http://www.gn-50uma.de/ftp/pari/galdata.tar.gz
Source2-MD5: 25eab5f9dfdb8715b9ace8cd68210425
Source2ExtractDir: pari-%v/galdata
PatchFile: %{ni}-%v.patch
PatchFile-MD5: 170ba02ed8292e6beaa6a54a9a40e2cb
PatchScript: <<
sed 's|@FINK@|%p|g' < %{PatchFile} | patch -p1
<<
CompileScript: <<
#!/bin/bash -ev
if [ "%type_raw[-nox]" != "-nox" ]; then
./Configure --prefix=%p
fi
if [ "%type_raw[-nox]" == "-nox" ]; then
./Configure --prefix=%p --graphic=none
fi
sed s+\\\\\\\\\ read\ \"lib/gpalias\"+read\ \"%p/etc/gpalias\"+ < misc/gprc.dft >misc/gprc
make gp
make bench
make doc
<<
InstallScript: <<
#!/bin/bash -ev
make install DESTDIR=%d
mkdir -p %i/etc
install -m644 misc/gprc %i/etc
install -m644 misc/gpalias %i/etc
mkdir -p %i/lib/pari/galdata
install -p -m644 galdata/* %i/lib/pari/galdata
mkdir -p %i/share/man/man1
mv %i/man/man1/* %i/share/man/man1
rm -R %i/man
mkdir -p %i/share/doc/pari-gp
(cd %i/lib/pari; mv AUTHORS Announce.2.1 CHANGES COMPAT COPYING CVS.txt MACHINES NEW README TODO %i/share/doc/pari-gp) || exit 1
if [ "%type_raw[-nox]" != "-xemacs" ]; then
rm %i/lib/pari/emacs/pari.elc
mkdir -p %i/share/emacs/site-lisp
mv %i/lib/pari/emacs %i/share/emacs/site-lisp
mv %i/share/emacs/site-lisp/emacs %i/share/emacs/site-lisp/pari-gp
mkdir -p %i/lib/emacsen-common/packages/install
mkdir -p %i/lib/emacsen-common/packages/remove
install -m 755 emacsen-install %i/lib/emacsen-common/packages/install/%n
install -m 755 emacsen-remove %i/lib/emacsen-common/packages/remove/%n
fi
<<
PostInstScript: <<
if [ "%type_raw[-nox]" != "-xemacs" ]; then
%p/lib/emacsen-common/emacs-package-install %n
fi
<<
PreRmScript: <<
if [ "%type_raw[-nox]" != "-xemacs" ]; then
%p/lib/emacsen-common/emacs-package-remove %n
fi
<<
ConfFiles: %p/etc/gprc %p/etc/gpalias
License: GPL
Description: Computer-aided number theory (calculator and C-library)
DescPort: <<
* Had to move some files around after installation.
* Edited gp.c so that %p/etc/gprc is recognized in addition to /etc/gprc.
* No longer makes or installs the pdf doc files.
* Patches for gcc 4.0 compatibility thanks to Matt Sachs.
* More patches to help it find fink's readline
<<
DescPackaging: <<
Depends on tetex during building, which is used to make the documentation.
Depends on emacsen-common for proper handling of pari.el file, except for
the -xemacs variant.
<<
Homepage: http://pari.math.u-bordeaux.fr/
Maintainer: Dave Morrison
#end of Info2
<<