2011-06-10 21:04:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Quex < Formula
|
|
|
|
homepage 'http://quex.org/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/quex/DOWNLOAD/quex-0.64.8.tar.gz'
|
2013-09-28 04:38:40 +00:00
|
|
|
sha1 'efe3d3f5fa0cf9a1130c16d1e0dd4e48cf72011b'
|
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+'quex').write <<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
QUEX_PATH="#{libexec}" "#{libexec}/quex-exe.py" "$@"
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2011-06-10 21:04:26 +00:00
|
|
|
system "#{bin}/quex", "--help"
|
|
|
|
end
|
|
|
|
end
|