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: Sat,  2 Jul 2022 15:32:17 +0000 (UTC)	[thread overview]
Message-ID: <1656775931.da4fe8ad61e23434294d1846e83a687a650a84db.sam@gentoo> (raw)

commit:     da4fe8ad61e23434294d1846e83a687a650a84db
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  2 15:31:58 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul  2 15:32:11 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da4fe8ad

dev-perl/Math-Pari: update EAPI 6 -> 8

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-perl/Math-Pari/Math-Pari-2.10.809.0-r2.ebuild | 75 +++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/dev-perl/Math-Pari/Math-Pari-2.10.809.0-r2.ebuild b/dev-perl/Math-Pari/Math-Pari-2.10.809.0-r2.ebuild
new file mode 100644
index 000000000000..c4edab03ae9e
--- /dev/null
+++ b/dev-perl/Math-Pari/Math-Pari-2.10.809.0-r2.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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"
+S_PARI="${WORKDIR}"/pari-${PARI_VER}
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
+
+# 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
+BDEPEND="app-arch/unzip"
+
+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/ || 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() {
+	# 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}"
+}


             reply	other threads:[~2022-07-02 15:32 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-02 15:32 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-13 23:59 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Math-Pari/ 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
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=1656775931.da4fe8ad61e23434294d1846e83a687a650a84db.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