summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-02-10 04:12:39 +0000
committerjtb <jtb@pkgsrc.org>2001-02-10 04:12:39 +0000
commit9a2e92ab8c485196074c9a218f67aef2e3893679 (patch)
tree70948362a7a11436ae09fed51b7b851321670530 /math
parent1cf9acaf198e991535b14a026310835528352529 (diff)
downloadpkgsrc-9a2e92ab8c485196074c9a218f67aef2e3893679.tar.gz
Initial import of p5-BigInteger:
Arbitrary length integer extension module for Perl
Diffstat (limited to 'math')
-rw-r--r--math/p5-BigInteger/Makefile17
-rw-r--r--math/p5-BigInteger/files/md53
-rw-r--r--math/p5-BigInteger/files/patch-sum3
-rw-r--r--math/p5-BigInteger/patches/patch-aa24
-rw-r--r--math/p5-BigInteger/pkg/COMMENT1
-rw-r--r--math/p5-BigInteger/pkg/DESCR4
-rw-r--r--math/p5-BigInteger/pkg/PLIST1
7 files changed, 53 insertions, 0 deletions
diff --git a/math/p5-BigInteger/Makefile b/math/p5-BigInteger/Makefile
new file mode 100644
index 00000000000..0950afb0a91
--- /dev/null
+++ b/math/p5-BigInteger/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/02/10 04:12:39 jtb Exp $
+
+DISTNAME= Math-BigInteger-1.0
+PKGNAME= p5-BigInteger-1.0
+CATEGORIES= math perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Math/}
+
+MAINTAINER= jtb@netbsd.org
+
+USE_PERL5= #defined
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Math/BigInteger/.packlist
+
+do-configure:
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+
+.include "../../mk/bsd.pkg.mk"
+
diff --git a/math/p5-BigInteger/files/md5 b/math/p5-BigInteger/files/md5
new file mode 100644
index 00000000000..85dd64465f9
--- /dev/null
+++ b/math/p5-BigInteger/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/02/10 04:12:39 jtb Exp $
+
+MD5 (Math-BigInteger-1.0.tar.gz) = a92ffa6d66491c83ebe416ac86825da6
diff --git a/math/p5-BigInteger/files/patch-sum b/math/p5-BigInteger/files/patch-sum
new file mode 100644
index 00000000000..63afc6f3f0c
--- /dev/null
+++ b/math/p5-BigInteger/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2001/02/10 04:12:39 jtb Exp $
+
+MD5 (patch-aa) = fc2abb44249038019ccc0e023f7e29b2
diff --git a/math/p5-BigInteger/patches/patch-aa b/math/p5-BigInteger/patches/patch-aa
new file mode 100644
index 00000000000..7dfbb5784e7
--- /dev/null
+++ b/math/p5-BigInteger/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/02/10 04:12:39 jtb Exp $
+
+--- bn.c.orig Wed Feb 7 20:53:14 2001
++++ bn.c
+@@ -304,8 +304,8 @@
+ int i,j,v,z=0;
+ static char *hex="0123456789ABCDEF";
+
+- if (a->neg) Fputc('-',fp);
+- if (a->top == 0) Fputc('0',fp);
++ if (a->neg) fputc('-',fp);
++ if (a->top == 0) fputc('0',fp);
+ for (i=a->top-1; i >=0; i--)
+ {
+ for (j=BITS2-4; j >= 0; j-=4)
+@@ -314,7 +314,7 @@
+ v=(a->d[i]>>j)&0x0f;
+ if (z || (v != 0))
+ {
+- Fputc(hex[v],fp);
++ fputc(hex[v],fp);
+ z=1;
+ }
+ }
diff --git a/math/p5-BigInteger/pkg/COMMENT b/math/p5-BigInteger/pkg/COMMENT
new file mode 100644
index 00000000000..db02bd9742e
--- /dev/null
+++ b/math/p5-BigInteger/pkg/COMMENT
@@ -0,0 +1 @@
+Arbitrary length integer extension module for Perl
diff --git a/math/p5-BigInteger/pkg/DESCR b/math/p5-BigInteger/pkg/DESCR
new file mode 100644
index 00000000000..0999cf0b535
--- /dev/null
+++ b/math/p5-BigInteger/pkg/DESCR
@@ -0,0 +1,4 @@
+The BigInteger extension module gives access to Eric Young's bignum
+library. This provides a faster alternative to the Math::BigInt
+library. The basic object in this library is a BigInteger. It is used
+to hold a single large integer.
diff --git a/math/p5-BigInteger/pkg/PLIST b/math/p5-BigInteger/pkg/PLIST
new file mode 100644
index 00000000000..8651815158c
--- /dev/null
+++ b/math/p5-BigInteger/pkg/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/02/10 04:12:39 jtb Exp $