diff options
-rw-r--r-- | sci-mathematics/pari/ChangeLog | 9 | ||||
-rw-r--r-- | sci-mathematics/pari/Manifest | 17 | ||||
-rw-r--r-- | sci-mathematics/pari/metadata.xml | 18 | ||||
-rw-r--r-- | sci-mathematics/pari/pari-2.3.4-r1.ebuild (renamed from sci-mathematics/pari/pari-2.3.3.ebuild) | 115 |
4 files changed, 97 insertions, 62 deletions
diff --git a/sci-mathematics/pari/ChangeLog b/sci-mathematics/pari/ChangeLog index 800c8b3021cb..a0b89a352f9f 100644 --- a/sci-mathematics/pari/ChangeLog +++ b/sci-mathematics/pari/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-mathematics/pari # 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 $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.67 2009/04/06 21:40:16 bicatali Exp $ + +*pari-2.3.4-r1 (06 Apr 2009) + + 06 Apr 2009; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml, + -pari-2.3.3.ebuild, +pari-2.3.4-r1.ebuild: + Added more data which can be merged with a data flag. Fixed doc help (bug + #264579) and display doc with default dvi viewer launched by xdg-open *pari-2.3.4 (15 Jan 2009) diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest index 2f66784e790d..8588c084eb56 100644 --- a/sci-mathematics/pari/Manifest +++ b/sci-mathematics/pari/Manifest @@ -11,23 +11,24 @@ AUX wrong_functype-r1.patch 1498 RMD160 ede78c0c8e3e1e2873aa1b61efe2515f92c2575f AUX wrong_functype.patch 1946 RMD160 e38655b53030eecc3c7520cd4a0fc48ea174fd0e SHA1 2da2d4eca4adf4b44970b94cf308243c82d1bcde SHA256 a2ae7109f8f292393c80b710c0da4f1079ebe64f480d8f99d4ca2c9b6325e27b DIST elldata.tgz 14185595 RMD160 ddac2454fc65b7f5ddfbf1d39d96a3e51b8eef5c SHA1 f9705a2a11f1622ebcc4e6b8f3780af8a178da9e SHA256 4102c23fdbeadc89b47ba31d05fc58cd3c3e0cca216b11ec5c3be1330d4a5218 DIST galdata.tgz 53229 RMD160 488afbddf7026dd6d0c9ebbed72cb14c8c37173e SHA1 0fe78ed49e197066708a3fc3753b2651107a1264 SHA256 b7c1650099b24a20bdade47a85a928351c586287f0d4c73933313873e63290dd +DIST nftables.tgz 8393731 RMD160 48a9c48246f91c1983712682937d666ba1ae6458 SHA1 90df66222346b0dbca68925671a374f5e286daeb SHA256 8dd3393ce6b3cfcf599f094f7b22bdffe17c3ba25deb912513d54676bd7cfe92 DIST pari-2.1.6.tgz 1541464 RMD160 6b79e84b639d1862df148b253136deacd73bf4f0 SHA1 54bd40fa70a02e76d78d0ea19c0f56f7da62de8e SHA256 6150700432e2cbd08567aeaa62b2f7f92f350b83f2cac8e747b1d581883a4227 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 +DIST seadata.tgz 8286706 RMD160 7ff7c3cd5dc46157f2cd7b3ffd286b78156435cd SHA1 587685837a736bc6fb25afc5407102d3e856854e SHA256 0df320a259235af031f7a03e2cc50fa8c272f561a7435cda3f75fc252951b297 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 +EBUILD pari-2.3.4-r1.ebuild 4160 RMD160 72e0cdd25c147ccc8d1fa8838b448f22cc464afb SHA1 9fe2f3944bba9837120ed18e37628a436753dd66 SHA256 54334f8dd65dd76684b2b1d4eb020fb04ca9592f2db1bc3af75f32ad559d63b4 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 +MISC ChangeLog 12770 RMD160 7f8e2968c8cf5c8d2e2914db7a47ec391af72c67 SHA1 0cd819e66059fddddcdeac5c33b7be8e2c602c41 SHA256 f993ec196265c6bbb97917ccd6d6008980e927369139616e17272191427e24e2 +MISC metadata.xml 1272 RMD160 156e974a85658b4a0b184e4d96efdd9d1f0b226f SHA1 3a5de036ef9c131eda2c76df1754fc61dbd676da SHA256 5ee3f72154d8ecd3469d82ccc687f82dd640f91b124bb81192b8600eee3c7252 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.9 (GNU/Linux) +Version: GnuPG v2.0.11 (GNU/Linux) -iEYEARECAAYFAklvcBUACgkQ1ycZbhPLE2B0gACeNxt9b6G6TCnh04IBvW93IDvt -ZHYAn1ZtuFiRecd83wGrW1fo2Ad4SmJU -=2nvf +iEYEARECAAYFAknads8ACgkQ1ycZbhPLE2A82gCcC02BPj3TKiAvDiKZaiNpfCwe +XvUAmQEuRGNot9ffCONYYDiOrxIPnNtS +=Hy31 -----END PGP SIGNATURE----- diff --git a/sci-mathematics/pari/metadata.xml b/sci-mathematics/pari/metadata.xml index ae46f07ce559..2a3550abe510 100644 --- a/sci-mathematics/pari/metadata.xml +++ b/sci-mathematics/pari/metadata.xml @@ -2,9 +2,27 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>sci-mathematics</herd> +<longdescription lang="en"> + PARI is a widely used computer algebra system designed for fast + computations in number theory (factorizations, algebraic number + theory, elliptic curves...), but also contains a large number of other + useful functions to compute with mathematical entities such as + matrices, polynomials, power series, algebraic numbers, etc., and a + lot of transcendental functions. + The extra data is avaialable through use flag: + * elldata is PARI/GP version of J. E. Cremona Elliptic Curve Data, + needed by ellsearch and ellidentify. + * galdata is needed by polgalois to compute Galois group in degrees + 8 through 11. + * seadata is needed by ellap for large primes. + * nftables is a repackaging of the historical megrez number field +tables (errors fixed, 1/10th the size, easier to use). + +</longdescription> <use> <flag name='elliptic'>Add additional elliptic curve data</flag> <flag name='galois'>Add additional data to compute Galois groups of degree 8 to 11</flag> + <flag name='data'>Add additional data (elldata, galdata, seadata, nftables)</flag> </use> </pkgmetadata> diff --git a/sci-mathematics/pari/pari-2.3.3.ebuild b/sci-mathematics/pari/pari-2.3.4-r1.ebuild index 421a96cacdde..4d8d7ef327d1 100644 --- a/sci-mathematics/pari/pari-2.3.3.ebuild +++ b/sci-mathematics/pari/pari-2.3.4-r1.ebuild @@ -1,25 +1,34 @@ -# Copyright 1999-2008 Gentoo Foundation +# 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.3.ebuild,v 1.7 2008/08/27 20:04:42 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.4-r1.ebuild,v 1.1 2009/04/06 21:40:16 bicatali Exp $ -inherit elisp-common eutils flag-o-matic multilib toolchain-funcs +EAPI=2 +inherit elisp-common eutils flag-o-matic 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 )" + +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/seadata.tgz + ${SRC_COM}/packages/nftables.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" - -DEPEND="doc? ( virtual/latex-base ) - sys-libs/readline - X? ( x11-libs/libX11 ) - emacs? ( virtual/emacs ) - gmp? ( dev-libs/gmp )" +IUSE="doc data emacs gmp static X" + +RDEPEND="sys-libs/readline + emacs? ( virtual/emacs ) + fltk? ( x11-libs/fltk ) + gmp? ( dev-libs/gmp ) + qt3? ( x11-libs/qt:3 ) + X? ( x11-libs/libX11 ) + doc? ( X? ( x11-misc/xdg-utils ) )" +DEPEND="${RDEPEND} + doc? ( virtual/latex-base )" SITEFILE=50${PN}-gentoo.el @@ -31,62 +40,65 @@ get_compile_dir() { echo "O${osname}-${arch}" } -src_unpack() { - unpack ${A} - cd "${S}" - +src_prepare() { # move data into place - if ( use galois || use elliptic ); then - mv "${WORKDIR}"/data "${S}" \ - || die "failed to move data" + 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}/"${P}-alglin.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" + 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 = '/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_compile() { - #need to force optimization here, as it breaks without +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" - + # sysdatadir installs a pari.cfg stuff which is informative only ./Configure \ --prefix=/usr \ - --datadir=/usr/share/${P} \ + --datadir=/usr/share/${PN} \ --libdir=/usr/$(get_libdir) \ + --sysdatadir=/usr/share/doc/${PF} \ --mandir=/usr/share/man/man1 \ - ${myconf} \ - || die "./Configure failed" + --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. File a BUG!" + cd "${installdir}" || die "Bad directory" - 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!" @@ -96,7 +108,6 @@ src_compile() { 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" @@ -104,12 +115,11 @@ src_compile() { } src_test() { - make test-kernel + emake test-kernel || die } src_install() { - emake DESTDIR="${D}" LIBDIR="${D}"/usr/$(get_libdir) install \ - || die "Install failed" + emake DESTDIR="${D}" install || die "Install failed" if use emacs; then elisp-install ${PN} emacs/*.el emacs/*.elc \ @@ -117,27 +127,26 @@ src_install() { elisp-site-file-install "${FILESDIR}/${SITEFILE}" fi - dodoc AUTHORS Announce.2.1 CHANGES README TODO NEW + dodoc AUTHORS Announce.2.1 CHANGES README NEW MACHINES COMPAT if use doc; then - emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install-doc \ - || die "Failed to install docs" + emake \ + DESTDIR="${D}" \ + EXDIR="${D}/usr/share/doc/${PF}/examples" \ + DOCDIR="${D}/usr/share/doc/${PF}" \ + 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" + if use data; then + emake DESTDIR="${D}" 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" + emake \ + DESTDIR="${D}" \ + 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() { |