On Fri, 23 Nov 2018 20:39:13 +0100
Christian Weisgerber <[email protected]> wrote:

> The math/pari port remains at version 2.1.7 from 2005 (!).  In the
> meantime, upstream has released a stream of new versions up to
> 2.11.0 earlier this year.  If there is so little interest in
> maintaining the port, we might as well delete it.
> 
> (2.1.7 fails to build with lld on i386 and there is no point in
> spending any effort on a historic version.)

FreeBSD's math/p5-Math-Pari has no dependency on math/pari, because it
extracts its own copy of pari's sources.  This allowed FreeBSD to
update math/pari to 2.11.0 and keep p5-Math-Pari using 2.3.5.

The below diff for OpenBSD's math/p5-Math-Pari tries to be like
FreeBSD, but seems not correct.  It passes `make test` on amd64, but I
suspect it doesn't use GMP even though I tried to enable GMP.  Pari
has some assembly kernels (like alpha, ix86, ppc, ...) and a GMP
kernel; I wonder if the GMP kernel would fix the lld error.

Index: Makefile
===================================================================
RCS file: /cvs/ports/math/p5-Math-Pari/Makefile,v
retrieving revision 1.20
diff -u -p -u -r1.20 Makefile
--- Makefile    4 Dec 2017 17:56:27 -0000       1.20
+++ Makefile    24 Nov 2018 18:25:34 -0000
@@ -6,24 +6,28 @@ COMMENT=      Perl interface to libPARI and G
 
 MODULES=       cpan
 # beware may need EPOCH if updating
-DISTNAME=      Math-Pari-2.01080605
+DISTNAME=      Math-Pari-2.030507
 CATEGORIES=    math
-REVISION=      1
-FIX_EXTRACT_PERMISSIONS=Yes
+EPOCH=         0
 
-# Perl
+# Perl (Math-Pari), GPLv1+ (pari)
 PERMIT_PACKAGE_CDROM=  Yes
 
 WANTLIB += c m perl
 
-BUILD_DEPENDS= math/pari:configure
-USE_X11 =      Yes
+DISTFILES=     ${DISTNAME}.zip \
+               pari-2.3.5.tar.gz:0
+MASTER_SITES0= http://pari.math.u-bordeaux.fr/pub/pari/OLD/2.3/
 
-PARIDIR=       math/pari
+LIB_DEPENDS=   devel/gmp
+USE_X11 =      Yes
 
 CONFIGURE_ARGS=        paridir=${WRKDIST}/pari
 
 post-extract:
-       ln -s ${WRKDIR}/${PARIDIR}/pari* ${WRKDIST}/pari
+       mv ${WRKDIR}/pari-* ${WRKDIST}/pari
+
+pre-configure:
+       cd ${WRKDIST}/pari && ./Configure --with-gmp=${LOCALBASE}
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/math/p5-Math-Pari/distinfo,v
retrieving revision 1.4
diff -u -p -u -r1.4 distinfo
--- distinfo    20 Mar 2013 22:54:27 -0000      1.4
+++ distinfo    24 Nov 2018 18:25:34 -0000
@@ -1,2 +1,4 @@
-SHA256 (Math-Pari-2.01080605.tar.gz) = 
7tVT3IOJc1ZsI7d8wwyRMIArpQLmozlp4lGDvFgxykY=
-SIZE (Math-Pari-2.01080605.tar.gz) = 122627
+SHA256 (Math-Pari-2.030507.zip) = bVEy9wdR4Wu4Nm7o0pQ14NuWEibrxstNErBaucDijO0=
+SHA256 (pari-2.3.5.tar.gz) = R92uGvc7RHZmDSqJM4SDlJBnqX/7h1jILoGJ36TInYg=
+SIZE (Math-Pari-2.030507.zip) = 200371
+SIZE (pari-2.3.5.tar.gz) = 2018097

-- 
George Koehler <[email protected]>

Reply via email to