ports/52292: (update) math/p5-Math-GMP to 2.03
Mathieu Arnold
m at absolight.net
Thu May 15 17:00:33 UTC 2003
>Number: 52292
>Category: ports
>Synopsis: (update) math/p5-Math-GMP to 2.03
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu May 15 10:00:31 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Mathieu Arnold
>Release: FreeBSD 4.8-RELEASE i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.reaumur.absolight.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Apr 10 13:45:07 CEST 2003 root at aragorn.reaumur.absolight.net:/usr/obj/usr/src/sys/ARAGORN i386
>Description:
Update to 2.03
Grab maintainership
Now uses gmp.6 from ports.
>How-To-Repeat:
>Fix:
the patch was removed, don't forget the cvs rm :)
--- p5-Math-GMP-2.03.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/math/p5-Math-GMP/Makefile,v
retrieving revision 1.7
diff -u -b -w -r1.7 Makefile
--- Makefile 2003/02/20 18:42:21 1.7
+++ Makefile 2003/05/15 16:53:37
@@ -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 at FreeBSD.org
+MAINTAINER= m at absolight.net
COMMENT= Perl module that provides an interface to the GMP library
-.include <bsd.port.pre.mk>
+LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
-.if ${OSVERSION} >= 500000
-LIB_DEPENDS= gmp:${PORTSDIR}/math/libgmp4
-CONFIGURE_ENV+= GMP=${LOCALBASE}
-.else
-CONFIGURE_ENV+= GMP=/usr
-.endif
-
PERL_CONFIGURE= yes
-MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Math::GMP.3
+
+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.post.mk>
+.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/math/p5-Math-GMP/distinfo,v
retrieving revision 1.2
diff -u -b -w -r1.2 distinfo
--- distinfo 2001/05/10 01:20:52 1.2
+++ distinfo 2003/05/15 16:53:37
@@ -1 +1 @@
-MD5 (Math-GMP-1.07.tar.gz) = 385022cd0af5de7d8ea999d3573d997d
+MD5 (Math-GMP-2.03.tar.gz) = cf653ffa60607717ff4fc67177ee07b0
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/math/p5-Math-GMP/pkg-plist,v
retrieving revision 1.2
diff -u -b -w -r1.2 pkg-plist
--- pkg-plist 2001/04/14 22:31:39 1.2
+++ pkg-plist 2003/05/15 16:53:37
@@ -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
- at dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Math/GMP
- at unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Math 2>/dev/null || true
- at 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
+ at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/GMP
+ at unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math 2>/dev/null || true
+ at unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Math 2>/dev/null || true
Index: files/patch-Makefile.PL
===================================================================
RCS file: patch-Makefile.PL
diff -N patch-Makefile.PL
--- /cvstmp/cvseQnKmY8tUV Thu May 15 11:53:37 2003
+++ /dev/null Thu May 15 03:22:21 2003
@@ -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'
- );
--- p5-Math-GMP-2.03.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list