diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 15:00:34 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:24 +0300 |
commit | 97601b6c3918c0f148fcf4df89498b61a736adae (patch) | |
tree | cc8cdc076d8e96d7a76d40abb2c729a7b0bcaded /testing | |
parent | f78b2d8dba07e126df3129a6a3a3ddafef88c565 (diff) | |
download | aports-97601b6c3918c0f148fcf4df89498b61a736adae.tar.bz2 aports-97601b6c3918c0f148fcf4df89498b61a736adae.tar.xz |
testing/perl-algorithm-c3: new aport
A module for merging hierarchies using the C3 algorithm
http://search.cpan.org/dist/Algorithm-C3/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-algorithm-c3/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-algorithm-c3/APKBUILD b/testing/perl-algorithm-c3/APKBUILD new file mode 100644 index 0000000000..5e85e33379 --- /dev/null +++ b/testing/perl-algorithm-c3/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-algorithm-c3 +_pkgreal=Algorithm-C3 +pkgver=0.10 +pkgrel=0 +pkgdesc="A module for merging hierarchies using the C3 algorithm" +url="http://search.cpan.org/dist/Algorithm-C3/" +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/H/HA/HAARG/$_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="2ace81679e8ff2f3f3fbe8028741aef0833b1415a7cde0d1b20c90557889347685d1135029cd849324b6d40c435a80b228549bf669bbf43f9a1b2ed7075b605e Algorithm-C3-0.10.tar.gz" |