Date: Tue, 24 Jan 2017 16:37:13 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432357 - in head/math/p5-Math-Pari: . files Message-ID: <201701241637.v0OGbDVe005672@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Tue Jan 24 16:37:13 2017 New Revision: 432357 URL: https://svnweb.freebsd.org/changeset/ports/432357 Log: Unbreak after math/pari's latest upgrade by bundeling previous the previous pari version. Additionnally, update to 2.01080900. Sponsored by: Absolight Modified: head/math/p5-Math-Pari/Makefile (contents, props changed) head/math/p5-Math-Pari/distinfo (contents, props changed) head/math/p5-Math-Pari/files/patch-Makefile.PL (contents, props changed) head/math/p5-Math-Pari/pkg-plist (contents, props changed) Modified: head/math/p5-Math-Pari/Makefile ============================================================================== --- head/math/p5-Math-Pari/Makefile Tue Jan 24 16:36:29 2017 (r432356) +++ head/math/p5-Math-Pari/Makefile Tue Jan 24 16:37:13 2017 (r432357) @@ -2,26 +2,60 @@ # $FreeBSD$ PORTNAME= Math-Pari -PORTVERSION= 2.01080800 +PORTVERSION= 2.01080900 CATEGORIES= math perl5 -MASTER_SITES= CPAN +MASTER_SITES= CPAN \ + http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/:pari \ + http://mirrors.rit.edu/zi/:pari PKGNAMEPREFIX= p5- -DISTNAME= ${PORTNAME}-${PORTVERSION:C/00$//} +DISTFILES= ${DISTNAME}.zip \ + pari-2.3.5.tar.gz:pari MAINTAINER= perl@FreeBSD.org COMMENT= PARI - numerical/scientific/number-theoretic calculations -BUILD_DEPENDS= ${NONEXISTENT}:math/pari:configure -LIB_DEPENDS= libpari.so:math/pari +LIB_DEPENDS= libgmp.so:math/gmp -USES= perl5 zip +USES= perl5 USE_PERL5= configure -CONFIGURE_ARGS= parilib="-L${LOCALBASE}/lib -lpari" \ - paridir=`${MAKE} -C ${PORTSDIR}/math/pari -V WRKSRC` +PARI_WRKSRC= ${WRKDIR}/pari-2.3.5 + +CFLAGS+= -I${PARI_WRKSRC}/src/headers -I${PARI_WRKSRC}/build + +CONFIGURE_ARGS= parilib="-L${PARI_WRKSRC}/build -lpari" \ + paridir=${PARI_WRKSRC} +MAKE_ARGS= LDLOADLIBS="-lm -L${PARI_WRKSRC}/build -Wl,-rpath=${SITE_ARCH}/auto/Math/Pari -lpari" post-patch: @${REINPLACE_CMD} -e 's|2001007|2003000|' ${WRKSRC}/Makefile.PL + @${REINPLACE_CMD} -E '/^list=/s/(ld|ranlib|perl|emacs)//g' \ + ${PARI_WRKSRC}/Configure + @${REINPLACE_CMD} -e '/^CFLAGS=/s/\$$cflags//' \ + ${PARI_WRKSRC}/config/get_cc + +pre-configure: + cd ${PARI_WRKSRC} && ${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \ + CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \ + LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \ + INSTALL="/usr/bin/install -c" \ + INSTALL_DATA="${INSTALL_DATA}" \ + INSTALL_LIB="${INSTALL_LIB}" \ + INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ + INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ + ld="${LD}" perl="${PERL}" ranlib="${RANLIB}" \ + ./Configure --mandir=${MANPREFIX}/man/man1 \ + --prefix=${PREFIX} \ + --share-prefix=${PREFIX}/share \ + --with-gmp=${LOCALBASE} + +pre-build: + cd ${PARI_WRKSRC} && ${DO_MAKE_BUILD:N-j*} gp + cd ${PARI_WRKSRC} && ln -s $$(dirname $$(readlink gp)) build + +post-install: + ${INSTALL_LIB} ${PARI_WRKSRC}/build/libpari-gmp.so.2.3.5 ${STAGEDIR}${SITE_ARCH}/auto/Math/Pari + ${LN} -s libpari-gmp.so.2.3.5 ${STAGEDIR}${SITE_ARCH}/auto/Math/Pari/libpari-gmp.so.2 post-clean: @${MAKE_CMD} -C ${PORTSDIR}/math/pari -DBATCH clean Modified: head/math/p5-Math-Pari/distinfo ============================================================================== --- head/math/p5-Math-Pari/distinfo Tue Jan 24 16:36:29 2017 (r432356) +++ head/math/p5-Math-Pari/distinfo Tue Jan 24 16:37:13 2017 (r432357) @@ -1,2 +1,5 @@ -SHA256 (Math-Pari-2.010808.zip) = 543633b2984a71e8adee2a6130f740cc1e22aefb95ca3e886338aee9e1ae3c06 -SIZE (Math-Pari-2.010808.zip) = 153838 +TIMESTAMP = 1485271442 +SHA256 (Math-Pari-2.01080900.zip) = 5845d9350fe0cd9d909d71b6d6b88ab67d17da88f4b0df6570938583d6f365fc +SIZE (Math-Pari-2.01080900.zip) = 166396 +SHA256 (pari-2.3.5.tar.gz) = 47ddae1af73b4476660d2a89338483949067a97ffb8758c82e8189dfa4c89d88 +SIZE (pari-2.3.5.tar.gz) = 2018097 Modified: head/math/p5-Math-Pari/files/patch-Makefile.PL ============================================================================== --- head/math/p5-Math-Pari/files/patch-Makefile.PL Tue Jan 24 16:36:29 2017 (r432356) +++ head/math/p5-Math-Pari/files/patch-Makefile.PL Tue Jan 24 16:37:13 2017 (r432357) @@ -1,6 +1,6 @@ ---- Makefile.PL.orig 2009-12-25 11:08:17.581369187 +0300 -+++ Makefile.PL 2009-12-25 11:10:35.244866346 +0300 -@@ -119,9 +119,9 @@ +--- Makefile.PL.orig 2016-05-07 03:14:29 UTC ++++ Makefile.PL +@@ -142,9 +142,9 @@ if ($os eq "solaris") { } my %opts; @@ -11,7 +11,7 @@ make_pod 'libPARI.dumb.pod', '-to_dumb_pod', $paridir; # ... and paricfg.h %opts = build_paricfg($paridir, $common::do_configure, $pari_version); -@@ -176,7 +176,7 @@ +@@ -199,7 +199,7 @@ my $extra_inc = extra_includes($paridir) # the contents of the Makefile being created. &WriteMakefile( LIBS => $libs, Modified: head/math/p5-Math-Pari/pkg-plist ============================================================================== --- head/math/p5-Math-Pari/pkg-plist Tue Jan 24 16:36:29 2017 (r432356) +++ head/math/p5-Math-Pari/pkg-plist Tue Jan 24 16:37:13 2017 (r432357) @@ -4,4 +4,6 @@ %%SITE_ARCH%%/Math/Pari.pm %%SITE_ARCH%%/Math/PariInit.pm %%SITE_ARCH%%/Math/libPARI.pod +%%SITE_ARCH%%/auto/Math/Pari/libpari-gmp.so.2 +%%SITE_ARCH%%/auto/Math/Pari/libpari-gmp.so.2.3.5 %%SITE_ARCH%%/auto/Math/Pari/Pari.so
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701241637.v0OGbDVe005672>