FreeBSD Bugzilla – Attachment 31372 Details for
Bug 52292
(update) math/p5-Math-GMP to 2.03
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
p5-Math-GMP-2.03.diff
p5-Math-GMP-2.03.diff (text/plain), 3.96 KB, created by
Mathieu Arnold
on 2003-05-15 18:00:31 UTC
(
hide
)
Description:
p5-Math-GMP-2.03.diff
Filename:
MIME Type:
Creator:
Mathieu Arnold
Created:
2003-05-15 18:00:31 UTC
Size:
3.96 KB
patch
obsolete
>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@FreeBSD.org >+MAINTAINER= m@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 >-@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 >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' >- );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52292
: 31372