diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/lhasa.rb | 27 |
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 |
