22 lines
686 B
Plaintext
22 lines
686 B
Plaintext
# Description: safely and cleanly create closures via string eval
|
|
# URL: https://metacpan.org/release/Eval-Closure
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: p5-sub-exporter p5-try-tiny
|
|
|
|
name=p5-eval-closure
|
|
version=0.14
|
|
release=1
|
|
source=(https://cpan.metacpan.org/authors/id/D/DO/DOY/Eval-Closure-$version.tar.gz)
|
|
|
|
build() {
|
|
cd Eval-Closure-$version
|
|
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
|
|
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$PKG"'" \
|
|
PERL_MB_OPT="--installdirs vendor --destdir '"$PKG"'" \
|
|
MODULEBUILDRC=/dev/null
|
|
perl Makefile.PL
|
|
make
|
|
make install
|
|
find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
|
|
}
|