aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-mocktime
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-12-23 15:37:20 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-12-24 09:11:11 +0000
commit13d12845fc2ba8cc17796a4bf81524dd86c07738 (patch)
tree45d62aec42d62c5f3e1321bd81883dfa24b501ac /main/perl-test-mocktime
parent148ac2fa6027b0e23c4c6f38dacaf0ff47321a8f (diff)
downloadaports-13d12845fc2ba8cc17796a4bf81524dd86c07738.tar.bz2
aports-13d12845fc2ba8cc17796a4bf81524dd86c07738.tar.xz
main/perl-test-mocktime: new aport
Diffstat (limited to 'main/perl-test-mocktime')
-rw-r--r--main/perl-test-mocktime/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-test-mocktime/APKBUILD b/main/perl-test-mocktime/APKBUILD
new file mode 100644
index 0000000000..01bfed66c6
--- /dev/null
+++ b/main/perl-test-mocktime/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=perl-test-mocktime
+_pkgreal=Test-MockTime
+pkgver=0.12
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Test-MockTime/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DD/DDICK/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ 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 && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="de726192bcdd0cef68a07ffdf11d7300 Test-MockTime-0.12.tar.gz"
+sha256sums="496ecc96a9d22abfa367404b22088364f10965c2879b65605f0e3286354e9780 Test-MockTime-0.12.tar.gz"
+sha512sums="f3f66fb7c0cd5a83218d92cd706c4f6eeaf7d93b89e3ba7dface799facf47070c727bf7da5805c9aba52fefb30b1290cc10957694386600ad7575f3cc33c86d3 Test-MockTime-0.12.tar.gz"