aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-encode
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-08-14 13:03:49 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-08-14 13:03:49 +0200
commitb6d4e327a46927af5769818c6334fd5a35a36e42 (patch)
tree5379e04ff2d5773d64bf3ba54fdb8f4311b78d78 /main/perl-encode
parente555b0d00eac27369aee1f14b0d45addc1146469 (diff)
downloadaports-b6d4e327a46927af5769818c6334fd5a35a36e42.tar.bz2
aports-b6d4e327a46927af5769818c6334fd5a35a36e42.tar.xz
main/perl-encode: upgrade to 2.76
Diffstat (limited to 'main/perl-encode')
-rw-r--r--main/perl-encode/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/main/perl-encode/APKBUILD b/main/perl-encode/APKBUILD
new file mode 100644
index 0000000000..67ec88b0dc
--- /dev/null
+++ b/main/perl-encode/APKBUILD
@@ -0,0 +1,49 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=perl-encode
+_pkgreal=Encode
+pkgver=2.76
+pkgrel=0
+pkgdesc="character encodings in Perl"
+url="http://search.cpan.org/dist/Encode/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc $pkgname-piconv"
+source="http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/$_pkgreal-$pkgver.tar.gz"
+
+_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
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+# we split out /usr/bin/piconv to separate package to avoid conflict with
+# piconv shipped with perl itself
+piconv() {
+ pkgdesc="perl implementation of iconv"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/piconv "$subpkgdir"/usr/bin/
+}
+
+md5sums="90ee2160d40ade6cc4c4aa1b1ff4745e Encode-2.76.tar.gz"
+sha256sums="0fa01359d34d1d129e9bcacb0b9bb821e36e9fb5f1404cfb557dfa680368f265 Encode-2.76.tar.gz"
+sha512sums="69026bc73e23ad1ee1ceb311a2e9bde3bcdf1ddf67e4d5e800a65b4e69f3cda02b3fe61214d99e710a35ca6bdf9b6b29383cac1f7d62eb938807c4226a66f4a0 Encode-2.76.tar.gz"