From b1d557f6d223b0db63378ebf8d4728cab17d0b97 Mon Sep 17 00:00:00 2001 From: Harri Nieminen Date: Thu, 19 Apr 2018 21:51:30 +0300 Subject: dev-perl/Math-Pari: Remove depedency on pari It bundles internal copy of sci-mathematics/pari Bug: https://bugs.gentoo.org/253474 Package-Manager: Portage-2.3.31, Repoman-2.3.9 Closes: https://github.com/gentoo/gentoo/pull/8070 --- dev-perl/Math-Pari/Manifest | 1 - dev-perl/Math-Pari/Math-Pari-2.10.806.50-r1.ebuild | 61 ------------------- dev-perl/Math-Pari/Math-Pari-2.10.806.50-r2.ebuild | 59 ++++++++++++++++++ dev-perl/Math-Pari/Math-Pari-2.10.809.0-r1.ebuild | 66 +++++++++++++++++++++ dev-perl/Math-Pari/Math-Pari-2.10.809.0.ebuild | 69 ---------------------- 5 files changed, 125 insertions(+), 131 deletions(-) delete mode 100644 dev-perl/Math-Pari/Math-Pari-2.10.806.50-r1.ebuild create mode 100644 dev-perl/Math-Pari/Math-Pari-2.10.806.50-r2.ebuild create mode 100644 dev-perl/Math-Pari/Math-Pari-2.10.809.0-r1.ebuild delete mode 100644 dev-perl/Math-Pari/Math-Pari-2.10.809.0.ebuild (limited to 'dev-perl/Math-Pari') diff --git a/dev-perl/Math-Pari/Manifest b/dev-perl/Math-Pari/Manifest index 92f39db33fd5..2f15d1d520ef 100644 --- a/dev-perl/Math-Pari/Manifest +++ b/dev-perl/Math-Pari/Manifest @@ -1,4 +1,3 @@ DIST Math-Pari-2.01080605.tar.gz 122627 BLAKE2B 867839722c578fc5731745975b3f9a3ba48f94d0d8364a6d6e4d62f9f87f25f782296a60778b628b771db9a01ef050c822b62fb57fbe7f5725aae597c7d18d55 SHA512 a92ff01afce8d52c5d7c4fec1a5759b5d7b786c8f359348ac8f4e7fc95be9338b990879d4d89598dc5333f79c53a92e54f6756d0e6c9a0e9e72a4dfd15b0b263 -DIST Math-Pari-2.010808.zip 153838 BLAKE2B 58352ecbb9c66cb7f68cb38dfc8b689dba85dce0521669bfbc1e3b88eb55df07f75fcbe6b5759e5fbedb865e5cf265e17c17e08792dbe87772ee9da26ea772d9 SHA512 006e77328f0d8e61b89addbb6b8b8a8adb8c8c1591a1d3cdf80f5183a5fb30bb19219cbfc2624d15ffcdb6b0dc5cff4d69e6e27eb7cb6c29796bbab36ecfda88 DIST Math-Pari-2.01080900.zip 166396 BLAKE2B e4327d817cadc752e3471df873b1a4f2fe90efc18a9cbf195c6aa394f470fde9c1c32449b8e5237b5ee362ca0497e7295dc9c8dea7f41de8da17518a0573a768 SHA512 844324472632081e16d8c70e2f3b14a04cc125dc65ac1e4e75b495f7b83393cadc637c6b81d2e6657380b153a6d91eba4a437087481ffbd4c6c58c5da0e4d05b DIST pari-2.3.5.tar.gz 2018097 BLAKE2B b5f4f8bc83cd77aceab791263e1a2f0294d0663d354fea454bad8cac3cdbac9c4c8381cc83bc947d518522701c36e94ce1d6862125a9bfd3b17b1a31c9baabc8 SHA512 0e49e6310b4c76ef3370786a13aa8cbc5bb0b7dc84ec1665866d623e6284f45db8584eea759e8b5954dc9b5c8a3e866e77a377d18073ed33f11708a7e88a4cca diff --git a/dev-perl/Math-Pari/Math-Pari-2.10.806.50-r1.ebuild b/dev-perl/Math-Pari/Math-Pari-2.10.806.50-r1.ebuild deleted file mode 100644 index 5b4db3772cf5..000000000000 --- a/dev-perl/Math-Pari/Math-Pari-2.10.806.50-r1.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -MODULE_AUTHOR=ILYAZ -MODULE_SECTION=modules -MODULE_VERSION=2.01080605 -inherit perl-module toolchain-funcs - -PARI_VER=2.3.5 - -DESCRIPTION="Perl interface to PARI" -SRC_URI="${SRC_URI} - http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-${PARI_VER}.tar.gz" - -LICENSE="|| ( Artistic GPL-2 )" -SLOT="0" -KEYWORDS="alpha amd64 hppa sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" -IUSE="" - -# Math::Pari requires that a copy of the pari source in a parallel -# directory to where you build it. It does not need to compile it, but -# it does need to be the same version as is installed, hence the hard -# DEPEND below -RDEPEND="~sci-mathematics/pari-${PARI_VER}" -DEPEND="${RDEPEND}" - -S_PARI=${WORKDIR}/pari-${PARI_VER} -SRC_TEST=do - -src_prepare() { - # On 64-bit hardware, these files are needed in both the 64/ and 32/ - # directories for the testsuite to pass. - cd "${S_PARI}"/src/test/ - for t in analyz compat ellglobalred elliptic galois graph intnum kernel \ - linear nfields number objets ploth polyser program qfbsolve rfrac \ - round4 stark sumiter trans ; do - i="in/${t}" - o32="32/${t}" - o64="64/${t}" - [ -f "$i" -a ! -f "$o32" ] && cp -al "$i" "$o32" - [ -f "$i" -a ! -f "$o64" ] && cp -al "$i" "$o64" - done - perl-module_src_prepare -} - -src_configure() { - # Unfortunately the assembly routines math-pari has for SPARC do not appear - # to be working at current. Perl cannot test math-pari or anything that - # pulls in the math-pari module as DynaLoader cannot load the resulting - # .so files math-pari generates. As such, we have to use the generic - # non-machine specific assembly methods here. - use sparc && myconf="${myconf} machine=none" - - perl-module_src_configure -} - -src_compile() { - emake AR="$(tc-getAR)" OTHERLDFLAGS="${LDFLAGS}" -} diff --git a/dev-perl/Math-Pari/Math-Pari-2.10.806.50-r2.ebuild b/dev-perl/Math-Pari/Math-Pari-2.10.806.50-r2.ebuild new file mode 100644 index 000000000000..328bce2c350c --- /dev/null +++ b/dev-perl/Math-Pari/Math-Pari-2.10.806.50-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +MODULE_AUTHOR=ILYAZ +MODULE_SECTION=modules +MODULE_VERSION=2.01080605 +inherit perl-module toolchain-funcs + +PARI_VER=2.3.5 + +DESCRIPTION="Perl interface to PARI" +SRC_URI="${SRC_URI} + http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-${PARI_VER}.tar.gz" + +LICENSE="|| ( Artistic GPL-2 )" +SLOT="0" +KEYWORDS="alpha amd64 hppa sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" +IUSE="" + +# Math::Pari requires that a copy of the pari source in a parallel +# directory to where you build it. It does not need to compile it, but +# it does need to be the same version as is installed, hence the hard +# DEPEND below + +S_PARI=${WORKDIR}/pari-${PARI_VER} +SRC_TEST=do + +src_prepare() { + # On 64-bit hardware, these files are needed in both the 64/ and 32/ + # directories for the testsuite to pass. + cd "${S_PARI}"/src/test/ + for t in analyz compat ellglobalred elliptic galois graph intnum kernel \ + linear nfields number objets ploth polyser program qfbsolve rfrac \ + round4 stark sumiter trans ; do + i="in/${t}" + o32="32/${t}" + o64="64/${t}" + [ -f "$i" -a ! -f "$o32" ] && cp -al "$i" "$o32" + [ -f "$i" -a ! -f "$o64" ] && cp -al "$i" "$o64" + done + perl-module_src_prepare +} + +src_configure() { + # Unfortunately the assembly routines math-pari has for SPARC do not appear + # to be working at current. Perl cannot test math-pari or anything that + # pulls in the math-pari module as DynaLoader cannot load the resulting + # .so files math-pari generates. As such, we have to use the generic + # non-machine specific assembly methods here. + use sparc && myconf="${myconf} machine=none" + + perl-module_src_configure +} + +src_compile() { + emake AR="$(tc-getAR)" OTHERLDFLAGS="${LDFLAGS}" +} diff --git a/dev-perl/Math-Pari/Math-Pari-2.10.809.0-r1.ebuild b/dev-perl/Math-Pari/Math-Pari-2.10.809.0-r1.ebuild new file mode 100644 index 000000000000..d69eb1e17ad1 --- /dev/null +++ b/dev-perl/Math-Pari/Math-Pari-2.10.809.0-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=ILYAZ +DIST_SECTION=modules +DIST_VERSION=2.01080900 +DIST_A_EXT=zip +inherit perl-module toolchain-funcs + +PARI_VER=2.3.5 + +DESCRIPTION="Perl interface to PARI" +SRC_URI="${SRC_URI} + http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-${PARI_VER}.tar.gz" + +SLOT="0" +KEYWORDS="alpha amd64 hppa ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" +IUSE="" + +# Math::Pari requires that a copy of the pari source in a parallel +# directory to where you build it. It does not need to compile it, but +# it does need to be the same version as is installed, hence the hard +# DEPEND below +DEPEND="app-arch/unzip" + +S_PARI=${WORKDIR}/pari-${PARI_VER} + +PATCHES=( + "${FILESDIR}/no-flto.patch" + "${FILESDIR}/${P}-no-dot-inc.patch" +) +src_prepare() { + # On 64-bit hardware, these files are needed in both the 64/ and 32/ + # directories for the testsuite to pass. + cd "${S_PARI}"/src/test/ + for t in analyz compat ellglobalred elliptic galois graph intnum kernel \ + linear nfields number objets ploth polyser program qfbsolve rfrac \ + round4 stark sumiter trans ; do + i="in/${t}" + o32="32/${t}" + o64="64/${t}" + [ -f "$i" -a ! -f "$o32" ] && cp -al "$i" "$o32" + [ -f "$i" -a ! -f "$o64" ] && cp -al "$i" "$o64" + done + cd "${S_PARI}" + eapply "${FILESDIR}/pari-${PARI_VER}-no-dot-inc.patch" + cd "${S}" + perl-module_src_prepare +} + +src_configure() { + # Unfortunately the assembly routines math-pari has for SPARC do not appear + # to be working at current. Perl cannot test math-pari or anything that + # pulls in the math-pari module as DynaLoader cannot load the resulting + # .so files math-pari generates. As such, we have to use the generic + # non-machine specific assembly methods here. + use sparc && myconf="${myconf} machine=none" + + perl-module_src_configure +} + +src_compile() { + emake AR="$(tc-getAR)" OTHERLDFLAGS="${LDFLAGS}" +} diff --git a/dev-perl/Math-Pari/Math-Pari-2.10.809.0.ebuild b/dev-perl/Math-Pari/Math-Pari-2.10.809.0.ebuild deleted file mode 100644 index 203cf8607e03..000000000000 --- a/dev-perl/Math-Pari/Math-Pari-2.10.809.0.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DIST_AUTHOR=ILYAZ -DIST_SECTION=modules -DIST_VERSION=2.01080900 -DIST_A_EXT=zip -inherit perl-module toolchain-funcs - -PARI_VER=2.3.5 - -DESCRIPTION="Perl interface to PARI" -SRC_URI="${SRC_URI} - http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-${PARI_VER}.tar.gz" - -SLOT="0" -KEYWORDS="alpha amd64 hppa ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" -IUSE="" - -# Math::Pari requires that a copy of the pari source in a parallel -# directory to where you build it. It does not need to compile it, but -# it does need to be the same version as is installed, hence the hard -# DEPEND below -RDEPEND="~sci-mathematics/pari-${PARI_VER}" -DEPEND="${RDEPEND} - app-arch/unzip -" - -S_PARI=${WORKDIR}/pari-${PARI_VER} - -PATCHES=( - "${FILESDIR}/no-flto.patch" - "${FILESDIR}/${P}-no-dot-inc.patch" -) -src_prepare() { - # On 64-bit hardware, these files are needed in both the 64/ and 32/ - # directories for the testsuite to pass. - cd "${S_PARI}"/src/test/ - for t in analyz compat ellglobalred elliptic galois graph intnum kernel \ - linear nfields number objets ploth polyser program qfbsolve rfrac \ - round4 stark sumiter trans ; do - i="in/${t}" - o32="32/${t}" - o64="64/${t}" - [ -f "$i" -a ! -f "$o32" ] && cp -al "$i" "$o32" - [ -f "$i" -a ! -f "$o64" ] && cp -al "$i" "$o64" - done - cd "${S_PARI}" - eapply "${FILESDIR}/pari-${PARI_VER}-no-dot-inc.patch" - cd "${S}" - perl-module_src_prepare -} - -src_configure() { - # Unfortunately the assembly routines math-pari has for SPARC do not appear - # to be working at current. Perl cannot test math-pari or anything that - # pulls in the math-pari module as DynaLoader cannot load the resulting - # .so files math-pari generates. As such, we have to use the generic - # non-machine specific assembly methods here. - use sparc && myconf="${myconf} machine=none" - - perl-module_src_configure -} - -src_compile() { - emake AR="$(tc-getAR)" OTHERLDFLAGS="${LDFLAGS}" -} -- cgit v1.2.3-65-gdbad