diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-11-02 17:25:50 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-11-02 17:25:50 +0200 |
commit | 34217a0b3960188b4abafb4ba64ed1af3e8427ea (patch) | |
tree | 8e4840153de964a525bde31e24532b4807fc761e | |
parent | 4839e670592bcf73f73af3ef6d6140dada2f1f34 (diff) | |
download | aports-34217a0b3960188b4abafb4ba64ed1af3e8427ea.tar.bz2 aports-34217a0b3960188b4abafb4ba64ed1af3e8427ea.tar.xz |
main/perl-test-simple: update, and provide perl-test-tester
-rw-r--r-- | main/perl-test-simple/APKBUILD | 24 | ||||
-rw-r--r-- | main/perl-test-tester/APKBUILD | 41 |
2 files changed, 13 insertions, 52 deletions
diff --git a/main/perl-test-simple/APKBUILD b/main/perl-test-simple/APKBUILD index 07c6e1e812..357afee7e5 100644 --- a/main/perl-test-simple/APKBUILD +++ b/main/perl-test-simple/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-test-simple _pkgreal=Test-Simple -pkgver=1.302059 +pkgver=1.302062 pkgrel=0 pkgdesc="Basic utilities for writing tests." url="http://search.cpan.org/dist/Test-Simple/" @@ -13,29 +13,31 @@ cpandepends="" cpanmakedepends=" " depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" +provides="perl-test-tester" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/$_pkgreal-$pkgver.tar.gz" - -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + 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}'` + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make && make test } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="e35a6344da1a9aafdbfdb21cb4180cee Test-Simple-1.302059.tar.gz" -sha256sums="7ce69a19fed488ef3149c6887d47a69e14cd705682d7e2d28f3432bcef3e2a59 Test-Simple-1.302059.tar.gz" -sha512sums="a5fa13b617bf96ce31ec13b274b73d0c7c2e3f7a77e54c314d2285b3cd729442605ad3b9aa0721773622c837e7be6776a53e7d34fd2777d07a306c16ec31ccb1 Test-Simple-1.302059.tar.gz" +md5sums="d869f6754eccc38484da7e21e9c7bbcc Test-Simple-1.302062.tar.gz" +sha256sums="6729060d4ab12e2db3a3c6d6376ee6a9fb77c0ba0308b66919365a1e8bf156ea Test-Simple-1.302062.tar.gz" +sha512sums="8c221ec4ee33da68191df6c8e13f82f90d694a1d87e2406a4af500b70bd87e8b58093735ca71c63c6cb569673e088d9f558bf7155c1f5e885eada354c090d3ff Test-Simple-1.302062.tar.gz" diff --git a/main/perl-test-tester/APKBUILD b/main/perl-test-tester/APKBUILD deleted file mode 100644 index 5ee1adbe76..0000000000 --- a/main/perl-test-tester/APKBUILD +++ /dev/null @@ -1,41 +0,0 @@ -# Contributor: Natanael Copa <ncopa@alpinelinux.org> -# Maintainer: Natanael Copa <ncopa@alpinelinux.org> -pkgname=perl-test-tester -pkgver=0.109 -pkgrel=0 -pkgdesc="Test::Tester perl module" -url="http://search.cpan.org/dist/Test-Tester/" -arch="noarch" -license="GPLv2 or Artistic" -depends="perl" -makedepends="perl-dev" -install="" -subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/F/FD/FDALY/Test-Tester-$pkgver.tar.gz" - -_builddir="$srcdir"/Test-Tester-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make && make test || return 1 -} - -package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 - find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete -} - -md5sums="d8fd872ee7e959f89a4af0371a7e782d Test-Tester-0.109.tar.gz" -sha256sums="d3c7c85e2fcbd5bb9c9c4d2e76ddaa9b1694ed0ab2795b722904cf043e123655 Test-Tester-0.109.tar.gz" -sha512sums="f79942a85c787b1ea29da8f5c5611a0ce1fa8fabe372a4de04f0e5b98af137f43cd3966a558dc8fc5d0b049eb162f9b583d73ca39674bab7523290756b25cfe7 Test-Tester-0.109.tar.gz" |