diff options
author | Nathan Johnson <nathan@nathanjohnson.info> | 2016-02-29 15:22:37 -0600 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-03-02 12:20:52 +0000 |
commit | 368bed3ce001a723991a9992cabc62abc207841a (patch) | |
tree | bd9bc7aa17da16cd4c222a4c97ac185f2434d29a /testing | |
parent | 06fe6c9e3e4259105142411f93484d87e39c6bf3 (diff) | |
download | aports-368bed3ce001a723991a9992cabc62abc207841a.tar.bz2 aports-368bed3ce001a723991a9992cabc62abc207841a.tar.xz |
testing/perl-test-class: new aport
http://search.cpan.org/dist/Test-Class/
Easily create test classes in an xUnit/JUnit style
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-test-class/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-test-class/APKBUILD b/testing/perl-test-class/APKBUILD new file mode 100644 index 0000000000..73a58d852c --- /dev/null +++ b/testing/perl-test-class/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Nathan Johnson <nathan@nathanjohnson.info> +# Maintainer: Nathan Johnson <nathan@nathanjohnson.info> +pkgname=perl-test-class +_pkgreal=Test-Class +pkgver=0.50 +pkgrel=0 +pkgdesc="Easily create test classes in an xUnit/JUnit style" +url="http://search.cpan.org/dist/Test-Class/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-try-tiny perl-mro-compat perl-module-runtime" +cpanmakedepends=" perl-test-exception " +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 && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="4cc3aaad36b72f424ed90122701d2451 Test-Class-0.50.tar.gz" +sha256sums="099154ed8caf3ff97c71237fab952264ac1c03d9270737a56071cabe65991350 Test-Class-0.50.tar.gz" +sha512sums="27ae19f60a916f5a23cccdc02ff6168e76d5f1cee5df196df4fe50024f7270ee9eaffdf02e9b6de70565c9b6b30606ad0a30477ac8951164b87c641caf960dcc Test-Class-0.50.tar.gz" |