Commit 39ba917a authored by Leo's avatar Leo Committed by Francesco Colista
Browse files

main/perl-plack: modernize, fix license.

parent 6e6f974b
......@@ -4,38 +4,44 @@
pkgname=perl-plack
_pkgreal=Plack
pkgver=1.0033
pkgrel=0
pkgrel=1
pkgdesc="Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)"
url="http://search.cpan.org/dist/Plack/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-file-sharedir perl-filesys-notify-simple perl-devel-stacktrace perl-stream-buffered perl-uri perl-devel-stacktrace-ashtml perl-http-body perl-test-tcp perl-try-tiny perl-apache-logformat-compiler perl-hash-multivalue perl-http-message"
cpanmakedepends=" perl-test-requires "
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-file-sharedir perl-filesys-notify-simple perl-devel-stacktrace
perl-stream-buffered perl-uri perl-devel-stacktrace-ashtml perl-http-body
perl-test-tcp perl-try-tiny perl-apache-logformat-compiler
perl-hash-multivalue perl-http-message"
cpanmakedepends="perl-test-requires"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-file-sharedir-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
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
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="41292d3c33f637773369daeac86a48b8 Plack-1.0033.tar.gz"
sha256sums="bcd8784b8263bd6d68476e9d52e6f98819bd4f3331455cad12effed63a783220 Plack-1.0033.tar.gz"
sha512sums="bb9335605a103380b06932289d6e99ae9cf58e98fd889542373ef2509269a6e251f1908c168482c455b5b590c8a883072b08c3a7fbfe6596ec60d699e71b2c33 Plack-1.0033.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