aboutsummaryrefslogtreecommitdiffstats
path: root/math/p5-Math-GMP
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2003-06-05 02:36:41 +0800
committererwin <erwin@FreeBSD.org>2003-06-05 02:36:41 +0800
commitb41b562d3198bd47c67f3974bb0d24a2f32a7c76 (patch)
tree03e41dc10b37aa67a473fb2cb98102cfb4faf597 /math/p5-Math-GMP
parent26964206c0de879e459f923cbda9fad30bef63c2 (diff)
downloadfreebsd-ports-gnome-b41b562d3198bd47c67f3974bb0d24a2f32a7c76.tar.gz
freebsd-ports-gnome-b41b562d3198bd47c67f3974bb0d24a2f32a7c76.tar.zst
freebsd-ports-gnome-b41b562d3198bd47c67f3974bb0d24a2f32a7c76.zip
- Update to 2.03
- Now uses gmp.6 from ports. - Give maintainership to submitter PR: 52292 Submitted by: Mathieu Arnold <m@absolight.net> Approved by: edwin (mentor)
Diffstat (limited to 'math/p5-Math-GMP')
-rw-r--r--math/p5-Math-GMP/Makefile21
-rw-r--r--math/p5-Math-GMP/distinfo2
-rw-r--r--math/p5-Math-GMP/files/patch-Makefile.PL25
-rw-r--r--math/p5-Math-GMP/pkg-plist16
4 files changed, 18 insertions, 46 deletions
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 <bsd.port.pre.mk>
-
-.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 <bsd.port.post.mk>
+post-patch:
+ @${PERL} -pi -e "s!-lgmp!-L${LOCALBASE}/lib $$&!;" \
+ -e "if (/LIBS/) { print qq!'INC' => '-I${LOCALBASE}/include',!; }" \
+ ${WRKSRC}/Makefile.PL
+
+.include <bsd.port.mk>
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