diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-04-15 02:41:11 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-04-27 05:45:34 +0000 |
commit | 333d21bb0ef88e99f40ce88a01b951954bd1e7d2 (patch) | |
tree | 3d6a67bdec02698f68456601e83dc7974212a1f9 /testing/perl-class-inner | |
parent | 0a34304297159e9791a94ad1a86a0fefc7636d96 (diff) | |
download | aports-333d21bb0ef88e99f40ce88a01b951954bd1e7d2.tar.bz2 aports-333d21bb0ef88e99f40ce88a01b951954bd1e7d2.tar.xz |
testing/perl-class-inner: new aport
An implementation of Java like inner classes
http://search.cpan.org/dist/Class-Inner
Diffstat (limited to 'testing/perl-class-inner')
-rw-r--r-- | testing/perl-class-inner/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-class-inner/APKBUILD b/testing/perl-class-inner/APKBUILD new file mode 100644 index 0000000000..e00a0694a3 --- /dev/null +++ b/testing/perl-class-inner/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Valery Kartel <valery.kartel@gmail.com> +# Maintainer: Valery Kartel <valery.kartel@gmail.com> +pkgname=perl-class-inner +_pkgreal=Class-Inner +pkgver=0.200001 +pkgrel=0 +pkgdesc="An implementation of Java like inner classes" +url="http://search.cpan.org/dist/Class-Inner/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/A/AR/ARUNBEAR/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + 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 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="308d688577ac9eeea14bd665269d4f32f5f9c4be9ac47460c0d4be4248c3eaabb9eb51e9a840a5e8dab58e35cf10c831b55321fdc5a2c83e04eec88ba2b8f905 Class-Inner-0.200001.tar.gz" |