summaryrefslogtreecommitdiffstats
path: root/main/perl-config-grammar/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-05 08:22:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-05 08:22:01 +0000
commitda72cb1ef543a9402332e3e60106b5446d37ba09 (patch)
tree6c2d9cde51f86005643f614254ec244544bcb3f4 /main/perl-config-grammar/APKBUILD
parentb513c1829e849cbb1a399b973b1c0196142c2242 (diff)
downloadaports-da72cb1ef543a9402332e3e60106b5446d37ba09.tar.bz2
aports-da72cb1ef543a9402332e3e60106b5446d37ba09.tar.xz
main/perl-config-grammar: moved from testing
needed by smokeping
Diffstat (limited to 'main/perl-config-grammar/APKBUILD')
-rw-r--r--main/perl-config-grammar/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/perl-config-grammar/APKBUILD b/main/perl-config-grammar/APKBUILD
new file mode 100644
index 000000000..e1fc3e932
--- /dev/null
+++ b/main/perl-config-grammar/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Leonardo Arena <rnalrd@gmail.com>
+pkgname=perl-config-grammar
+_pkgreal=Config-Grammar
+pkgver=1.10
+pkgrel=0
+pkgdesc="A grammar-based, user-friendly config parser"
+url="http://search.cpan.org/dist/Config-Grammar/"
+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/DS/DSCHWEI/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="ce904f687f1ee9c70521142a2e0f15c9 Config-Grammar-1.10.tar.gz"