diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-07-17 09:36:06 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-07-17 09:37:10 +0300 |
commit | e9e59e333ce12924c571879b2c54d11628a5f6ba (patch) | |
tree | 8516401354d38102e129ba681e2ceb53c9f49a33 /main/perl-test-number-delta | |
parent | 1fdaa89a60915b80f4a0853f087b82832ea5991f (diff) | |
download | aports-e9e59e333ce12924c571879b2c54d11628a5f6ba.tar.bz2 aports-e9e59e333ce12924c571879b2c54d11628a5f6ba.tar.xz |
main/perl-test-number-delta: new aport
Compare number delta (split out from perl 5.20 core)
http://search.cpan.org/dist/Test-Number-Delta/
Diffstat (limited to 'main/perl-test-number-delta')
-rw-r--r-- | main/perl-test-number-delta/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-test-number-delta/APKBUILD b/main/perl-test-number-delta/APKBUILD new file mode 100644 index 0000000000..53893ae87c --- /dev/null +++ b/main/perl-test-number-delta/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-test-number-delta +_pkgreal=Test-Number-Delta +pkgver=1.04 +pkgrel=0 +pkgdesc="Compare the difference between numbers against a given tolerance" +url="http://search.cpan.org/dist/Test-Number-Delta/" +arch="noarch" +license="apache_2_0" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_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 && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="59eb83a84abec511c265b42b444002e8 Test-Number-Delta-1.04.tar.gz" +sha256sums="883fd8a4a71e867f3bb30879f4c2d91e75610a7bb9822370743be377c3de4dbd Test-Number-Delta-1.04.tar.gz" +sha512sums="ae0eea95b3d671eac8efef7d9e65335111fc6403921172ed96c597269d56d7e7137ed65f80c896f08c16c6fafe1bd99d7f7d0c99fa0f50d8f659d9e749f9dfbc Test-Number-Delta-1.04.tar.gz" |