summaryrefslogtreecommitdiff
path: root/homebrew/ack/.beer
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/ack/.beer
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/ack/.beer')
-rw-r--r--homebrew/ack/.beer38
1 files changed, 38 insertions, 0 deletions
diff --git a/homebrew/ack/.beer b/homebrew/ack/.beer
new file mode 100644
index 000000000..bc2751cc2
--- /dev/null
+++ b/homebrew/ack/.beer
@@ -0,0 +1,38 @@
+{
+ "name": "Ack",
+ "description": "Search tool like grep, but optimized for programmers",
+ "url": "https://beyondgrep.com/ack-2.28-single-file",
+ "mirror": null,
+ "homepage": "https://beyondgrep.com/",
+ "depends": [],
+ "resource": [
+ {
+ "name": "File::Next",
+ "url": "https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/File-Next-1.16.tar.gz"
+ }
+ ],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "if build.head?",
+ "ENV.prepend_create_path \"PERL5LIB\", libexec/\"lib/perl5\"",
+ "ENV.prepend_path \"PERL5LIB\", libexec/\"lib\"",
+ "resource(\"File::Next\").stage do",
+ "system \"perl\", \"Makefile.PL\", \"INSTALL_BASE=#{libexec}\"",
+ "system \"make\", \"install\"",
+ "end",
+ "system \"perl\", \"Makefile.PL\", \"DESTDIR=#{buildpath}\"",
+ "system \"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\"",
+ "system \"pod2man\", \"#{bin}/ack\", \"ack.1\"",
+ "man1.install \"ack.1\""
+ ],
+ "version": "2.28",
+ "file": "ack.rb"
+} \ No newline at end of file