aboutsummaryrefslogtreecommitdiffstats
path: root/math/p5-Math-Prime-Util-GMP
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2018-09-11 04:26:08 +0800
committersunpoet <sunpoet@FreeBSD.org>2018-09-11 04:26:08 +0800
commit1eac5c5bb9c462ad069102b23b29b8476d0deb3c (patch)
tree632d7e1ada07281f816539508000f0c2a0d99284 /math/p5-Math-Prime-Util-GMP
parentaa03a2e4505d6779ccd62521b1a1cf809a13d42c (diff)
downloadfreebsd-ports-gnome-1eac5c5bb9c462ad069102b23b29b8476d0deb3c.tar.gz
freebsd-ports-gnome-1eac5c5bb9c462ad069102b23b29b8476d0deb3c.tar.zst
freebsd-ports-gnome-1eac5c5bb9c462ad069102b23b29b8476d0deb3c.zip
Add p5-Math-Prime-Util-GMP 0.51
Math::Prime::Util::GMP is a module for number theory in Perl using GMP. This includes primality tests, getting primes in a range, factoring, and more. These use GMP directly, so should be quite fast for bignums. This module is mainly intended to be used within Math::Prime::Util, but most functions can be easily used in independent C programs. Some, like factoring and primality proving, have explicit ways of compiling as standalone programs. WWW: https://metacpan.org/release/Math-Prime-Util-GMP
Diffstat (limited to 'math/p5-Math-Prime-Util-GMP')
-rw-r--r--math/p5-Math-Prime-Util-GMP/Makefile25
-rw-r--r--math/p5-Math-Prime-Util-GMP/distinfo3
-rw-r--r--math/p5-Math-Prime-Util-GMP/pkg-descr9
-rw-r--r--math/p5-Math-Prime-Util-GMP/pkg-plist3
4 files changed, 40 insertions, 0 deletions
diff --git a/math/p5-Math-Prime-Util-GMP/Makefile b/math/p5-Math-Prime-Util-GMP/Makefile
new file mode 100644
index 000000000000..ab47f9ec5be1
--- /dev/null
+++ b/math/p5-Math-Prime-Util-GMP/Makefile
@@ -0,0 +1,25 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Math-Prime-Util-GMP
+PORTVERSION= 0.51
+CATEGORIES= math perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Utilities related to prime numbers and factoring, using GMP
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libgmp.so:math/gmp
+
+USES= localbase perl5
+USE_PERL5= configure
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/Prime/Util/GMP/GMP.so
+
+.include <bsd.port.mk>
diff --git a/math/p5-Math-Prime-Util-GMP/distinfo b/math/p5-Math-Prime-Util-GMP/distinfo
new file mode 100644
index 000000000000..a1392eaa0fd2
--- /dev/null
+++ b/math/p5-Math-Prime-Util-GMP/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1536594259
+SHA256 (Math-Prime-Util-GMP-0.51.tar.gz) = 5871e73ff2bf255c7f5e38b05267a8695bba59105a008727bab1aab262d54b9a
+SIZE (Math-Prime-Util-GMP-0.51.tar.gz) = 334404
diff --git a/math/p5-Math-Prime-Util-GMP/pkg-descr b/math/p5-Math-Prime-Util-GMP/pkg-descr
new file mode 100644
index 000000000000..685bd12e31f4
--- /dev/null
+++ b/math/p5-Math-Prime-Util-GMP/pkg-descr
@@ -0,0 +1,9 @@
+Math::Prime::Util::GMP is a module for number theory in Perl using GMP. This
+includes primality tests, getting primes in a range, factoring, and more.
+
+These use GMP directly, so should be quite fast for bignums. This module is
+mainly intended to be used within Math::Prime::Util, but most functions can be
+easily used in independent C programs. Some, like factoring and primality
+proving, have explicit ways of compiling as standalone programs.
+
+WWW: https://metacpan.org/release/Math-Prime-Util-GMP
diff --git a/math/p5-Math-Prime-Util-GMP/pkg-plist b/math/p5-Math-Prime-Util-GMP/pkg-plist
new file mode 100644
index 000000000000..b7651951dc12
--- /dev/null
+++ b/math/p5-Math-Prime-Util-GMP/pkg-plist
@@ -0,0 +1,3 @@
+%%SITE_ARCH%%/Math/Prime/Util/GMP.pm
+%%SITE_ARCH%%/auto/Math/Prime/Util/GMP/GMP.so
+%%PERL5_MAN3%%/Math::Prime::Util::GMP.3.gz