aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-tcp
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-07-25 07:54:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-25 07:54:51 +0000
commit7fc21d3269f6c91cad132c796d2f5d2c5d0115c4 (patch)
tree8e419418621f2bc26aecedc22fa0f0fa70b9450d /main/perl-test-tcp
parentfdbf3a8818611b9803821162c1e2b5926fb5e467 (diff)
downloadaports-7fc21d3269f6c91cad132c796d2f5d2c5d0115c4.tar.bz2
aports-7fc21d3269f6c91cad132c796d2f5d2c5d0115c4.tar.xz
main/perl-test-tcp: upgrade to 2.00
Diffstat (limited to 'main/perl-test-tcp')
-rw-r--r--main/perl-test-tcp/APKBUILD39
1 files changed, 20 insertions, 19 deletions
diff --git a/main/perl-test-tcp/APKBUILD b/main/perl-test-tcp/APKBUILD
index 9f0518b1fb..8f3b88ae2c 100644
--- a/main/perl-test-tcp/APKBUILD
+++ b/main/perl-test-tcp/APKBUILD
@@ -1,39 +1,40 @@
-# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-tcp
-pkgver=1.13
+_pkgreal=Test-TCP
+pkgver=2.00
pkgrel=0
-pkgdesc="Test::TCP perl module"
+pkgdesc="testing TCP program"
url="http://search.cpan.org/dist/Test-TCP/"
arch="noarch"
-license="GPLv2 or Artistic"
-depends="perl perl-test-sharedfork"
-makedepends="perl-dev"
-install=""
+license="GPL PerlArtistic"
+cpandepends="perl-test-sharedfork"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-TCP-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
-_builddir="$srcdir"/Test-TCP-$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
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ perl Build.PL installdirs=vendor || return 1
}
build() {
cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make && make test || return 1
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ ./Build && ./Build test
}
package() {
cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ ./Build install destdir="$pkgdir" || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="fe152a1e66123b0de6779e0aa546ab34 Test-TCP-1.13.tar.gz"
+md5sums="48e496d9550e6f78eb0d622d6eea909b Test-TCP-2.00.tar.gz"
+sha256sums="95e3239975bb42af9eba9f38224bc6be4a2c4cbb0d3b5c1a2d8d9a3957d0630c Test-TCP-2.00.tar.gz"
+sha512sums="be6e9e9b83ffabc377d396858875851e89190b860dd1dc43582613c760fb91d2bf5578c5a56112872364c6247b0ff76593a6790d80c25c11caa564639ba658b5 Test-TCP-2.00.tar.gz"