aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBastien Dejean2014-03-06 14:01:47 +0100
committerMike McQuaid2014-03-07 10:48:19 +0000
commit4b58f7c7a7d7b4fc23f4f647a77308c8fe2aa882 (patch)
treeee25474486b48b9ecaaee8542be41e9a0a94f738 /Library
parentfa2d16e1400dd1a073f6fa5534edb8a7d3157295 (diff)
downloadhomebrew-4b58f7c7a7d7b4fc23f4f647a77308c8fe2aa882.tar.bz2
lhasa 0.2.0 (new formula)
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/lhasa.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/lhasa.rb b/Library/Formula/lhasa.rb
new file mode 100644
index 000000000..775b2eba3
--- /dev/null
+++ b/Library/Formula/lhasa.rb
@@ -0,0 +1,27 @@
+require "formula"
+
+class Lhasa < Formula
+ homepage "http://fragglet.github.io/lhasa/"
+ url "https://github.com/fragglet/lhasa/archive/v0.2.0.tar.gz"
+ sha1 "95dae252410648f629b275dedef218f81b835b3b"
+ head "https://github.com/fragglet/lhasa.git"
+
+ conflicts_with "lha", :because => "both install a `lha` binary"
+
+ depends_on "pkg-config" => :build
+ depends_on :autoconf
+ depends_on :automake
+ depends_on :libtool
+
+ def install
+ system "./autogen.sh", "--prefix=#{prefix}"
+ system "make", "install"
+ end
+
+ test do
+ str = "MQAtbGgwLQQAAAAEAAAA9ZQTUyACg2JVBQAA" +
+ "hloGAAFmb28FAFCkgQcAURQA9QEAAGZvbwoA"
+ system "echo #{str} | /usr/bin/base64 -D | #{bin}/lha x -"
+ assert_equal "foo\n", `cat foo`
+ end
+end