summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-06-01 12:41:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-06-01 12:45:30 +0000
commitdcddc396532dddfb451101fde7f19c7f52e39dfe (patch)
tree325e0fbe57151953c97588b10019e9202109251a /main
parent4dc0994aa25a34eec21ea44988a4ec722eed4ad9 (diff)
downloadaports-dcddc396532dddfb451101fde7f19c7f52e39dfe.tar.bz2
aports-dcddc396532dddfb451101fde7f19c7f52e39dfe.tar.xz
main/perl-http-message: fix depends
Diffstat (limited to 'main')
-rw-r--r--main/perl-http-message/APKBUILD41
1 files changed, 24 insertions, 17 deletions
diff --git a/main/perl-http-message/APKBUILD b/main/perl-http-message/APKBUILD
index 8e36c27ea..61414ddef 100644
--- a/main/perl-http-message/APKBUILD
+++ b/main/perl-http-message/APKBUILD
@@ -1,32 +1,39 @@
-# Contributor: Leonardo Arena <rnalrd@gmail.com>
-# Maintainer: Leonardo Arena <rnalrd@gmail.com>
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-http-message
-_realname=HTTP-Message
pkgver=6.02
-pkgrel=0
-pkgdesc="Perl World Wide Web library"
-url="http://search.cpan.org/~gaas"
+pkgrel=1
+pkgdesc="HTTP::Message perl module"
+url="http://search.cpan.org/dist/HTTP-Message/"
arch="noarch"
-license="GPL PerlArtistic"
-depends="perl"
+license="GPLv2 or Artistic"
+depends="perl perl-uri perl-html-parser perl-encode-locale perl-lwp-mediatypes"
makedepends="perl-dev"
-install=
+install=""
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/HTTP-Message-$pkgver.tar.gz"
-_builddir="$srcdir/$_realname-$pkgver"
+_builddir="$srcdir"/HTTP-Message-$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
+}
build() {
- cd $_builddir
+ cd "$_builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ make && make test || return 1
}
package() {
- cd $_builddir
- 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="a6b28e44f7b5e5573362f042d522a456 HTTP-Message-6.02.tar.gz"