diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-06 07:58:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-06 09:21:32 +0000 |
commit | 9bf713d8b7bb460381a9a4955ab8441632143a39 (patch) | |
tree | 7822639e30ee0b1418a8b880ca0adbd481614058 | |
parent | 347d500791662143202efc9766fa3a06cc7bb42c (diff) | |
download | aports-9bf713d8b7bb460381a9a4955ab8441632143a39.tar.bz2 aports-9bf713d8b7bb460381a9a4955ab8441632143a39.tar.xz |
main/perl-xml-parser: upgrade to 2.41
-rw-r--r-- | main/perl-xml-parser/APKBUILD | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/main/perl-xml-parser/APKBUILD b/main/perl-xml-parser/APKBUILD index 33aff3878..42e20f44f 100644 --- a/main/perl-xml-parser/APKBUILD +++ b/main/perl-xml-parser/APKBUILD @@ -1,26 +1,36 @@ +# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-xml-parser -_name=XML-Parser -pkgver=2.40 -pkgrel=2 -pkgdesc="XML::Parser - an XML parser module for perl" +_pkgreal=XML-Parser +pkgver=2.41 +pkgrel=0 +pkgdesc="A perl module for parsing XML documents" url="http://search.cpan.org/dist/XML-Parser/" arch="all" license="GPL PerlArtistic" -depends="perl" -makedepends="expat-dev perl-dev" -source="http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/${_name}-${pkgver}.tar.gz" +cpandepends="perl-libwww" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev expat-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_pkgreal-$pkgver.tar.gz" -build () { - cd "$srcdir"/$_name-$pkgver - perl Makefile.PL INSTALLDIRS=vendor || return 1 - make MAN1EXT=1p MAN3EXT=3pm || return 1 +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + make && make test } package() { - cd "$srcdir"/$_name-$pkgver - make install MAN1EXT=1p MAN3EXT=3pm DESTDIR="$pkgdir" || return 1 - find "$pkgdir" -name perllocal.pod -delete - find "$pkgdir" -name .packlist -delete + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="c66e9adba003d0667cc40115ccd837a5 XML-Parser-2.40.tar.gz" + +md5sums="c320d2ffa459e6cdc6f9f59c1185855e XML-Parser-2.41.tar.gz" |