summaryrefslogtreecommitdiff
path: root/homebrew/ack
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/ack')
-rw-r--r--homebrew/ack/.beer38
-rw-r--r--homebrew/ack/.make.sh-auto18
-rw-r--r--homebrew/ack/_metadata/description1
-rw-r--r--homebrew/ack/_metadata/homepage1
-rw-r--r--homebrew/ack/_metadata/name1
-rw-r--r--homebrew/ack/_metadata/version1
-rwxr-xr-xhomebrew/ack/download.sh1
7 files changed, 61 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
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"
diff --git a/homebrew/ack/_metadata/description b/homebrew/ack/_metadata/description
new file mode 100644
index 000000000..a51fe5af8
--- /dev/null
+++ b/homebrew/ack/_metadata/description
@@ -0,0 +1 @@
+Search tool like grep, but optimized for programmers
diff --git a/homebrew/ack/_metadata/homepage b/homebrew/ack/_metadata/homepage
new file mode 100644
index 000000000..3999ab435
--- /dev/null
+++ b/homebrew/ack/_metadata/homepage
@@ -0,0 +1 @@
+https://beyondgrep.com/
diff --git a/homebrew/ack/_metadata/name b/homebrew/ack/_metadata/name
new file mode 100644
index 000000000..6aafc4507
--- /dev/null
+++ b/homebrew/ack/_metadata/name
@@ -0,0 +1 @@
+Ack
diff --git a/homebrew/ack/_metadata/version b/homebrew/ack/_metadata/version
new file mode 100644
index 000000000..410158ac6
--- /dev/null
+++ b/homebrew/ack/_metadata/version
@@ -0,0 +1 @@
+2.28
diff --git a/homebrew/ack/download.sh b/homebrew/ack/download.sh
new file mode 100755
index 000000000..cac5e8f3c
--- /dev/null
+++ b/homebrew/ack/download.sh
@@ -0,0 +1 @@
+wget https://beyondgrep.com/ack-2.28-single-file \ No newline at end of file