public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Math-Pari/
Date: Fri, 06 Jun 2025 03:44:20 +0000 (UTC)	[thread overview]
Message-ID: <1749180176.0bb56f3c2afc1bdaa2b0b2c747075be88cf32acc.sam@gentoo> (raw)

commit:     0bb56f3c2afc1bdaa2b0b2c747075be88cf32acc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  6 03:22:56 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun  6 03:22:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bb56f3c

dev-perl/Math-Pari: add 2.30.528

Closes: https://bugs.gentoo.org/882829
Closes: https://bugs.gentoo.org/943802
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-perl/Math-Pari/Manifest                  |  1 +
 dev-perl/Math-Pari/Math-Pari-2.30.528.ebuild | 76 ++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/dev-perl/Math-Pari/Manifest b/dev-perl/Math-Pari/Manifest
index fbeecb1ca31b..b28ec7de4657 100644
--- a/dev-perl/Math-Pari/Manifest
+++ b/dev-perl/Math-Pari/Manifest
@@ -1,3 +1,4 @@
 DIST Math-Pari-2.01080900.zip 166396 BLAKE2B e4327d817cadc752e3471df873b1a4f2fe90efc18a9cbf195c6aa394f470fde9c1c32449b8e5237b5ee362ca0497e7295dc9c8dea7f41de8da17518a0573a768 SHA512 844324472632081e16d8c70e2f3b14a04cc125dc65ac1e4e75b495f7b83393cadc637c6b81d2e6657380b153a6d91eba4a437087481ffbd4c6c58c5da0e4d05b
 DIST Math-Pari-2.030523.tar.gz 230001 BLAKE2B bc4981655308610ae870b55adff811d573dcdab5675e3c3134fc75f6acf22aed83b60b3bcd5a76e2ba0aa39c72420a73c369e51236c0ef9fd64f0c12003cd854 SHA512 4f75a745111eed1c326270fc4cff5f7785fd353ffbbaf21a33215974671cdb2a4ff8d397a2df41b24002312a43993114a3620f5b6ed7eb6d4bdae9c4f62d671c
+DIST Math-Pari-2.030528.tar.gz 234042 BLAKE2B 9f897484f143214c86a7dd16b926996ca9cf9c7fd59216c427b964c9b0ba058364af2b4c48d4fbcf8f300e47608282ada86b6631c1968a6629812c725379d01d SHA512 a07e3b907f3cbb9b82f6bacfbdae8813a2a9f2eb89d571bd37b67528c01b16d92156b06412d12ad7007c568a921deca70a8e7092a5e7c5403985df620048bd34
 DIST pari-2.3.5.tar.gz 2018097 BLAKE2B b5f4f8bc83cd77aceab791263e1a2f0294d0663d354fea454bad8cac3cdbac9c4c8381cc83bc947d518522701c36e94ce1d6862125a9bfd3b17b1a31c9baabc8 SHA512 0e49e6310b4c76ef3370786a13aa8cbc5bb0b7dc84ec1665866d623e6284f45db8584eea759e8b5954dc9b5c8a3e866e77a377d18073ed33f11708a7e88a4cca

diff --git a/dev-perl/Math-Pari/Math-Pari-2.30.528.ebuild b/dev-perl/Math-Pari/Math-Pari-2.30.528.ebuild
new file mode 100644
index 000000000000..0f984d5ea21e
--- /dev/null
+++ b/dev-perl/Math-Pari/Math-Pari-2.30.528.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=ILYAZ
+DIST_SECTION=modules
+DIST_VERSION=2.030528
+inherit flag-o-matic perl-module toolchain-funcs
+
+PARI_VER=2.3.5
+
+DESCRIPTION="Perl interface to PARI"
+SRC_URI="
+	${SRC_URI}
+	https://pari.math.u-bordeaux.fr/pub/pari/OLD/${PARI_VER%.*}/pari-${PARI_VER}.tar.gz
+"
+S_PARI="${WORKDIR}"/pari-${PARI_VER}
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+# 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
+
+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/ || die
+
+	local t
+	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}"
+
+		if [[ -f "${i}" && ! -f "${o32}" ]] ; then
+			cp -al "${i}" "${o32}" || die
+		fi
+
+		if [[ -f "$i" && ! -f "$o64" ]] ; then
+			cp -al "${i}" "${o64}" || die
+		fi
+	done
+
+	cd "${S_PARI}" || die
+	eapply "${FILESDIR}/pari-${PARI_VER}-no-dot-inc.patch"
+	cd "${S}" || die
+
+	perl-module_src_prepare
+}
+
+src_configure() {
+	# bug #1234
+	append-cflags -std=gnu17
+
+	# 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"
+
+	# Unfortunately the assembly routines for hppa hard-assume HPUX ...
+	use hppa && myconf="${myconf} machine=none"
+
+	perl-module_src_configure
+}
+
+src_compile() {
+	emake AR="$(tc-getAR)" OTHERLDFLAGS="${LDFLAGS}"
+}


             reply	other threads:[~2025-06-06  3:44 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-06  3:44 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-07-14  9:18 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Math-Pari/ Sam James
2025-06-06  2:30 Sam James
2025-06-06  2:30 Sam James
2025-04-13 23:59 Andreas K. Hüttel
2025-04-13 22:18 Andreas K. Hüttel
2024-09-25 19:29 Eli Schwartz
2024-09-25 19:29 Eli Schwartz
2022-07-02 21:21 Sam James
2022-07-02 21:21 Sam James
2022-07-02 21:18 Sam James
2022-07-02 18:20 Sam James
2022-07-02 15:32 Sam James
2018-05-01  0:28 Kent Fredric
2018-04-20 19:01 Sergei Trofimovich
2018-04-20  8:02 David Seifert
2018-04-20  8:02 David Seifert
2018-04-03  6:20 Sergei Trofimovich
2018-03-28  2:26 Matt Turner
2017-08-19  0:56 Thomas Deutschmann
2017-07-16 11:08 Tobias Klausmann
2017-07-15 17:04 Tobias Klausmann
2017-03-11 23:05 Matt Turner
2016-04-07 23:08 Andreas Hüttel
2016-04-07 23:08 [gentoo-commits] repo/gentoo:master commit in: dev-perl/math-pari/ Andreas Hüttel
2016-03-03 19:07 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1749180176.0bb56f3c2afc1bdaa2b0b2c747075be88cf32acc.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox