aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-date-extract
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-12-24 07:23:23 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-12-24 09:11:11 +0000
commiteb833231e143aa20bfe674fede47ef1b256b3b3f (patch)
tree8dd43380eb46a449d318dfc0e7487150dfee81ed /main/perl-date-extract
parent23bbfa0ec659b5b776fb24302fd2160f1543a76a (diff)
downloadaports-eb833231e143aa20bfe674fede47ef1b256b3b3f.tar.bz2
aports-eb833231e143aa20bfe674fede47ef1b256b3b3f.tar.xz
main/perl-date-extract: new aport
Diffstat (limited to 'main/perl-date-extract')
-rw-r--r--main/perl-date-extract/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-date-extract/APKBUILD b/main/perl-date-extract/APKBUILD
new file mode 100644
index 0000000000..e32c1ce7ff
--- /dev/null
+++ b/main/perl-date-extract/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-date-extract
+_pkgreal=Date-Extract
+pkgver=0.04
+pkgrel=0
+pkgdesc="extract probable dates from strings"
+url="http://search.cpan.org/dist/Date-Extract/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-datetime-format-natural perl-class-data-inheritable perl-test-mocktime"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/$_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="da567c4c45ea1456eee6f1d05b9f9f06 Date-Extract-0.04.tar.gz"
+sha256sums="7124d9e8d745544080f612a42d8cf6b3a27eda0f4ec607d25d255ddaadb1957a Date-Extract-0.04.tar.gz"
+sha512sums="abe0221494e9ca1740ae1663adb44b673694d7616e8f989e05c34828a633cda4abd8df2bdfb47832423028d5ee67cd0d38e7b6b149b2737a8e865f1745dadb85 Date-Extract-0.04.tar.gz"