blob: a72e460f9beaf13578de911e524634a40bf6221f (
plain)
1 # Description: safely and cleanly create closures via string eval
2 # URL: https://metacpan.org/release/Eval-Closure
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: p5-sub-exporter p5-try-tiny
5
6 name=p5-eval-closure
7 version=0.14
8 release=1
9 source=(https://cpan.metacpan.org/authors/id/D/DO/DOY/Eval-Closure-$version.tar.gz)
10
11 build() {
12 cd Eval-Closure-$version
13 export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
14 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$PKG"'" \
15 PERL_MB_OPT="--installdirs vendor --destdir '"$PKG"'" \
16 MODULEBUILDRC=/dev/null
17 perl Makefile.PL
18 make
19 make install
20 find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
21 }
|