diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-09 13:36:05 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-09 15:18:37 +0000 |
commit | 63f0ca3130a64f8cee46617f13f3a0881e63e6be (patch) | |
tree | 2e8770ba6207d65a855f3306e5359e274722d55f /testing/perl-encode | |
parent | a13f1ffced43734e75e903a78de0fa71ffbcb7f1 (diff) | |
download | aports-63f0ca3130a64f8cee46617f13f3a0881e63e6be.tar.bz2 aports-63f0ca3130a64f8cee46617f13f3a0881e63e6be.tar.xz |
testing/perl-encode: new aport
character encodings in Perl
http://search.cpan.org/dist/Encode/
Diffstat (limited to 'testing/perl-encode')
-rw-r--r-- | testing/perl-encode/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/perl-encode/APKBUILD b/testing/perl-encode/APKBUILD new file mode 100644 index 0000000000..105849c69c --- /dev/null +++ b/testing/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.70 +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="91af5a434c48ccdc8ceebc9dfd75fe1c Encode-2.70.tar.gz" +sha256sums="aef0098c4ff62a972cca38524fbb6ca60e3d3c28b2ccba8fc820881ebd336a31 Encode-2.70.tar.gz" +sha512sums="5e8bc078b581374702dd2270b1a918ba175eddf2a10a75dd9ba0fe1a9b6780d5252e8ad8a33671bbdc367219b348b158b80f61c8e8d544d7a19a51600171d655 Encode-2.70.tar.gz" |