summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-01-15 17:19:08 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-01-15 17:19:08 +0000
commitb8b7b33a2685054b103719b7fe3bd4c8745380f6 (patch)
tree438ba14f95761b01c7d12476cf7c43d9deb99fb2 /sci-mathematics
parentFix patch to include directory. (diff)
downloadhistorical-b8b7b33a2685054b103719b7fe3bd4c8745380f6.tar.gz
historical-b8b7b33a2685054b103719b7fe3bd4c8745380f6.tar.bz2
historical-b8b7b33a2685054b103719b7fe3bd4c8745380f6.zip
Version bump
Package-Manager: portage-2.2_rc22/cvs/Linux 2.6.25-gentoo-r7 x86_64
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/pari/ChangeLog9
-rw-r--r--sci-mathematics/pari/Manifest14
-rw-r--r--sci-mathematics/pari/pari-2.3.4.ebuild152
3 files changed, 172 insertions, 3 deletions
diff --git a/sci-mathematics/pari/ChangeLog b/sci-mathematics/pari/ChangeLog
index 90b7e9bbcaae..800c8b3021cb 100644
--- a/sci-mathematics/pari/ChangeLog
+++ b/sci-mathematics/pari/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-mathematics/pari
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.65 2008/08/27 20:04:42 markusle Exp $
+# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.66 2009/01/15 17:19:08 bicatali Exp $
+
+*pari-2.3.4 (15 Jan 2009)
+
+ 15 Jan 2009; SĂ©bastien Fabbro <bicatali@gentoo.org> +pari-2.3.4.ebuild:
+ Version bump
27 Aug 2008; Markus Dittrich <markusle@gentoo.org> pari-2.3.2.ebuild,
pari-2.3.2-r1.ebuild, pari-2.3.3.ebuild:
diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index 703493314003..2f66784e790d 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX 50pari-gentoo.el 271 RMD160 e71ae40ba7bc2179bdb963d4300020d6a5f8bf76 SHA1 6956b8771d0bcf632ab59a6cca0a2282368bd03f SHA256 787e2c797c42645de8429cd449040b81563e07681c557bc9433cc4ef287ffe12
AUX docs.patch 915 RMD160 3e5cf3712d9f22678ab3bad2e541e04c11405a04 SHA1 ddc4e17185936d5a40e47254415ce94c15227ddc SHA256 00237da12482a4f292ddf358f269c9e28531da172aa130b07a26c9e125e45d1c
AUX pari-2.3.2-ppc-powerpc-arch-fix.patch 453 RMD160 2522cab3f5a862d6fcf13d6b30b00a420b62d809 SHA1 2861b205fa4b7d7a0adc5fe9f4ec7dd4c728c331 SHA256 3796b8e994f6dda107dd3733ec0769dbe020debc8f24db89f4f740cd3939f64f
@@ -12,10 +15,19 @@ DIST pari-2.1.6.tgz 1541464 RMD160 6b79e84b639d1862df148b253136deacd73bf4f0 SHA1
DIST pari-2.1.7.tgz 1542137 RMD160 6d7ca649cdd457d96c12e1f9333143d496a78b7e SHA1 dca15bb3ac6dfdcc7934569fe3a65cb16f812a4e SHA256 9142f2cdaf3083c8962f1a5c2bb0e9fe8915f7d9490c03312ac2361c7ea155fa
DIST pari-2.3.2.tar.gz 2015734 RMD160 d2394fd31bfa6efcbfce25081d75234ccb1005be SHA1 e7c823d393b513ba84bb66b400cbe3811a75a60f SHA256 514799c0722376ba7d163588f091662731bca0a4b3cd2a93d01eb6bec9d1f47a
DIST pari-2.3.3.tar.gz 2016896 RMD160 ad81a5332f42025b822d8906b7e04039f8d50187 SHA1 5304442a631fd87681112e5e7a8d071eeda3e192 SHA256 829e61bccb96a1d11c3a52631b25be3913470146a3747dae154917acd4d53280
+DIST pari-2.3.4.tar.gz 2024690 RMD160 d3bf1f24c0f321ccee309bc2b4c15c8a263fb73f SHA1 0c97456c5fc7e9fe774ceb44aaf77e9ba9574ae6 SHA256 284b241f65ea011942b50655c2e8036cdde66e3a9973d08acd50835debaf545d
EBUILD pari-2.1.6.ebuild 2495 RMD160 bf72d93556851a706a81bfce63cbca64b6221722 SHA1 9dc8c36cafb253a42dc585004c95e2bcb57fdead SHA256 af1f5b385c41fc41d66ef601cc5a2a168c9a346c7f30eea669ff12dcca90cc84
EBUILD pari-2.1.7-r1.ebuild 2754 RMD160 a800b68b5bfad2752ec9700f851e33c49b2e886b SHA1 91a6e87402f062aa892b68d655edbafed22acd26 SHA256 8b6f4cbce7fa0067a3463e752e9992a86e95f030c73f0d3d5e7b9fca5fade370
EBUILD pari-2.3.2-r1.ebuild 3040 RMD160 338300e379760838c689afe0c19b4e96d2133168 SHA1 0c71ef662feaed18526721c1a2ddeede7c2a8aac SHA256 0cfdfab38bc4236cca05b08e11e10cb8114dea458f43fb78fa7e0dd5f35c5c8d
EBUILD pari-2.3.2.ebuild 3001 RMD160 17edc52e93161257af32e564c0e600d24a86ddc0 SHA1 649e35dea512aceb1df65462c9ce124bd24a1230 SHA256 32daa33c1e5c70965a5cb11434badf084b34ed821f3df08fbcb89f53d1bc952e
EBUILD pari-2.3.3.ebuild 3967 RMD160 c020382b19a27a49b7ba33b7761dc9ce3351d24f SHA1 3b1729322463e908c35b82fd5f2626e31974fe1e SHA256 c714338c9364ad7bd51612eb24bf0ebb99aa5af07a06b7762888cd9bdd520a68
-MISC ChangeLog 12359 RMD160 7f04318041a351e7da707845c57dcbdb42ef64be SHA1 e11547654991a2f7d3700450a7585a25d9cf839f SHA256 65fca1ecf624ce13a6686143eb541c4459de8792c9ad33c0c7b0eebed4e4fd9b
+EBUILD pari-2.3.4.ebuild 4051 RMD160 ba0b44e35c2eb5fd9951a7273bcfd9fe3ead3f0c SHA1 785f8bdf24f326826b2417e94aaacf48bbcb924b SHA256 eaf39a40cd534b9f5bb069512bcab84c7ec4047adc57e8f827978fb5db42850b
+MISC ChangeLog 12477 RMD160 5946b163642827bc639311a6f833aab7d46170c7 SHA1 b250cba14bc6f7c421fdf8647a5af79000ec0c41 SHA256 889bcb92527e5f09fa78d68e24e01983eb744c47a234a1d89d471b49cd4c2362
MISC metadata.xml 343 RMD160 d9685895af451627aaade1f9b87832c0e810e93e SHA1 b82315edba5cf659156ef24961c5ef46a3a62515 SHA256 696d6fb99545772f8cb2b91abab1507d500730a825af31f1a2b4185f6eb8189e
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAklvcBUACgkQ1ycZbhPLE2B0gACeNxt9b6G6TCnh04IBvW93IDvt
+ZHYAn1ZtuFiRecd83wGrW1fo2Ad4SmJU
+=2nvf
+-----END PGP SIGNATURE-----
diff --git a/sci-mathematics/pari/pari-2.3.4.ebuild b/sci-mathematics/pari/pari-2.3.4.ebuild
new file mode 100644
index 000000000000..e86aa0397d0a
--- /dev/null
+++ b/sci-mathematics/pari/pari-2.3.4.ebuild
@@ -0,0 +1,152 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.4.ebuild,v 1.1 2009/01/15 17:19:08 bicatali Exp $
+
+EAPI=2
+inherit elisp-common eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="A software package for computer-aided number theory"
+HOMEPAGE="http://pari.math.u-bordeaux.fr/"
+SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz
+ elliptic? ( http://pari.math.u-bordeaux.fr/pub/${PN}/packages/elldata.tgz )
+ galois? ( http://pari.math.u-bordeaux.fr/pub/${PN}/packages/galdata.tgz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="doc emacs X elliptic galois gmp static"
+
+RDEPEND="sys-libs/readline
+ X? ( x11-libs/libX11 )
+ emacs? ( virtual/emacs )
+ gmp? ( dev-libs/gmp )"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base )"
+
+SITEFILE=50${PN}-gentoo.el
+
+get_compile_dir() {
+ pushd "${S}/config" >& /dev/null
+ local fastread=yes
+ source ./get_archos
+ popd >& /dev/null
+ echo "O${osname}-${arch}"
+}
+
+src_prepare() {
+ # move data into place
+ if ( use galois || use elliptic ); then
+ mv "${WORKDIR}"/data "${S}" \
+ || die "failed to move data"
+ fi
+
+ epatch "${FILESDIR}/"${PN}-2.3.2-strip.patch
+ epatch "${FILESDIR}/"${PN}-2.3.2-ppc-powerpc-arch-fix.patch
+
+ # disable default building of docs during install
+ sed -e "s:install-doc install-examples:install-examples:" \
+ -i config/Makefile.SH || die "Failed to fix makefile"
+ # propagate ldflags
+ sed -i \
+ -e 's/-shared $extra/-shared $extra \\$(LDFLAGS)/' \
+ config/get_dlld || die
+}
+
+src_configure() {
+ #need to force optimization here, as it breaks without
+ if is-flag -O0; then
+ replace-flags -O0 -O2
+ elif ! is-flag -O?; then
+ append-flags -O2
+ fi
+
+ local myconf="--with-readline"
+ use gmp && myconf="${myconf} --kernel=gmp"
+
+ ./Configure \
+ --prefix=/usr \
+ --datadir=/usr/share/${P} \
+ --libdir=/usr/$(get_libdir) \
+ --mandir=/usr/share/man/man1 \
+ ${myconf} \
+ || die "./Configure failed"
+}
+
+src_compile() {
+ if use hppa; then
+ mymake=DLLD\=/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm
+ fi
+ local installdir=$(get_compile_dir)
+ cd "${installdir}" || die "Bad directory. File a BUG!"
+
+ einfo "Building shared library..."
+ emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE -fPIC" lib-dyn \
+ || die "Building shared library failed!"
+
+ if use static; then
+ einfo "Building static library..."
+ emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" lib-sta \
+ || die "Building static library failed!"
+ fi
+
+ einfo "Building executables..."
+ emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp \
+ || die "Building executables failed!"
+
+ if use doc; then
+ cd "${S}"
+ # To prevent sandbox violations by metafont
+ VARTEXFONTS="${T}"/fonts emake docpdf \
+ || die "Failed to generate docs"
+ fi
+
+ if use emacs; then
+ cd "${S}/emacs"
+ elisp-compile *.el || die "elisp-compile failed"
+ fi
+}
+
+src_test() {
+ emake test-kernel || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR="${D}"/usr/$(get_libdir) install \
+ || die "Install failed"
+
+ if use emacs; then
+ elisp-install ${PN} emacs/*.el emacs/*.elc \
+ || die "elisp-install failed"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+
+ dodoc AUTHORS Announce.2.1 CHANGES README NEW
+ if use doc; then
+ emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install-doc \
+ || die "Failed to install docs"
+ insinto /usr/share/doc/${PF}
+ doins doc/*.pdf || die "Failed to install pdf docs"
+ fi
+
+ if (use galois || use elliptic); then
+ emake DESTDIR="${D}" LIBDIR="${D}"/usr/$(get_libdir) install-data \
+ || die "Failed to install data files"
+ fi
+
+ if use static; then
+ emake DESTDIR="${D}" LIBDIR="${D}"/usr/$(get_libdir) install-lib-sta || \
+ die "Install of static library failed"
+ fi
+
+ #remove superfluous doc directory
+ rm -fr "${D}/usr/share/${P}/doc" || \
+ die "Failed to clean up doc directory"
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}