aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-yaml-tiny
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 22:26:06 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 22:27:56 +0000
commitc2535decfa7ccf263416b022ca9b4797eca1385e (patch)
tree841c8d7a58d7e5b09daf463f6826e2e5d39d9567 /main/perl-yaml-tiny
parent79dbc1e76a00d6880cfaf2a012f943fa0e9cc6e0 (diff)
downloadaports-c2535decfa7ccf263416b022ca9b4797eca1385e.tar.bz2
aports-c2535decfa7ccf263416b022ca9b4797eca1385e.tar.xz
community/perl-yaml-tiny: move to main
moved due to perl-module-install
Diffstat (limited to 'main/perl-yaml-tiny')
-rw-r--r--main/perl-yaml-tiny/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/main/perl-yaml-tiny/APKBUILD b/main/perl-yaml-tiny/APKBUILD
new file mode 100644
index 0000000000..4168769f77
--- /dev/null
+++ b/main/perl-yaml-tiny/APKBUILD
@@ -0,0 +1,43 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-yaml-tiny
+_pkgreal=YAML-Tiny
+pkgver=1.70
+pkgrel=1
+pkgdesc="Read/Write YAML files with as little code as possible"
+url="http://search.cpan.org/dist/YAML-Tiny/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends="perl-json-maybexs"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_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
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="a4d790f8d797170fac819640d23a3ddc62b506ac9467d8922ed2ca8f1abacf5a6ba7604e5312f6539a3c9e4aa8c41ccd91754ca32f74bf8b0d89a9d84e4b4f53 YAML-Tiny-1.70.tar.gz"