From 21f8e6902e08e114d25f2584e2feb50c34fac222 Mon Sep 17 00:00:00 2001 From: hubertf Date: Sat, 7 Mar 2009 02:19:33 +0000 Subject: Add math/p5-Math-BigInt-GMP-1.23: a libgmp-accelerated class for BigInt - needed to speed (and shut!) up p5-Net-SSH (on NetBSD...) --- math/p5-Math-BigInt-GMP/DESCR | 2 ++ math/p5-Math-BigInt-GMP/Makefile | 19 +++++++++++++++++++ math/p5-Math-BigInt-GMP/PLIST | 4 ++++ math/p5-Math-BigInt-GMP/distinfo | 6 ++++++ math/p5-Math-BigInt-GMP/patches/patch-aa | 16 ++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 math/p5-Math-BigInt-GMP/DESCR create mode 100644 math/p5-Math-BigInt-GMP/Makefile create mode 100644 math/p5-Math-BigInt-GMP/PLIST create mode 100644 math/p5-Math-BigInt-GMP/distinfo create mode 100644 math/p5-Math-BigInt-GMP/patches/patch-aa (limited to 'math') diff --git a/math/p5-Math-BigInt-GMP/DESCR b/math/p5-Math-BigInt-GMP/DESCR new file mode 100644 index 00000000000..8404c7f682d --- /dev/null +++ b/math/p5-Math-BigInt-GMP/DESCR @@ -0,0 +1,2 @@ +The Perl 5 module Math::GMP gives you access to the fast GMP library +for fast big integer math. diff --git a/math/p5-Math-BigInt-GMP/Makefile b/math/p5-Math-BigInt-GMP/Makefile new file mode 100644 index 00000000000..4c265be8bf8 --- /dev/null +++ b/math/p5-Math-BigInt-GMP/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/03/07 02:19:33 hubertf Exp $ +# + +DISTNAME= Math-BigInt-GMP-1.23 +PKGNAME= p5-${DISTNAME} +CATEGORIES= math perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Math/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Math-BigInt-GMP/ +COMMENT= Perl 5 module for arbitrary size integer math via the GMP library + +PKG_DESTDIR_SUPPORT= user-destdir + +PERL5_PACKLIST= auto/Math/BigInt/GMP/.packlist + +.include "../../devel/gmp/buildlink3.mk" +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/p5-Math-BigInt-GMP/PLIST b/math/p5-Math-BigInt-GMP/PLIST new file mode 100644 index 00000000000..2c0e2a14e9b --- /dev/null +++ b/math/p5-Math-BigInt-GMP/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/03/07 02:19:33 hubertf Exp $ +lib/perl5/vendor_perl/5.10.0/${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi/auto/Math/BigInt/GMP/GMP.bs +lib/perl5/vendor_perl/5.10.0/${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi/auto/Math/BigInt/GMP/GMP.so +lib/perl5/vendor_perl/man/man3/Math::BigInt::GMP.3 diff --git a/math/p5-Math-BigInt-GMP/distinfo b/math/p5-Math-BigInt-GMP/distinfo new file mode 100644 index 00000000000..714d69f0138 --- /dev/null +++ b/math/p5-Math-BigInt-GMP/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/03/07 02:19:33 hubertf Exp $ + +SHA1 (Math-BigInt-GMP-1.23.tar.gz) = cd6a783df0b49f4091a122e68318e5aab838756a +RMD160 (Math-BigInt-GMP-1.23.tar.gz) = 4c9d530246ebbb69c35c13cf1bd4d8ab2b4c77e3 +Size (Math-BigInt-GMP-1.23.tar.gz) = 42945 bytes +SHA1 (patch-aa) = 4a861fd398b19938345fad1b781ef34f2408c770 diff --git a/math/p5-Math-BigInt-GMP/patches/patch-aa b/math/p5-Math-BigInt-GMP/patches/patch-aa new file mode 100644 index 00000000000..40116517ff7 --- /dev/null +++ b/math/p5-Math-BigInt-GMP/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/03/07 02:19:33 hubertf Exp $ + +From p5-Math-GMP/patches/patch-aa: + +Trick perl into emitting use of -lgmp. Actual library +location will be handled via buildlink / wrapper. + +--- Makefile.PL.orig 2007-07-25 20:13:12.000000000 +0200 ++++ Makefile.PL +@@ -49,5 +49,5 @@ WriteMakefile( + Math::BigInt => 1.87, + XSLoader => 0.02, + }, +- 'LIBS' => ['-lgmp'], ++ 'LIBS' => ["-L$ENV{PREFIX}/lib -lgmp"], + ); -- cgit v1.2.3