aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-08-20 06:39:00 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-08-20 07:47:37 +0000
commitecf00d68ffcd80debd7d3cf717c97cf1b17aa388 (patch)
tree1a11e9774dc7beda20b86a635bfb05d3e19a0027
parent117f1f2e2c7c5574b8fa63fa9229deb418b5fea6 (diff)
downloadaports-ecf00d68ffcd80debd7d3cf717c97cf1b17aa388.tar.gz
aports-ecf00d68ffcd80debd7d3cf717c97cf1b17aa388.tar.bz2
aports-ecf00d68ffcd80debd7d3cf717c97cf1b17aa388.tar.xz
main/perl-super: new aport
Control superclass method dispatch
-rw-r--r--main/perl-super/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-super/APKBUILD b/main/perl-super/APKBUILD
new file mode 100644
index 0000000000..1ca7b37c0f
--- /dev/null
+++ b/main/perl-super/APKBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=perl-super
+_pkgname=SUPER
+pkgver=1.20141117
+pkgrel=0
+pkgdesc="Control superclass method dispatch"
+url="https://metacpan.org/pod/SUPER"
+arch="noarch"
+license="Artistic GPL-2.0"
+depends="perl"
+makedepends="perl-dev perl-module-build perl-sub-identify"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/SUPER-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="c17fe478fcb9ebc2749c27fc75b839bd77e81c9d0170697b2a697dcebb9f4eef4b954d023b76d33a8b4201b110e5e997b1e0993faf7a04ef2e1191a2f7c516a0 SUPER-1.20141117.tar.gz"