aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-math-random-isaac-xs
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 15:32:50 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:24 +0300
commita19f0d35e8517d60e8d1c1838d5a571e831f1537 (patch)
tree49095865c927ab338e6b5af37fb726f2624a73e8 /testing/perl-math-random-isaac-xs
parent8a167d477e3fa8f810d2d97e7779e542a39aafc6 (diff)
downloadaports-a19f0d35e8517d60e8d1c1838d5a571e831f1537.tar.bz2
aports-a19f0d35e8517d60e8d1c1838d5a571e831f1537.tar.xz
testing/perl-math-random-isaac-xs: new aport
C implementation of the ISAAC PRNG algorithm http://search.cpan.org/dist/Math-Random-ISAAC-XS/
Diffstat (limited to 'testing/perl-math-random-isaac-xs')
-rw-r--r--testing/perl-math-random-isaac-xs/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/perl-math-random-isaac-xs/APKBUILD b/testing/perl-math-random-isaac-xs/APKBUILD
new file mode 100644
index 0000000000..7fb2759ef8
--- /dev/null
+++ b/testing/perl-math-random-isaac-xs/APKBUILD
@@ -0,0 +1,47 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-math-random-isaac-xs
+_pkgreal=Math-Random-ISAAC-XS
+pkgver=1.004
+pkgrel=0
+pkgdesc="C implementation of the ISAAC PRNG algorithm"
+url="http://search.cpan.org/dist/Math-Random-ISAAC-XS/"
+arch="all"
+license="unrestricted"
+cpandepends=""
+cpanmakedepends="perl-test-nowarnings"
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/J/JA/JAWNSY/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ ./Build
+}
+
+package() {
+ cd "$builddir"
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
+}
+
+sha512sums="40c46b5f247f585a407ef9f36b5874d9cf03ec05963a9d92d988ebd63daf1e37b1b51308845d4596f47b5ad7203953bcb7fbb421c905b526dbe99b246ccb4d87 Math-Random-ISAAC-XS-1.004.tar.gz"