aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorWilliam Woodruff2014-09-01 10:31:47 -0400
committerMike McQuaid2014-09-02 15:19:45 +0100
commite92d7f5b9cea29501d489f9c9da9acd278979ff6 (patch)
tree2c46070ac9795e245b9904ee09fce96a6d04951f /Library/Formula
parentbe03319d9420724545c2ccb773300195980bb2e4 (diff)
downloadhomebrew-e92d7f5b9cea29501d489f9c9da9acd278979ff6.tar.bz2
makeself 2.2.0 (new formula)
Closes #32023. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/makeself.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/makeself.rb b/Library/Formula/makeself.rb
new file mode 100644
index 000000000..aa8c38d4e
--- /dev/null
+++ b/Library/Formula/makeself.rb
@@ -0,0 +1,25 @@
+require "formula"
+
+class Makeself < Formula
+ homepage "http://www.megastep.org/makeself/"
+ url "https://github.com/megastep/makeself/archive/release-2.2.0.tar.gz"
+ sha1 "e512745f7aa5becea4f4f85a8dc0aa6fd6ca38aa"
+
+ head 'https://github.com/megastep/makeself.git', :branch => 'master'
+
+ def install
+ libexec.install "makeself-header.sh"
+ # moved makeself-header.sh to libexec so change its location in makeself.sh
+ inreplace "makeself.sh" do |f|
+ f.gsub! '`dirname "$0"`', "#{libexec}"
+ end
+ bin.install "makeself.sh" => "makeself"
+ man1.install "makeself.1"
+ end
+
+ test do
+ touch "testfile"
+ system "tar", "cvzf", "testfile.tar.gz", "testfile"
+ system "makeself", ".", "testfile.run", "\"A test file\"", "echo"
+ end
+end