summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpreps/perl.d/perl-pkgbuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/preps/perl.d/perl-pkgbuild b/preps/perl.d/perl-pkgbuild
index 539a200..87f28b6 100755
--- a/preps/perl.d/perl-pkgbuild
+++ b/preps/perl.d/perl-pkgbuild
@@ -94,6 +94,14 @@ ENDTXT
%s
ENDTXT
+ # Be a little paranoid, but we don't need PERL_AUTOINSTALL here.
+ # TODO: make this hack prettier
+ if($type eq 'MM'){
+ $funcs{'check'}{'prefix'} .= functxt(<<'ENDTXT', 'PERL_MM_DEFAULT=1', 'PERL5LIB');
+export %s
+unset %s
+ENDTXT
+ }
$funcs{'check'}{'body'} = functxt("%s test", $make);
$funcs{'package'}{'body'} = functxt(<<'ENDTXT', $make, $iargs);