summaryrefslogtreecommitdiff
path: root/homebrew/extracturl/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/extracturl/.make.sh-auto')
-rw-r--r--homebrew/extracturl/.make.sh-auto9
1 files changed, 9 insertions, 0 deletions
diff --git a/homebrew/extracturl/.make.sh-auto b/homebrew/extracturl/.make.sh-auto
new file mode 100644
index 000000000..4666e24f2
--- /dev/null
+++ b/homebrew/extracturl/.make.sh-auto
@@ -0,0 +1,9 @@
+pkg:setup
+ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
+ENV.prepend_path "PERL5LIB", libexec/"lib"
+inreplace "extract_url.pl", "#!/usr/bin/env perl", "#!/usr/bin/perl"
+%w[MIME::Parser HTML::Parser Pod::Usage Env Getopt::Long Curses Curses::UI].each do |r|
+resource(r).stage do
+perl Makefile.PL INSTALL_BASE=#{libexec}
+make
+make DESTDIR=${PKG_DEST} install