aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Huber2011-06-10 23:04:26 +0200
committerAdam Vandenberg2011-11-26 14:14:45 -0800
commitfb49a728d251001d9bc887613477008dc435b671 (patch)
treecca2f48bb740577489c92be597cfdd27fc371718
parent3a34d3f8827442aa90d52f30d89f5c116b75d7d7 (diff)
downloadhomebrew-fb49a728d251001d9bc887613477008dc435b671.tar.bz2
quex 0.60.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/quex.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/quex.rb b/Library/Formula/quex.rb
new file mode 100644
index 000000000..3c944bd34
--- /dev/null
+++ b/Library/Formula/quex.rb
@@ -0,0 +1,22 @@
+require 'formula'
+
+class Quex < Formula
+ url 'http://downloads.sourceforge.net/project/quex/DOWNLOAD/quex-0.60.2.tar.gz'
+ homepage 'http://quex.org/'
+ md5 '836b724616020db2e661e4758b265239'
+
+ def install
+ libexec.install ['demo', 'quex', 'quex-exe.py']
+
+ # Use a shim script to set QUEX_PATH on the user's behalf
+ bin.mkpath
+ (bin+'quex').write <<-EOS.undent
+ #!/bin/bash
+ QUEX_PATH="#{libexec}" "#{libexec}/quex-exe.py" "$@"
+ EOS
+ end
+
+ def test
+ system "#{bin}/quex", "--help"
+ end
+end