diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 14:01:31 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:24 +0300 |
commit | ef2913e78dc9e895042c848a3ad906ef6a641414 (patch) | |
tree | d5faf7b24bf1f72287feef5360f3182b4888b2b6 /testing/perl-context-preserve | |
parent | df46fe1977b8a3572857224c5eefa7abb6ecc4d7 (diff) | |
download | aports-ef2913e78dc9e895042c848a3ad906ef6a641414.tar.bz2 aports-ef2913e78dc9e895042c848a3ad906ef6a641414.tar.xz |
testing/perl-context-preserve: new aport
http://search.cpan.org/dist/Context-Preserve/
Diffstat (limited to 'testing/perl-context-preserve')
-rw-r--r-- | testing/perl-context-preserve/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-context-preserve/APKBUILD b/testing/perl-context-preserve/APKBUILD new file mode 100644 index 0000000000..1d0b084968 --- /dev/null +++ b/testing/perl-context-preserve/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-context-preserve +_pkgreal=Context-Preserve +pkgver=0.02 +pkgrel=0 +pkgdesc="Run code after a subroutine call, preserving the context" +url="http://search.cpan.org/dist/Context-Preserve/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="perl-test-exception" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_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="e5c230e38430c6ea9b7ed75e075a12454262adf1883e5ab6ada4696099e2f246d0f9b613934b4197b0529e126ea083d12d9bbe4ece5cfb82a93f913b7d70b068 Context-Preserve-0.02.tar.gz" |