summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKiyoshi Aman <aphrael@alpinelinux.org>2012-03-03 09:20:23 -0500
committerKiyoshi Aman <aphrael@alpinelinux.org>2012-03-13 12:17:21 -0400
commitc37fe5f609ecef1ec68d5f79fccf90cc27c0a5d9 (patch)
tree0bbdc6f79e9108abe84625c8749b932385d76666
parentcaf0d21bd93c28bd2ae2987181e18653affb35b8 (diff)
downloadaports-c37fe5f609ecef1ec68d5f79fccf90cc27c0a5d9.tar.bz2
aports-c37fe5f609ecef1ec68d5f79fccf90cc27c0a5d9.tar.xz
testing/perl-parser-mgc: New APKBUILD
-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"