aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-string-compare-constanttime
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 15:30:29 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:24 +0300
commit8e11838ae62e7bf18c84780fc99fb4d238c54d8e (patch)
tree1b7833aa62ba0f6f00c5fa0caa8cac4a8b1b7788 /testing/perl-string-compare-constanttime
parentfd5e411445391bc8c89fdd06dcea6700462f5846 (diff)
downloadaports-8e11838ae62e7bf18c84780fc99fb4d238c54d8e.tar.bz2
aports-8e11838ae62e7bf18c84780fc99fb4d238c54d8e.tar.xz
testing/perl-string-compare-constanttime: new aport
http://search.cpan.org/dist/String-Compare-ConstantTime/
Diffstat (limited to 'testing/perl-string-compare-constanttime')
-rw-r--r--testing/perl-string-compare-constanttime/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-string-compare-constanttime/APKBUILD b/testing/perl-string-compare-constanttime/APKBUILD
new file mode 100644
index 0000000000..bd16d74491
--- /dev/null
+++ b/testing/perl-string-compare-constanttime/APKBUILD
@@ -0,0 +1,48 @@
+# 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-string-compare-constanttime
+_pkgreal=String-Compare-ConstantTime
+pkgver=0.312
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/String-Compare-ConstantTime/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/F/FR/FRACTAL/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="8bda2dbdde2d721c49f8d60f6fd00464d4a91f023eb68f990fa12a55d75fbf65fa9cad50a0deb4cb41ada4badff338abb6cf8ef72de2251560695fa1ac924fdd String-Compare-ConstantTime-0.312.tar.gz"