From f3eec5c13d02330f222325f27e297f3e9b7e96a8 Mon Sep 17 00:00:00 2001 From: Erwin Lansing Date: Wed, 4 Jun 2003 18:36:41 +0000 Subject: - Update to 2.03 - Now uses gmp.6 from ports. - Give maintainership to submitter PR: 52292 Submitted by: Mathieu Arnold Approved by: edwin (mentor) --- math/p5-Math-GMP/Makefile | 21 +++++++++------------ math/p5-Math-GMP/distinfo | 2 +- math/p5-Math-GMP/files/patch-Makefile.PL | 25 ------------------------- math/p5-Math-GMP/pkg-plist | 16 ++++++++-------- 4 files changed, 18 insertions(+), 46 deletions(-) delete mode 100644 math/p5-Math-GMP/files/patch-Makefile.PL (limited to 'math/p5-Math-GMP') diff --git a/math/p5-Math-GMP/Makefile b/math/p5-Math-GMP/Makefile index 4ae645344a21..f4dfb026590e 100644 --- a/math/p5-Math-GMP/Makefile +++ b/math/p5-Math-GMP/Makefile @@ -6,27 +6,24 @@ # PORTNAME= Math-GMP -PORTVERSION= 1.07 +PORTVERSION= 2.03 CATEGORIES= math perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Math PKGNAMEPREFIX= p5- -MAINTAINER= ports@FreeBSD.org +MAINTAINER= m@absolight.net COMMENT= Perl module that provides an interface to the GMP library -.include - -.if ${OSVERSION} >= 500000 -LIB_DEPENDS= gmp:${PORTSDIR}/math/libgmp4 -CONFIGURE_ENV+= GMP=${LOCALBASE} -.else -CONFIGURE_ENV+= GMP=/usr -.endif +LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4 PERL_CONFIGURE= yes -MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= Math::GMP.3 -.include +post-patch: + @${PERL} -pi -e "s!-lgmp!-L${LOCALBASE}/lib $$&!;" \ + -e "if (/LIBS/) { print qq!'INC' => '-I${LOCALBASE}/include',!; }" \ + ${WRKSRC}/Makefile.PL + +.include diff --git a/math/p5-Math-GMP/distinfo b/math/p5-Math-GMP/distinfo index f2fc36b9a4dd..8d0f47f2bf4f 100644 --- a/math/p5-Math-GMP/distinfo +++ b/math/p5-Math-GMP/distinfo @@ -1 +1 @@ -MD5 (Math-GMP-1.07.tar.gz) = 385022cd0af5de7d8ea999d3573d997d +MD5 (Math-GMP-2.03.tar.gz) = cf653ffa60607717ff4fc67177ee07b0 diff --git a/math/p5-Math-GMP/files/patch-Makefile.PL b/math/p5-Math-GMP/files/patch-Makefile.PL deleted file mode 100644 index 21ff9e18a6d5..000000000000 --- a/math/p5-Math-GMP/files/patch-Makefile.PL +++ /dev/null @@ -1,25 +0,0 @@ ---- Makefile.PL.orig Wed Nov 27 10:18:38 2002 -+++ Makefile.PL Wed Nov 27 10:50:17 2002 -@@ -6,6 +6,8 @@ - my $tar = (grep { -x "$_/tar" } @paths)[0] . "/tar"; - my $gzip = (grep { -x "$_/gzip" } @paths)[0] . "/gzip"; - -+# FreeBSD has GMP in the base system or ports -+if ("" ne "" ) { - my $cmd = "$gzip -dc gmp-2.0.2.tar.gz | $tar xf -"; - system $cmd unless -d 'gmp-2.0.2'; - die "tar extraction of gmp-2.0.2.tar.gz failed" unless -d 'gmp-2.0.2'; -@@ -13,11 +15,12 @@ - chdir 'gmp-2.0.2'; - system "./configure --prefix=../gmp && make && make install"; - chdir '..'; -+} - - WriteMakefile( - 'NAME' => 'Math::GMP', - 'VERSION_FROM' => 'GMP.pm', # finds $VERSION - 'LIBS' => ['-Lgmp/lib -lgmp'], # e.g., '-lm' - 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' -- 'INC' => '-I$(PREFIX)', # e.g., '-I/usr/include/other' -+ 'INC' => '-I'.$ENV{"GMP"}.'/include', # e.g., '-I/usr/include/other' - ); diff --git a/math/p5-Math-GMP/pkg-plist b/math/p5-Math-GMP/pkg-plist index ef5a63aa711a..6195b528f9d8 100644 --- a/math/p5-Math-GMP/pkg-plist +++ b/math/p5-Math-GMP/pkg-plist @@ -1,8 +1,8 @@ -lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Math/GMP.pm -lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Math/GMP/.packlist -lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Math/GMP/GMP.bs -lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Math/GMP/GMP.so -lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Math/GMP/autosplit.ix -@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Math/GMP -@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Math 2>/dev/null || true -@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Math 2>/dev/null || true +%%SITE_PERL%%/%%PERL_ARCH%%/Math/GMP.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/GMP/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/GMP/GMP.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/GMP/GMP.so +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/GMP/autosplit.ix +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/GMP +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Math 2>/dev/null || true -- cgit v1.2.3