aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-sub-exporter/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-03 20:00:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-03 20:00:10 +0000
commit042f4ab4c4a75307c2b51479fa6c702079be8fab (patch)
treecd57bd087ead5004f2b2f3fa93b3918011065455 /main/perl-sub-exporter/APKBUILD
parent5a10c1af76714a9b07fe71cae0a100c60c62a517 (diff)
downloadaports-042f4ab4c4a75307c2b51479fa6c702079be8fab.tar.bz2
aports-042f4ab4c4a75307c2b51479fa6c702079be8fab.tar.xz
main/perl-sub-exporter: fix depends
Diffstat (limited to 'main/perl-sub-exporter/APKBUILD')
-rw-r--r--main/perl-sub-exporter/APKBUILD34
1 files changed, 16 insertions, 18 deletions
diff --git a/main/perl-sub-exporter/APKBUILD b/main/perl-sub-exporter/APKBUILD
index cdc8385ba..5b47ba6d8 100644
--- a/main/perl-sub-exporter/APKBUILD
+++ b/main/perl-sub-exporter/APKBUILD
@@ -1,34 +1,32 @@
-# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-sub-exporter
+_pkgreal=Sub-Exporter
pkgver=0.986
-pkgrel=0
-pkgdesc="Sub::Exporter perl module"
+pkgrel=1
+pkgdesc="a sophisticated exporter for custom-built routines"
url="http://search.cpan.org/dist/Sub-Exporter/"
arch="noarch"
-license="GPLv2 or Artistic"
-depends="perl perl-data-optlist perl-sub-install"
-makedepends="perl-dev"
-install=""
+license="GPL PerlArtistic"
+cpandepends="perl-data-optlist perl-sub-install perl-params-util"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Sub-Exporter-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
-_builddir="$srcdir"/Sub-Exporter-$pkgver
prepare() {
- local i
cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
- make test || return 1
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
}
package() {