aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-template-toolkit
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-27 18:07:05 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-27 18:07:05 +0000
commitabe81838951a58ad57cf6591909b10cafda47593 (patch)
tree2630658f22d31f8e82eb3a2af2d720fad7887fbd /testing/perl-template-toolkit
parent2387c5b131ed8f29dfd3ff6011dfda2d0a31050a (diff)
downloadaports-abe81838951a58ad57cf6591909b10cafda47593.tar.bz2
aports-abe81838951a58ad57cf6591909b10cafda47593.tar.xz
testing/perl-template-toolkit: new aport
Diffstat (limited to 'testing/perl-template-toolkit')
-rw-r--r--testing/perl-template-toolkit/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-template-toolkit/APKBUILD b/testing/perl-template-toolkit/APKBUILD
new file mode 100644
index 0000000000..25bdcd03a2
--- /dev/null
+++ b/testing/perl-template-toolkit/APKBUILD
@@ -0,0 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-template-toolkit
+_pkgreal=Template-Toolkit
+pkgver=2.24
+pkgrel=0
+pkgdesc="comprehensive template processing system"
+url="http://search.cpan.org/dist/Template-Toolkit/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends="perl-appconfig"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/A/AB/ABW/$_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="c25fdab1beebf8818c2e624bc9f9d212 Template-Toolkit-2.24.tar.gz"