aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-html-parser
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-07-16 08:43:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-07-16 12:54:43 +0000
commitdf454b4b9d9a8732b1bdcecc5c0af29817ed9cda (patch)
tree1708c8aaa4993b013fb55dc755e6f078e81f3217 /main/perl-html-parser
parent61633844b8ed115dc216edb90acb7dbfdd9c70d3 (diff)
downloadaports-df454b4b9d9a8732b1bdcecc5c0af29817ed9cda.tar.bz2
aports-df454b4b9d9a8732b1bdcecc5c0af29817ed9cda.tar.xz
main/perl-html-parser: rebuild against perl-5.22
Diffstat (limited to 'main/perl-html-parser')
-rw-r--r--main/perl-html-parser/APKBUILD40
1 files changed, 24 insertions, 16 deletions
diff --git a/main/perl-html-parser/APKBUILD b/main/perl-html-parser/APKBUILD
index 830ca797e1..f6dbff8b5d 100644
--- a/main/perl-html-parser/APKBUILD
+++ b/main/perl-html-parser/APKBUILD
@@ -1,31 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-html-parser
-_realname=HTML-Parser
+_pkgreal=HTML-Parser
pkgver=3.71
-pkgrel=2
-pkgdesc="Parse section of HTML documents"
-url="http://search.cpan.org/~gaas/HTML-Parser-3.60/"
+pkgrel=3
+pkgdesc="HTML parser class"
+url="http://search.cpan.org/dist/HTML-Parser/"
arch="all"
license="GPL PerlArtistic"
-depends="perl"
-makedepends="perl-dev"
-install=
+cpandepends="perl-html-tagset"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.gz"
-build() {
- cd "$srcdir/$_realname-$pkgver"
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
}
package() {
- cd "$srcdir/$_realname-$pkgver"
- make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="9128a45893097dfa3bf03301b19c5efe HTML-Parser-3.71.tar.gz"