aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-data-float
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 13:53:29 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:24 +0300
commitfee4ae2e7fcd3a4e224cfd4e14284562c88296d9 (patch)
tree7a60bd2dc80978dbad23d100e6bb6f5ac7f03664 /testing/perl-data-float
parentb46efc6431f66209bcc122c884d9c5f1c5ed61df (diff)
downloadaports-fee4ae2e7fcd3a4e224cfd4e14284562c88296d9.tar.bz2
aports-fee4ae2e7fcd3a4e224cfd4e14284562c88296d9.tar.xz
testing/perl-data-float: new aport
http://search.cpan.org/dist/Data-Float/
Diffstat (limited to 'testing/perl-data-float')
-rw-r--r--testing/perl-data-float/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/perl-data-float/APKBUILD b/testing/perl-data-float/APKBUILD
new file mode 100644
index 0000000000..625c47d152
--- /dev/null
+++ b/testing/perl-data-float/APKBUILD
@@ -0,0 +1,47 @@
+# 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-data-float
+_pkgreal=Data-Float
+pkgver=0.012
+pkgrel=0
+pkgdesc="details of the floating point data type"
+url="http://search.cpan.org/dist/Data-Float/"
+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/Z/ZE/ZEFRAM/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ ./Build
+}
+
+package() {
+ cd "$builddir"
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
+}
+
+sha512sums="2ea314a1ee94189200262dcd15e6786d27bb010b8ca6e56e3214b4c2f80932f92d4227b2209a981fc7d3e7a8927624ced49d703349933d24c0f66b2a48c3d7f4 Data-Float-0.012.tar.gz"