summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-09-17 20:10:59 +0000
committerwiz <wiz@pkgsrc.org>2017-09-17 20:10:59 +0000
commit4267eb7af398adb9df3b91f7ea0b9864ba011f5c (patch)
tree0e5a38b1bbc2010cf16804c04be88be7f4de27fe /math
parent07bd04094f92857f74c02ae61576286daef66c0f (diff)
downloadpkgsrc-4267eb7af398adb9df3b91f7ea0b9864ba011f5c.tar.gz
p5-Math-Prime-Util: update to 0.66.
0.66 2017-09-12 [ADDED] - random_semiprime random n-bit semiprime (even split) - random_unrestricted_semiprime random n-bit semiprime - forderange { ... } n derangements iterator - numtoperm(n,k) returns kth permutation of n elems - permtonum([...]) returns rank of permutation array ref - randperm(n[,k]) random permutation of n elements - shuffle(...) random permutation of an array [FUNCTIONALITY AND PERFORMANCE] - Rewrite sieve marking based on Kim Walisch's new simple mod-30 sieve. Similar in many ways to my old code, but this is simpler and faster. - is_pseudoprime, is_euler_pseudoprime, is_strong_pseudoprime changed to better handle the unusual case of base >= n. - Speedup for is_carmichael. - is_frobenius_underwood_pseudoprime checks for jacobi == 0. Faster. - Updated Montgomery inverse from Robert Gerbicz. - Tighter nth prime bounds for large inputs from Axler 2017-06. Redo Ramanujan bounds since they're based on nth prime bounds. - chinese objectifies result (i.e. big results are bigints). - Internal support for Baillie-Wagstaff (pg 1402) extra Lucas tests. - More standardized Lucas parameter selection. Like other tests and the 1980 paper, checks jacobi(D) in the loop, not gcd(D). - entropy_bytes, srand, and csrand moved to XS. - Add -secure import to disallow all manual seeding.
Diffstat (limited to 'math')
-rw-r--r--math/p5-Math-Prime-Util/Makefile18
-rw-r--r--math/p5-Math-Prime-Util/distinfo10
2 files changed, 11 insertions, 17 deletions
diff --git a/math/p5-Math-Prime-Util/Makefile b/math/p5-Math-Prime-Util/Makefile
index dccbeb38b38..aaf37a5ebfa 100644
--- a/math/p5-Math-Prime-Util/Makefile
+++ b/math/p5-Math-Prime-Util/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2017/06/05 14:24:11 ryoon Exp $
+# $NetBSD: Makefile,v 1.17 2017/09/17 20:10:59 wiz Exp $
-DISTNAME= Math-Prime-Util-0.65
+DISTNAME= Math-Prime-Util-0.66
PKGNAME= p5-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= math perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Math/}
@@ -11,17 +10,12 @@ HOMEPAGE= http://search.cpan.org/dist/Math-Prime-Util/
COMMENT= Perl5 utilities related to prime numbers
LICENSE= ${PERL5_LICENSE}
-SUBST_CLASSES+= perl
-SUBST_STAGE.perl= post-patch
-SUBST_MESSAGE.perl= Fixing path to perl
-SUBST_FILES.perl+= bin/factor.pl bin/primes.pl
-SUBST_SED.perl= -e "s|/usr/bin/env perl|${PERL5}|"
+DEPENDS+= p5-Bytes-Random-Secure>=0.23:../../security/p5-Bytes-Random-Secure
-USE_LANGUAGES+= c
-
-DEPENDS+= p5-Bytes-Random-Secure>=0.23:../../security/p5-Bytes-Random-Secure
+REPLACE_PERL+= bin/factor.pl bin/primes.pl
+PERL5_PACKLIST= auto/Math/Prime/Util/.packlist
-PERL5_PACKLIST= auto/Math/Prime/Util/.packlist
+USE_LANGUAGES+= c
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/math/p5-Math-Prime-Util/distinfo b/math/p5-Math-Prime-Util/distinfo
index 376b9a89a45..f2c8015db5a 100644
--- a/math/p5-Math-Prime-Util/distinfo
+++ b/math/p5-Math-Prime-Util/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.12 2017/05/13 01:29:02 wen Exp $
+$NetBSD: distinfo,v 1.13 2017/09/17 20:10:59 wiz Exp $
-SHA1 (Math-Prime-Util-0.65.tar.gz) = 1b3acd8d45dbe1a82b7137bc17f8fecb7dced847
-RMD160 (Math-Prime-Util-0.65.tar.gz) = a273945fdd85c84f4dc55a36a8d0c11679a5b33c
-SHA512 (Math-Prime-Util-0.65.tar.gz) = 7d6db326291f3b09491ecb9e4280dc2cc97d65cec9fbcb70f1e521111170e51c0d2a57f0723d2866a8c492779fc57d01b3a2a7f7d38fa5d106422e4500c5de20
-Size (Math-Prime-Util-0.65.tar.gz) = 575615 bytes
+SHA1 (Math-Prime-Util-0.66.tar.gz) = c5809df6395a896babe04c63ebf54372209b6752
+RMD160 (Math-Prime-Util-0.66.tar.gz) = 6c4fe084c6e005ddfff98250680e42335ad88d72
+SHA512 (Math-Prime-Util-0.66.tar.gz) = dafe91993cd48309a8bc7b675e9b37f7cb119295da31c404a4405d5dc3faa507c689e014db769f8d0552dffecd317df4a83118a017f62222f3c3215947692eae
+Size (Math-Prime-Util-0.66.tar.gz) = 583938 bytes