aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-datetime-format-strptime
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-09-13 06:44:37 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-09-13 06:44:42 +0000
commitbee4ff78aed65a82613f7ea15e000299128c620a (patch)
tree07a1377d576732014fd55e2e73cdeb2a64316e03 /community/perl-datetime-format-strptime
parent345898e2f296d23b02bd195cc6cc221c3384bc31 (diff)
downloadaports-bee4ff78aed65a82613f7ea15e000299128c620a.tar.bz2
aports-bee4ff78aed65a82613f7ea15e000299128c620a.tar.xz
community/perl-datetime-format-strptime: moved from testing
Diffstat (limited to 'community/perl-datetime-format-strptime')
-rw-r--r--community/perl-datetime-format-strptime/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/perl-datetime-format-strptime/APKBUILD b/community/perl-datetime-format-strptime/APKBUILD
new file mode 100644
index 0000000000..00ceb8a677
--- /dev/null
+++ b/community/perl-datetime-format-strptime/APKBUILD
@@ -0,0 +1,43 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-datetime-format-strptime
+_pkgreal=DateTime-Format-Strptime
+pkgver=1.68
+pkgrel=0
+pkgdesc="Parse and format strp and strf time patterns"
+url="http://search.cpan.org/dist/DateTime-Format-Strptime/"
+arch="noarch"
+license="Artistic-2"
+cpandepends="perl-params-validate perl-datetime perl-try-tiny
+ perl-package-deprecationmanager perl-datetime-timezone
+ perl-datetime-locale"
+cpanmakedepends=" perl-test-warnings perl-test-fatal "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_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="50dcc1ff5346848fe1ec928bda07fe44 DateTime-Format-Strptime-1.68.tar.gz"
+sha256sums="d0f97e282b4de61390b5c3a498d3b9ee553f728c169c0845c6de02102d823929 DateTime-Format-Strptime-1.68.tar.gz"
+sha512sums="a1ed7236b7d48615bf8664286c1764b3e9a881f38e87e9dea493f957896ad786f46f99c0f4e5f54063e60f59c936fd2f61da638ac0512a09d38a87b6ffee8e9c DateTime-Format-Strptime-1.68.tar.gz"