summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2012-03-06 17:06:06 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2012-03-06 17:06:06 +0000
commit4c32f0ee1fa49d30b37734b3e69bf65eb878885f (patch)
tree5b6ae5bb27d3e1d452ed7c579ee1804a12f19ed5 /sci-mathematics/pari
parentVersion bump (diff)
downloadhistorical-4c32f0ee1fa49d30b37734b3e69bf65eb878885f.tar.gz
historical-4c32f0ee1fa49d30b37734b3e69bf65eb878885f.tar.bz2
historical-4c32f0ee1fa49d30b37734b3e69bf65eb878885f.zip
Version bump
Package-Manager: portage-2.1.10.44/cvs/Linux x86_64
Diffstat (limited to 'sci-mathematics/pari')
-rw-r--r--sci-mathematics/pari/ChangeLog9
-rw-r--r--sci-mathematics/pari/Manifest12
-rw-r--r--sci-mathematics/pari/pari-2.5.1.ebuild141
3 files changed, 155 insertions, 7 deletions
diff --git a/sci-mathematics/pari/ChangeLog b/sci-mathematics/pari/ChangeLog
index a56419f78f6b..f7bcb8286e3f 100644
--- a/sci-mathematics/pari/ChangeLog
+++ b/sci-mathematics/pari/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-mathematics/pari
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.86 2011/08/04 00:23:54 bicatali Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.87 2012/03/06 17:06:06 bicatali Exp $
+
+*pari-2.5.1 (06 Mar 2012)
+
+ 06 Mar 2012; SĂ©bastien Fabbro <bicatali@gentoo.org> +pari-2.5.1.ebuild:
+ Version bump
*pari-2.5.0-r3 (04 Aug 2011)
diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index 541165e1c488..7d6b6b88497b 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -14,16 +14,18 @@ DIST nftables.tgz 8393731 RMD160 48a9c48246f91c1983712682937d666ba1ae6458 SHA1 9
DIST pari-2.3.4.tar.gz 2024690 RMD160 d3bf1f24c0f321ccee309bc2b4c15c8a263fb73f SHA1 0c97456c5fc7e9fe774ceb44aaf77e9ba9574ae6 SHA256 284b241f65ea011942b50655c2e8036cdde66e3a9973d08acd50835debaf545d
DIST pari-2.3.5.tar.gz 2018097 RMD160 488adf3af5398d0ab5390eb86b65cd79bd1044c5 SHA1 f211ccfe42a4b18dbcde832dfd1ece6f477f4966 SHA256 47ddae1af73b4476660d2a89338483949067a97ffb8758c82e8189dfa4c89d88
DIST pari-2.5.0.tar.gz 2714449 RMD160 f9b5375da10bfc5672fbe8b4ab4ac1eb0772b572 SHA1 d96250cd8b3e426f548a832f2f44fdfd30fd32b6 SHA256 5dc923b001ca0f8664facfafcd91946be63faf8f0e1df4b11bfac80f89ec37a2
+DIST pari-2.5.1.tar.gz 2718726 RMD160 d7f5af6bb2b86d2aa93a6034b26b0d7e25730a31 SHA1 c83314bb993161a60e1e46ae7616072858414354 SHA256 72c1828af50878acf5f09b553e45ac04b24400e095d16e6948a06947538a8f4f
DIST seadata.tgz 19214199 RMD160 e88637426f74c5223068fc2d916741c10d8279e4 SHA1 fa3deb36df0ce71a466eb0ff0d4a18d48d44e8b9 SHA256 c9282a525ea3f92c1f9c6c69e37ac5a87b48fb9ccd943cfd7c881a3851195833
EBUILD pari-2.3.4-r1.ebuild 4223 RMD160 86b57d4c795fa2eea90363da83828aec98cd96fd SHA1 94eac2f9c2d3c6f20c1a1b0c5ba2e51da813250d SHA256 9e4257bd9ddb0a0a564f234cf36246ec115b63d61279a26d6fe329fbd23fd2be
EBUILD pari-2.3.5.ebuild 4487 RMD160 98c55182f27da23196285a2b7defbf738b54015c SHA1 18b42289a75d7d71af3539a69e23b733a6e08780 SHA256 4496e8b1f23ebd02ea28655618e73f8755ea28a93515dd025cb8f5968e2878bc
EBUILD pari-2.5.0-r3.ebuild 4025 RMD160 7a8a65657caabfb76132c8a16542aca9b7b4e992 SHA1 b980265f507a1512a72a6dc8aaba33c50bb188b1 SHA256 f1a7aab704a92ee750695e9537e87d1ba1c53eee9f462adc812350d88e193feb
-MISC ChangeLog 16135 RMD160 84bf81c42a585700d90ace32a583ff246dec7bea SHA1 570a08dc4d615a756678f50e9729ce6b565525d6 SHA256 761408e03cf7fa0eb3325090d90e00b5481daa9371bb0ccde6e6fe160e2ea7ad
+EBUILD pari-2.5.1.ebuild 4022 RMD160 0ab3ab0c7dfabbf4cee8e97c9eb8f074aa75fdfe SHA1 8b34585d30147e146e7f63fa1782350dee7ed41d SHA256 2ab7afc52c291d0d167dfd147af5237d571634d9e7aac46df3431761635198b0
+MISC ChangeLog 16253 RMD160 c4018a234a97fe0088c76107f0f39c00e4cca346 SHA1 cc09c6eb63f19cacb9f3252fc800c6539d7402f1 SHA256 536967a89fcf9155b002d9f2b0c4ff49bbdb233e2b2341e215da0278cee6e668
MISC metadata.xml 1110 RMD160 9f77b92fc473dc18364cda6049ae65c01656d14d SHA1 643003b3881bb599e57c8346073b2c4dc185ee15 SHA256 6efe59c37d2ff1b960324b5f0736e25ce2a8b3e9dc67d9b5482a9d808ba44d0b
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
+Version: GnuPG v2.0.18 (GNU/Linux)
-iEUEARECAAYFAk455qcACgkQ1ycZbhPLE2CI6wCggLALbnOFiYDP5N9SXsxphJYN
-ijAAmJE29jEJOfWo1iAUcFrls46rgZA=
-=MYgV
+iEYEARECAAYFAk9WRAYACgkQ1ycZbhPLE2A7SgCeIjJbryP9wDoozzf+qeVUdCA3
+V+0An0IdKJxprcHOZ83G19zD8p2iWkeH
+=sa9u
-----END PGP SIGNATURE-----
diff --git a/sci-mathematics/pari/pari-2.5.1.ebuild b/sci-mathematics/pari/pari-2.5.1.ebuild
new file mode 100644
index 000000000000..3cd3ed374b5d
--- /dev/null
+++ b/sci-mathematics/pari/pari-2.5.1.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.5.1.ebuild,v 1.1 2012/03/06 17:06:06 bicatali Exp $
+
+EAPI="4"
+
+inherit 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"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
+IUSE="doc data fltk gmp X"
+
+RDEPEND="sys-libs/readline
+ fltk? ( x11-libs/fltk:1 )
+ gmp? ( dev-libs/gmp )
+ X? ( x11-libs/libX11 )
+ doc? ( X? ( x11-misc/xdg-utils ) )
+ data? ( sci-mathematics/pari-data )"
+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() {
+ epatch "${FILESDIR}/${PN}"-2.3.2-strip.patch
+ epatch "${FILESDIR}/${PN}"-2.3.2-ppc-powerpc-arch-fix.patch
+ # fix parallel make
+ epatch "${FILESDIR}/${PN}"-2.5.0-doc-make.patch
+ # sage error handling patch
+ epatch "${FILESDIR}/${PN}"-2.5.0-mp.c.patch
+ # OS X: add -install_name to the linker option
+ epatch "${FILESDIR}/${PN}"-2.5.0-macos.patch
+
+ # disable default building of docs during install
+ sed -i \
+ -e "s:install-doc install-examples:install-examples:" \
+ config/Makefile.SH || die "Failed to fix makefile"
+
+ # propagate ldflags
+ sed -i \
+ -e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \
+ config/get_dlld || die "failed to fix LDFLAGS"
+ # move doc dir to a gentoo doc dir and replace acroread by xdg-open
+ sed -i \
+ -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \
+ -e 's:"acroread":"xdg-open":' \
+ doc/gphelp.in || die "Failed to fix doc dir"
+
+ sed -i "s:/usr:${EPREFIX}/usr:g" config/get_X11 \
+ || die "Failed to fix get_X11"
+
+ # usersch3.tex is generated
+ rm -f doc/usersch3.tex || die "failed to remove generated file"
+}
+
+src_configure() {
+ tc-export CC
+
+ # 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 myconfig
+ if use gmp ; then
+ myconfig="--with-gmp=${EPREFIX}/usr"
+ else
+ myconfig="--with-gmp=no"
+ fi
+
+ # sysdatadir installs a pari.cfg stuff which is informative only
+ ./Configure \
+ --prefix="${EPREFIX}"/usr \
+ --datadir="${EPREFIX}"/usr/share/${PN} \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
+ --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \
+ --mandir="${EPREFIX}"/usr/share/man/man1 \
+ --with-readline="${EPREFIX}"/usr \
+ --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \
+ $myconfig \
+ || die "./Configure failed"
+}
+
+src_compile() {
+ if use hppa; then
+ mymake=DLLD\="${EPREFIX}"/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm
+ fi
+
+ local installdir=$(get_compile_dir)
+ cd "${installdir}" || die "failed to change directory"
+
+ # upstream set -fno-strict-aliasing.
+ # aliasing is a known issue on amd64, work on x86 by sheer luck
+ emake ${mymake} \
+ CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn
+ emake ${mymake} \
+ CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp
+
+ if use doc; then
+ cd "${S}" || die "failed to change directory"
+ # To prevent sandbox violations by metafont
+ VARTEXFONTS="${T}"/fonts emake docpdf
+ fi
+}
+
+src_test() {
+ emake dobench
+}
+
+src_install() {
+ default
+ dodoc MACHINES COMPAT
+ if use doc; then
+ # install gphelp and the pdf documentations manually.
+ # the install-doc target is overkill.
+ dodoc doc/*.pdf
+ dobin doc/gphelp
+ insinto /usr/share/doc/${PF}
+ # gphelp looks for some of the tex sources...
+ doins doc/*.tex doc/translations
+ # Install the examples - for real.
+ local installdir=$(get_compile_dir)
+ cd "${installdir}" || die "failed to change directory"
+ emake EXDIR="${ED}/usr/share/doc/${PF}/examples" install-examples
+ fi
+}