aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-module-pluggable
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-07-17 09:31:53 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-07-17 09:32:35 +0300
commit1fdaa89a60915b80f4a0853f087b82832ea5991f (patch)
treea584cdcc539080986ed36985810d3805a39448be /main/perl-module-pluggable
parent76e65a313811660df1eed06cbea1ed44b00adee5 (diff)
downloadaports-1fdaa89a60915b80f4a0853f087b82832ea5991f.tar.bz2
aports-1fdaa89a60915b80f4a0853f087b82832ea5991f.tar.xz
main/perl-module-pluggable: new aport
Perl plugin framework for modules (splut out from perl-5.20 core) http://search.cpan.org/dist/Module-Pluggable/
Diffstat (limited to 'main/perl-module-pluggable')
-rw-r--r--main/perl-module-pluggable/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-module-pluggable/APKBUILD b/main/perl-module-pluggable/APKBUILD
new file mode 100644
index 0000000000..dad6d931d9
--- /dev/null
+++ b/main/perl-module-pluggable/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-module-pluggable
+_pkgreal=Module-Pluggable
+pkgver=5.1
+pkgrel=0
+pkgdesc="automatically give your module the ability to have plugins"
+url="http://search.cpan.org/dist/Module-Pluggable/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/S/SI/SIMONW/$_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="1b71ed7a67ad8c048d1499540bc892ba Module-Pluggable-5.1.tar.gz"
+sha256sums="e2dc354043bb16f1f3df8c4bb26070b26e594819f218cf8b8ac19e79c720916f Module-Pluggable-5.1.tar.gz"
+sha512sums="2ed43516ff18f50ac494f6365296f42e7dfc6704a2b01d3661ca00c295ee378184757cb03381400fba8bc5f2df06241f2ee9ecf930af4d498b042c68069a670b Module-Pluggable-5.1.tar.gz"