mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
testing/perl-gearman: modernize, fix license
Closes GH-8234
This commit is contained in:
parent
ed2f3c6753
commit
c877dc1a45
@ -4,43 +4,37 @@
|
||||
pkgname=perl-gearman
|
||||
_pkgreal=Gearman
|
||||
pkgver=2.004.008
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Client and worker libraries for gearman job dispatch dispatch. Server is in separate package."
|
||||
url="http://search.cpan.org/dist/Gearman/"
|
||||
arch="noarch"
|
||||
license="GPL PerlArtistic"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
cpandepends="perl-list-moreutils perl-string-crc32 perl-io-socket-ssl"
|
||||
cpanmakedepends="perl-file-which perl-test-tcp perl-test-timer perl-proc-guard perl-io-socket-ssl perl-test-exception"
|
||||
cpancheckdepends=""
|
||||
cpanmakedepends="perl-file-which perl-test-tcp perl-test-timer perl-proc-guard
|
||||
perl-test-exception"
|
||||
depends="$cpandepends"
|
||||
makedepends="perl-dev $cpanmakedepends"
|
||||
checkdepends="$cpancheckdepends"
|
||||
subpackages="$pkgname-doc"
|
||||
source="http://search.cpan.org/CPAN/authors/id/P/PA/PALIK/$_pkgreal-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_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
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make test
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user