Commit 6a9d687e authored by Leo's avatar Leo Committed by Francesco Colista

main/perl-cgi: upgrade to 4.44

parent aa9a5759
...@@ -3,46 +3,40 @@ ...@@ -3,46 +3,40 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi> # Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-cgi pkgname=perl-cgi
_pkgreal=CGI _pkgreal=CGI
pkgver=4.43 pkgver=4.44
pkgrel=0 pkgrel=0
pkgdesc="Handle Common Gateway Interface requests and responses" pkgdesc="Handle Common Gateway Interface requests and responses"
url="http://search.cpan.org/dist/CGI/" url="http://search.cpan.org/dist/CGI/"
arch="noarch" arch="noarch"
license="GPL PerlArtistic" license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-html-parser" cpandepends="perl-html-parser"
cpanmakedepends=""
cpancheckdepends="perl-test-nowarnings perl-test-deep perl-test-warn" cpancheckdepends="perl-test-nowarnings perl-test-deep perl-test-warn"
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev"
checkdepends="$cpancheckdepends" checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
default_prepare || return 1 default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make make
} }
package() { package() {
cd "$builddir" make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
check() { check() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test make test
} }
sha512sums="620634861c66bbebaa31c03273a9f91151865954310e697afc697ca3274a97ae90235bcdafd829ed63d647ed5256689073de09a5d71a0779b6219ab8045be61d CGI-4.43.tar.gz" sha512sums="3cbb7d8c54a08ded7a78f971bda8dbd95ebe52cb10ff20a1094bbff7aa422eb76d456aa4a425aa45c6add2a6a2d669fc3814ee4ba554079d64a5226e0538ccfc CGI-4.44.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment