summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2011-07-26 19:30:38 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2011-07-26 19:30:38 +0000
commitc24e4f8985c87224f418ab9ebc6e383a7458d905 (patch)
tree340278c0acc1cb18e117cc688d637e15fb1e01dc /sci-mathematics
parentppc64 keyword dropped (diff)
downloadhistorical-c24e4f8985c87224f418ab9ebc6e383a7458d905.tar.gz
historical-c24e4f8985c87224f418ab9ebc6e383a7458d905.tar.bz2
historical-c24e4f8985c87224f418ab9ebc6e383a7458d905.zip
Version bump
Package-Manager: portage-2.1.10.7/cvs/Linux x86_64
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/pari/ChangeLog7
-rw-r--r--sci-mathematics/pari/Manifest13
-rw-r--r--sci-mathematics/pari/pari-2.5.0.ebuild132
3 files changed, 146 insertions, 6 deletions
diff --git a/sci-mathematics/pari/ChangeLog b/sci-mathematics/pari/ChangeLog
index a1354c2db3dd..10220da66922 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.82 2011/04/24 15:49:42 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.83 2011/07/26 19:30:38 bicatali Exp $
+
+*pari-2.5.0 (26 Jul 2011)
+
+ 26 Jul 2011; SĂ©bastien Fabbro <bicatali@gentoo.org> +pari-2.5.0.ebuild:
+ Version bump
24 Apr 2011; Fabian Groffen <grobian@gentoo.org> pari-2.3.5.ebuild:
Marked ~x86-solaris, bug #296509
diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index fe3031b45f2a..2012a6812074 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -7,18 +7,21 @@ AUX pari-2.3.2-strip.patch 293 RMD160 49660a3edcfd8f73ce5fe78f832262f98348a804 S
AUX pari-2.3.5-doc-make.patch 1358 RMD160 3ce51d8a71d75902c79c1c24c4e65f6b20b73c9b SHA1 55c9be7b74131e7b49d7cb54f71a6a7474831d3e SHA256 9a68848f4b2818f2bbdfc49063af94eb6b54049563ca0d5137d6bfce2450b35b
DIST elldata.tgz 14185595 RMD160 ddac2454fc65b7f5ddfbf1d39d96a3e51b8eef5c SHA1 f9705a2a11f1622ebcc4e6b8f3780af8a178da9e SHA256 4102c23fdbeadc89b47ba31d05fc58cd3c3e0cca216b11ec5c3be1330d4a5218
DIST galdata.tgz 53229 RMD160 488afbddf7026dd6d0c9ebbed72cb14c8c37173e SHA1 0fe78ed49e197066708a3fc3753b2651107a1264 SHA256 b7c1650099b24a20bdade47a85a928351c586287f0d4c73933313873e63290dd
+DIST galpol.tgz 469851 RMD160 e7c9c4cc9f7785e44860f1125329d7e2fc096d72 SHA1 68e249e265bac49b843f9a9a543dc2cb119d8625 SHA256 385d537b3c085d7885a9f6f02d63c2c2ad101dece07c2a19e4fba7bc81f72990
DIST nftables.tgz 8393731 RMD160 48a9c48246f91c1983712682937d666ba1ae6458 SHA1 90df66222346b0dbca68925671a374f5e286daeb SHA256 8dd3393ce6b3cfcf599f094f7b22bdffe17c3ba25deb912513d54676bd7cfe92
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 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
-MISC ChangeLog 15024 RMD160 f01e76a21caf1f7fb72e9ebf3ef873f7de7a1d45 SHA1 3d02be2102f8bab36a50b112fc0f382bd19e7227 SHA256 f8a1f293326759bdb1aaa5be9a0f563d0d077053167da1b67211d79c45f1611c
+EBUILD pari-2.5.0.ebuild 3549 RMD160 915e5f26dae372aa5105a5f39e0dae5f3a60f7ad SHA1 a6e13abe8e6766f1df90738117bd182fbfa5a22c SHA256 d288283622714a3772186d313765714f5711f32bac346cc72c1aedfb6441aec5
+MISC ChangeLog 15143 RMD160 4e870bc986ec390bd8e33725320df62ac04a9e83 SHA1 591a3aafe1a80d52e894c052c605657dfdd4841a SHA256 4babfadef5efc1ca0a715ef103d01fe8b88e38cb2588daf4285e8a20cfa5db19
MISC metadata.xml 1110 RMD160 9f77b92fc473dc18364cda6049ae65c01656d14d SHA1 643003b3881bb599e57c8346073b2c4dc185ee15 SHA256 6efe59c37d2ff1b960324b5f0736e25ce2a8b3e9dc67d9b5482a9d808ba44d0b
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (SunOS)
+Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk20RpwACgkQX3X2B8XHTolAMQCffZSQtglrpwxd0AZHJJSKOTgN
-WEEAnjMy1QISqb6huzqLumwbLg/zAYYv
-=qZtZ
+iEYEARECAAYFAk4vFhYACgkQ1ycZbhPLE2BTqgCghuzINTFthiEc5u6/cMObw5By
+ebcAn2J6+cd2OnxaWq5ABBt1kf0fdnl6
+=6WnY
-----END PGP SIGNATURE-----
diff --git a/sci-mathematics/pari/pari-2.5.0.ebuild b/sci-mathematics/pari/pari-2.5.0.ebuild
new file mode 100644
index 000000000000..31b626d984c8
--- /dev/null
+++ b/sci-mathematics/pari/pari-2.5.0.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.5.0.ebuild,v 1.1 2011/07/26 19:30:38 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_COM="http://pari.math.u-bordeaux.fr/pub/${PN}"
+SRC_URI="${SRC_COM}/unix/${P}.tar.gz
+ data? ( ${SRC_COM}/packages/elldata.tgz
+ ${SRC_COM}/packages/galdata.tgz
+ ${SRC_COM}/packages/galpol.tgz
+ ${SRC_COM}/packages/seadata.tgz
+ ${SRC_COM}/packages/nftables.tgz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris"
+IUSE="doc data fltk gmp static-libs X"
+
+RDEPEND="sys-libs/readline
+ fltk? ( x11-libs/fltk:1 )
+ gmp? ( dev-libs/gmp )
+ X? ( x11-libs/libX11 )
+ doc? ( X? ( x11-misc/xdg-utils ) )"
+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 data; 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
+ epatch "${FILESDIR}/"${PN}-2.3.5-doc-make.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 hardcoded xdvi by xdg-open
+ sed -i \
+ -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \
+ -e 's:"xdvi":"xdg-open":' \
+ -e 's:xdvi -paper 29.7x21cm:xdg-open:' \
+ doc/gphelp.in || die "Failed to fix doc dir"
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+ 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
+ # 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 \
+ $(use_with gmp) \
+ || 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"
+
+ emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE -fPIC" lib-dyn
+
+ use static-libs && \
+ emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" lib-sta
+
+ emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp
+
+ if use doc; then
+ cd "${S}"
+ # To prevent sandbox violations by metafont
+ VARTEXFONTS="${T}"/fonts emake -j1 docpdf
+ fi
+}
+
+src_test() {
+ emake dobench
+}
+
+src_install() {
+ default
+ dodoc MACHINES COMPAT
+ if use doc; then
+ emake -j1 \
+ DESTDIR="${D}" \
+ EXDIR="${ED}/usr/share/doc/${PF}/examples" \
+ DOCDIR="${ED}/usr/share/doc/${PF}" \
+ install-doc
+ insinto /usr/share/doc/${PF}
+ doins doc/*.pdf
+ fi
+
+ use data && \
+ emake DESTDIR="${D}" install-data
+
+ use static-libs && \
+ emake DESTDIR="${D}" install-lib-sta
+}