import Math::BigInt::GMP 1.18

use the GMP library for Math::BigInt routines.

submitted and maintained by Chris Humphries <chris at unixfu.net>
This commit is contained in:
steven 2006-07-10 15:33:58 +00:00
parent 893cc09231
commit 5dc91bf078
5 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/07/10 15:33:58 steven Exp $
SHARED_ONLY= Yes
COMMENT= "use the GMP library for Math::BigInt routines"
DISTNAME= Math-BigInt-GMP-1.18
PKGNAME= p5-${DISTNAME}
CATEGORIES= math perl5
MAINTAINER= Chris Humphries <chris@niroze.net>
# same as perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Math/}
LIB_DEPENDS= gmp.6::devel/gmp
CONFIGURE_STYLE=perl
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (Math-BigInt-GMP-1.18.tar.gz) = cd17afa7e9e7e9192457f6968d538f3f
RMD160 (Math-BigInt-GMP-1.18.tar.gz) = c8abbf923d56144d46e3aa3a16d49d6182a5ffc6
SHA1 (Math-BigInt-GMP-1.18.tar.gz) = 56c414c6f6f6b89008b24d2b146ecbfd71e7524e
SIZE (Math-BigInt-GMP-1.18.tar.gz) = 36835

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-Makefile_PL,v 1.1.1.1 2006/07/10 15:33:58 steven Exp $
--- Makefile.PL.orig Sun Apr 10 12:20:17 2005
+++ Makefile.PL Mon Jul 10 16:57:51 2006
@@ -35,5 +35,6 @@ WriteMakefile(
Math::BigInt => 1.76,
XSLoader => 0.02,
},
- 'LIBS' => ['-lgmp'], # e.g., '-lm'
+ 'LIBS' => ["$ENV{LDFLAGS} -lgmp"], # e.g., '-lm'
+ 'INC' => "$ENV{CPPFLAGS}",
);

View File

@ -0,0 +1,6 @@
Provides support for big integer calculations via the GMP c-library.
Math::BigInt::GMP now no longer uses Math::GMP, but provides its own XS
layer to access the GMP c-library. This cuts out another (perl sub routine)
layer and also reduces the memory footprint by not loading Math::GMP and
Carp at all.

View File

@ -0,0 +1,12 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/07/10 15:33:58 steven Exp $
${P5ARCH}/
${P5ARCH}/Math/
${P5ARCH}/Math/BigInt/
${P5ARCH}/Math/BigInt/GMP.pm
${P5ARCH}/auto/
${P5ARCH}/auto/Math/
${P5ARCH}/auto/Math/BigInt/
${P5ARCH}/auto/Math/BigInt/GMP/
${P5ARCH}/auto/Math/BigInt/GMP/GMP.bs
${P5ARCH}/auto/Math/BigInt/GMP/GMP.so
@man man/man3p/Math::BigInt::GMP.3p