From cebcbbf137909850e75f6767618a94bdd7b0b3e4 Mon Sep 17 00:00:00 2001 From: avsm Date: Sat, 21 Sep 2002 11:59:39 +0000 Subject: [PATCH] Update to p5-Math-GMP-2.0.3, from Jim Geovedi --- math/p5-Math-GMP/Makefile | 7 ++--- math/p5-Math-GMP/distinfo | 6 ++--- math/p5-Math-GMP/patches/patch-Makefile_PL | 31 +++++----------------- math/p5-Math-GMP/pkg/PLIST | 12 ++++----- 4 files changed, 20 insertions(+), 36 deletions(-) diff --git a/math/p5-Math-GMP/Makefile b/math/p5-Math-GMP/Makefile index 5e314e09404..82565e2e596 100644 --- a/math/p5-Math-GMP/Makefile +++ b/math/p5-Math-GMP/Makefile @@ -1,12 +1,13 @@ -# $OpenBSD: Makefile,v 1.8 2002/07/10 20:48:14 avsm Exp $ +# $OpenBSD: Makefile,v 1.9 2002/09/21 11:59:39 avsm Exp $ COMMENT= "high speed arbitrary-size integer math" -DISTNAME= Math-GMP-1.06 +DISTNAME= Math-GMP-2.03 PKGNAME= p5-${DISTNAME} CATEGORIES= math perl5 -NEED_VERSION= 1.515 + MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Math/} +MAINTAINER= Jim Geovedi PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes diff --git a/math/p5-Math-GMP/distinfo b/math/p5-Math-GMP/distinfo index 468874e2915..dd4ead35911 100644 --- a/math/p5-Math-GMP/distinfo +++ b/math/p5-Math-GMP/distinfo @@ -1,3 +1,3 @@ -MD5 (Math-GMP-1.06.tar.gz) = 240e05ec772ce7801035fc80b57da417 -RMD160 (Math-GMP-1.06.tar.gz) = 765a9b519f5dc93071c9116b0bcc3645435b6f42 -SHA1 (Math-GMP-1.06.tar.gz) = 1dc83d218df45c1dd898d8b95fa157480da2f6ca +MD5 (Math-GMP-2.03.tar.gz) = cf653ffa60607717ff4fc67177ee07b0 +RMD160 (Math-GMP-2.03.tar.gz) = 21c8a9be2287553a17467b977f5bd0d940e1fb9d +SHA1 (Math-GMP-2.03.tar.gz) = 19b931a1d1984b717764fc19e2ae17d3c79a0469 diff --git a/math/p5-Math-GMP/patches/patch-Makefile_PL b/math/p5-Math-GMP/patches/patch-Makefile_PL index e2722826b2c..1c4345af7df 100644 --- a/math/p5-Math-GMP/patches/patch-Makefile_PL +++ b/math/p5-Math-GMP/patches/patch-Makefile_PL @@ -1,28 +1,11 @@ -$OpenBSD: patch-Makefile_PL,v 1.1.1.1 2001/01/28 15:28:55 avsm Exp $ - -This makefile tries to use the bundled version of GMP, which is a -lot older than the one in our tree, so patch it away to use ours - avsm@ - ---- Makefile.PL.orig Sun Sep 19 03:48:14 1999 -+++ Makefile.PL Sun Jan 28 15:11:12 2001 -@@ -6,18 +6,9 @@ my @paths = qw(/bin /usr/bin /usr/local/ - my $tar = (grep { -x "$_/tar" } @paths)[0] . "/tar"; - my $gzip = (grep { -x "$_/gzip" } @paths)[0] . "/gzip"; - --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'; -- --chdir 'gmp-2.0.2'; --system "./configure --prefix=../gmp && make && make install"; --chdir '..'; -- +$OpenBSD: patch-Makefile_PL,v 1.2 2002/09/21 11:59:39 avsm Exp $ +--- Makefile.PL.orig Mon Feb 18 02:39:39 2002 ++++ Makefile.PL Wed Sep 18 10:57:43 2002 +@@ -5,6 +5,6 @@ use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'Math::GMP', - 'VERSION_FROM' => 'GMP.pm', # finds $VERSION -- 'LIBS' => ['-Lgmp/lib -lgmp'], # e.g., '-lm' -- 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' -- 'INC' => '-Igmp/include', # e.g., '-I/usr/include/other' + 'VERSION_FROM' => 'lib/Math/GMP.pm', # finds $VERSION +- 'LIBS' => ['-lgmp'], # e.g., '-lm' + 'LIBS' => ["$ENV{LDFLAGS} -lgmp"], # e.g., '-lm' -+ 'DEFINE' => '' # e.g., '-DHAVE_SOMETHING' + 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' ); diff --git a/math/p5-Math-GMP/pkg/PLIST b/math/p5-Math-GMP/pkg/PLIST index 98d5c45f585..3901bbd531f 100644 --- a/math/p5-Math-GMP/pkg/PLIST +++ b/math/p5-Math-GMP/pkg/PLIST @@ -1,7 +1,7 @@ -@comment $OpenBSD: PLIST,v 1.3 2002/04/16 19:25:04 espie Exp $ -libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Math/GMP.pm -libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Math/GMP/GMP.bs -libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Math/GMP/GMP.so -libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Math/GMP/autosplit.ix +@comment $OpenBSD: PLIST,v 1.4 2002/09/21 11:59:39 avsm Exp $ +${P5ARCH}/Math/GMP.pm +${P5ARCH}/auto/Math/GMP/GMP.bs +${P5ARCH}/auto/Math/GMP/GMP.so +${P5ARCH}/auto/Math/GMP/autosplit.ix man/man3p/Math::GMP.3p -@dirrm libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Math/GMP +@dirrm ${P5ARCH}/auto/Math/GMP