aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-type-tiny
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-06-14 15:01:16 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-06-14 15:01:16 +0000
commit98f7ec1bf5e38719a15e825d3c73d339fcf4e2bf (patch)
tree7af5ef060eab7492e60116c177cb81bf7152c6f4 /main/perl-type-tiny
parent8e7b7aee8760c336a0a1471a552d97a77e63b42e (diff)
downloadaports-98f7ec1bf5e38719a15e825d3c73d339fcf4e2bf.tar.bz2
aports-98f7ec1bf5e38719a15e825d3c73d339fcf4e2bf.tar.xz
main/perl-type-tiny: moved from commmunity
Needed for perl-params-validationcompiler
Diffstat (limited to 'main/perl-type-tiny')
-rw-r--r--main/perl-type-tiny/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/main/perl-type-tiny/APKBUILD b/main/perl-type-tiny/APKBUILD
new file mode 100644
index 0000000000..508e7820bb
--- /dev/null
+++ b/main/perl-type-tiny/APKBUILD
@@ -0,0 +1,42 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-type-tiny
+_pkgreal=Type-Tiny
+pkgver=1.000006
+pkgrel=0
+pkgdesc="tiny, yet Moo(se)-compatible type constraint"
+url="http://search.cpan.org/dist/Type-Tiny/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-exporter-tiny"
+cpanmakedepends=" perl-test-warnings"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/$_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 && make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="c9810355d9a51321d19124f981d1e889 Type-Tiny-1.000006.tar.gz"
+sha256sums="bc61a39fe35b5568f27ebf1f1584cb45bbe8240eec21f97c50aab93f87bbc072 Type-Tiny-1.000006.tar.gz"
+sha512sums="62a8ffbf14615aa2655e4f49755eed86560f03f5e9172a97950567458fe0de8dd1e29c1c4483d7e9413b9f77a1c7844e4839b4fb4c0afd722b2abbbf413ce3c8 Type-Tiny-1.000006.tar.gz"