aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-db_file-lock/APKBUILD
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2018-11-25 02:43:06 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-04-12 10:47:59 +0000
commit09ed8b2acd22edd570e107670bc6220eaef39cf3 (patch)
tree07a5020b5c6c6d838d80744663d5b76a8fe13827 /testing/perl-db_file-lock/APKBUILD
parent1245056475ad59a71c91494d1e1820f323e22911 (diff)
downloadaports-09ed8b2acd22edd570e107670bc6220eaef39cf3.tar.bz2
aports-09ed8b2acd22edd570e107670bc6220eaef39cf3.tar.xz
testing/perl-db_file-lock: new aport
Includes patch to fix Bug #98224 for DB_File-Lock: Test fails with perl 5.21.x: Can't use 'defined(%hash)'
Diffstat (limited to 'testing/perl-db_file-lock/APKBUILD')
-rw-r--r--testing/perl-db_file-lock/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/perl-db_file-lock/APKBUILD b/testing/perl-db_file-lock/APKBUILD
new file mode 100644
index 0000000000..65576d532c
--- /dev/null
+++ b/testing/perl-db_file-lock/APKBUILD
@@ -0,0 +1,42 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Timothy Legge <timlegge@gmail.com>
+# Maintainer: Timothy Legge <timlegge@gmail.com>
+pkgname=perl-db_file-lock
+_pkgreal=DB_File-Lock
+pkgver=0.05
+pkgrel=0
+pkgdesc="DB_File::Lock - Locking with flock wrapper for DB_File"
+url="https://metacpan.org/release/DB_File-Lock/"
+arch="noarch"
+license="GPL PerlArtistic"
+depends="perl-db_file"
+makedepends="perl-dev perl-db_file"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/D/DH/DHARRIS/DB_File-Lock-0.05.tar.gz
+ fix-bug-98224-test-fails.patch"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare
+
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="e57dec372a598df004faa99438f0ef9e3c7d73d86e2638573c6e7c09116f748a5cf3fd85fc911999f37cfe51f77a11081cb8ae1353a3061e4cbdbb7a7bb3de07 DB_File-Lock-0.05.tar.gz
+194820b3520f44c9701642dcd5920e3e24cb7b42d50ee228c6a51e66371b1985021a3c7d607ef5e15da1e5f6587f7d56c4b4b76bf9688b9523e36336aba02295 fix-bug-98224-test-fails.patch"