From owner-svn-ports-all@freebsd.org Tue Jan 24 16:37:15 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D518CC080F; Tue, 24 Jan 2017 16:37:15 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E386E6C3; Tue, 24 Jan 2017 16:37:14 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0OGbEdx005676; Tue, 24 Jan 2017 16:37:14 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0OGbDVe005672; Tue, 24 Jan 2017 16:37:13 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201701241637.v0OGbDVe005672@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Tue, 24 Jan 2017 16:37:13 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2017 16:37:15 -0000 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