diff options
Diffstat (limited to 'homebrew/ack/.make.sh-auto')
-rw-r--r-- | homebrew/ack/.make.sh-auto | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/homebrew/ack/.make.sh-auto b/homebrew/ack/.make.sh-auto new file mode 100644 index 000000000..85b0bcde1 --- /dev/null +++ b/homebrew/ack/.make.sh-auto @@ -0,0 +1,18 @@ +pkg:setup +ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5" +ENV.prepend_path "PERL5LIB", libexec/"lib" +resource("File::Next").stage do +perl Makefile.PL INSTALL_BASE=#{libexec} +make DESTDIR=${PKG_DEST} install +end +perl Makefile.PL DESTDIR=#{buildpath} +make +libexec.install "ack" +chmod 0755, libexec/"ack" +(libexec/"lib").install "blib/lib/App" +(bin/"ack").write_env_script("#{libexec}/ack", :PERL5LIB => ENV["PERL5LIB"]) +man1.install "blib/man1/ack.1" +else +bin.install "ack-#{version.to_s.tr("-", "_")}-single-file" => "ack" +pod2man #{bin}/ack ack.1 +man1.install "ack.1" |