summaryrefslogtreecommitdiffstats
path: root/testing/perl-parser-mgc
diff options
context:
space:
mode:
Diffstat (limited to 'testing/perl-parser-mgc')
-rw-r--r--testing/perl-parser-mgc/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-parser-mgc/APKBUILD b/testing/perl-parser-mgc/APKBUILD
new file mode 100644
index 000000000..5504d5220
--- /dev/null
+++ b/testing/perl-parser-mgc/APKBUILD
@@ -0,0 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+pkgname=perl-parser-mgc
+_pkgreal=Parser-MGC
+pkgver=0.10
+pkgrel=0
+pkgdesc="build simple recursive-descent parsers"
+url="http://search.cpan.org/dist/Parser-MGC/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-file-slurp"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ ./Build && ./Build test
+}
+
+package() {
+ cd "$_builddir"
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="a0bfd2b152bbcf59e08fa9892ad4a960 Parser-MGC-0.10.tar.gz"