pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/p5-Math-Prime-Util p5-Math-Prime-Util: update to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/10a3870a7feb
branches:  trunk
changeset: 368681:10a3870a7feb
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Sep 17 20:10:59 2017 +0000

description:
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:

 math/p5-Math-Prime-Util/Makefile |  18 ++++++------------
 math/p5-Math-Prime-Util/distinfo |  10 +++++-----
 2 files changed, 11 insertions(+), 17 deletions(-)

diffs (51 lines):

diff -r e2a19c2b4342 -r 10a3870a7feb math/p5-Math-Prime-Util/Makefile
--- a/math/p5-Math-Prime-Util/Makefile  Sun Sep 17 20:07:09 2017 +0000
+++ b/math/p5-Math-Prime-Util/Makefile  Sun Sep 17 20:10:59 2017 +0000
@@ -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 @@
 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
+
+REPLACE_PERL+= bin/factor.pl bin/primes.pl
+PERL5_PACKLIST=        auto/Math/Prime/Util/.packlist
 
 USE_LANGUAGES+=        c
 
-DEPENDS+=              p5-Bytes-Random-Secure>=0.23:../../security/p5-Bytes-Random-Secure
-
-PERL5_PACKLIST=                auto/Math/Prime/Util/.packlist
-
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r e2a19c2b4342 -r 10a3870a7feb math/p5-Math-Prime-Util/distinfo
--- a/math/p5-Math-Prime-Util/distinfo  Sun Sep 17 20:07:09 2017 +0000
+++ b/math/p5-Math-Prime-Util/distinfo  Sun Sep 17 20:10:59 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index