aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-mock-guard
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2016-09-21 22:19:10 +0000
committerJakub Jirutka <jakub@jirutka.cz>2016-09-23 02:12:01 +0200
commit510245b12dfdcd51a183f269d328ec911782dc53 (patch)
tree6940a1cc7ac1e03e7cf8265105d908ad6eaf40f3 /community/perl-test-mock-guard
parentfb94eaa7e6b408719c44f3fd0f8ece632b1d3c17 (diff)
downloadaports-510245b12dfdcd51a183f269d328ec911782dc53.tar.bz2
aports-510245b12dfdcd51a183f269d328ec911782dc53.tar.xz
community/perl-test-mock-guard: new aport
Diffstat (limited to 'community/perl-test-mock-guard')
-rw-r--r--community/perl-test-mock-guard/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/perl-test-mock-guard/APKBUILD b/community/perl-test-mock-guard/APKBUILD
new file mode 100644
index 0000000000..9ff073a61e
--- /dev/null
+++ b/community/perl-test-mock-guard/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname=perl-test-mock-guard
+_pkgname=Test-Mock-Guard
+pkgver=0.10
+pkgrel=0
+pkgdesc="Simple mock test library using RAII"
+url="https://github.com/zigorou/p5-test-mock-guard"
+arch="noarch"
+license="PerlArtistic"
+makedepends="perl-dev perl-module-build perl-class-load"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/X/XA/XAICRON/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$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 && ./Build test
+}
+
+package() {
+ cd "$builddir"
+ ./Build install --destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="b2866485cc29c787f85793279e2f2360 Test-Mock-Guard-0.10.tar.gz"
+sha256sums="7f228a63f8d6ceb92aa784080a13e85073121b2835eca06d794f9709950dbd3d Test-Mock-Guard-0.10.tar.gz"
+sha512sums="17a8cbfea9e33a625ad5a33b40b5a799715d59b57eb4030a9d694fdd1e7361667f326888577291f0807852b86c04b97384ab8a48d95eb92158d35e14131068cc Test-Mock-Guard-0.10.tar.gz"