2011-06-10 21:04:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Quex < Formula
|
|
|
|
homepage 'http://quex.org/'
|
2012-06-20 17:48:06 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/quex/DOWNLOAD/quex-0.62.6.zip'
|
|
|
|
sha1 'a773b9d44b4cf9d9cbfd289ab1420cffdc26ed32'
|
2011-06-10 21:04:26 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-10 14:18:06 +00:00
|
|
|
libexec.install 'demo', 'quex', 'quex-exe.py'
|
2011-06-10 21:04:26 +00:00
|
|
|
|
|
|
|
# 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
|