summaryrefslogtreecommitdiff
path: root/homebrew/perlbuild/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/perlbuild/.make.sh-auto')
-rw-r--r--homebrew/perlbuild/.make.sh-auto11
1 files changed, 11 insertions, 0 deletions
diff --git a/homebrew/perlbuild/.make.sh-auto b/homebrew/perlbuild/.make.sh-auto
new file mode 100644
index 000000000..4546d06e5
--- /dev/null
+++ b/homebrew/perlbuild/.make.sh-auto
@@ -0,0 +1,11 @@
+pkg:setup
+ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
+(buildpath/"perl-build").unlink
+(buildpath/"bin/perl-build").unlink
+build_pl = ["Module::Build::Tiny", "CPAN::Perl::Releases::MetaCPAN"]
+resources.each do |r|
+r.stage do
+next if build_pl.include? r.name
+perl Makefile.PL INSTALL_BASE=#{libexec}
+make
+make DESTDIR=${PKG_DEST} install