aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-env-path
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 10:33:05 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:23 +0300
commite7ffc5b623820a7f6f3f6e543fa1960d83c2f992 (patch)
treed54163605d6c89670e06fcdf2f00f60ad46d4360 /testing/perl-env-path
parenta1d2eb585b98388216c0a547288ac91435e8e3f8 (diff)
downloadaports-e7ffc5b623820a7f6f3f6e543fa1960d83c2f992.tar.bz2
aports-e7ffc5b623820a7f6f3f6e543fa1960d83c2f992.tar.xz
testing/perl-env-path: new aport
http://search.cpan.org/dist/Env-Path/
Diffstat (limited to 'testing/perl-env-path')
-rw-r--r--testing/perl-env-path/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-env-path/APKBUILD b/testing/perl-env-path/APKBUILD
new file mode 100644
index 0000000000..778cc2d05e
--- /dev/null
+++ b/testing/perl-env-path/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-env-path
+_pkgreal=Env-Path
+pkgver=0.19
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Env-Path/"
+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/D/DS/DSB/$_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="ea75dd808bd1d1e00a70179ccf834b4395e810ae46373eb16a9ebd37ada550ce3d9996073dfbe45909c66537fbc7712920d4dbb6dbf905200501884c5acb52fa Env-Path-0.19.tar.gz"