From 0c7d9a194f917f65fb9d537315ec457b90a1d068 Mon Sep 17 00:00:00 2001 From: sunpoet Date: Fri, 23 Sep 2011 18:58:31 +0000 Subject: - Add p5-Math-Prime-XS 0.24 Math::Prime::XS detects and calculates prime numbers by either applying Modulo operator division, the Sieve of Eratosthenes, a Summation calculation or Trial division. WWW: http://search.cpan.org/dist/Math-Prime-XS/ --- math/Makefile | 1 + math/p5-Math-Prime-XS/Makefile | 33 +++++++++++++++++++++++++++++++++ math/p5-Math-Prime-XS/distinfo | 2 ++ math/p5-Math-Prime-XS/pkg-descr | 5 +++++ math/p5-Math-Prime-XS/pkg-plist | 9 +++++++++ 5 files changed, 50 insertions(+) create mode 100644 math/p5-Math-Prime-XS/Makefile create mode 100644 math/p5-Math-Prime-XS/distinfo create mode 100644 math/p5-Math-Prime-XS/pkg-descr create mode 100644 math/p5-Math-Prime-XS/pkg-plist (limited to 'math') diff --git a/math/Makefile b/math/Makefile index 447029929bb6..8337abee645b 100644 --- a/math/Makefile +++ b/math/Makefile @@ -378,6 +378,7 @@ SUBDIR += p5-Math-Polygon SUBDIR += p5-Math-Polygon-Tree SUBDIR += p5-Math-Polynomial-Solve + SUBDIR += p5-Math-Prime-XS SUBDIR += p5-Math-RPN SUBDIR += p5-Math-Random SUBDIR += p5-Math-Random-ISAAC diff --git a/math/p5-Math-Prime-XS/Makefile b/math/p5-Math-Prime-XS/Makefile new file mode 100644 index 000000000000..011d08a34ec4 --- /dev/null +++ b/math/p5-Math-Prime-XS/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: p5-Math-Prime-XS +# Date created: 2011-09-23 +# Whom: Sunpoet Po-Chuan Hsieh +# +# $FreeBSD$ +# + +PORTNAME= Math-Prime-XS +PORTVERSION= 0.24 +CATEGORIES= math perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Detect and calculate prime numbers with deterministic tests + +BUILD_DEPENDS= p5-Params-Validate>=0:${PORTSDIR}/devel/p5-Params-Validate +RUN_DEPENDS= p5-Params-Validate>=0:${PORTSDIR}/devel/p5-Params-Validate + +TEST_DEPENDS= p5-Test-Pod>=1.14:${PORTSDIR}/devel/p5-Test-Pod \ + p5-Test-Pod-Coverage>=1.04:${PORTSDIR}/devel/p5-Test-Pod-Coverage + +PERL_CONFIGURE= yes + +MAN3= Math::Prime::XS.3 + +.include + +.if ${PERL_LEVEL} < 501000 +BUILD_DEPENDS+= p5-ExtUtils-CBuilder>=0:${PORTSDIR}/devel/p5-ExtUtils-CBuilder +.endif + +.include diff --git a/math/p5-Math-Prime-XS/distinfo b/math/p5-Math-Prime-XS/distinfo new file mode 100644 index 000000000000..32a65986e50a --- /dev/null +++ b/math/p5-Math-Prime-XS/distinfo @@ -0,0 +1,2 @@ +SHA256 (Math-Prime-XS-0.24.tar.gz) = c560fd3aeeeb042395030522f0b600db71dfab677901260aef5214d2bbf60142 +SIZE (Math-Prime-XS-0.24.tar.gz) = 58649 diff --git a/math/p5-Math-Prime-XS/pkg-descr b/math/p5-Math-Prime-XS/pkg-descr new file mode 100644 index 000000000000..1007735d79b5 --- /dev/null +++ b/math/p5-Math-Prime-XS/pkg-descr @@ -0,0 +1,5 @@ +Math::Prime::XS detects and calculates prime numbers by either applying Modulo +operator division, the Sieve of Eratosthenes, a Summation calculation or Trial +division. + +WWW: http://search.cpan.org/dist/Math-Prime-XS/ diff --git a/math/p5-Math-Prime-XS/pkg-plist b/math/p5-Math-Prime-XS/pkg-plist new file mode 100644 index 000000000000..e6ed1c6f9dcc --- /dev/null +++ b/math/p5-Math-Prime-XS/pkg-plist @@ -0,0 +1,9 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/Math/Prime/XS.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Prime/XS/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Prime/XS/XS.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Prime/XS/XS.so +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Prime/XS +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Prime +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Math/Prime +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Math -- cgit