homebrew-core/Formula/quex.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

21 lines
514 B
Ruby

require 'formula'
class Quex < Formula
homepage 'http://quex.org/'
url 'http://downloads.sourceforge.net/project/quex/DOWNLOAD/quex-0.64.8.tar.gz'
sha1 'efe3d3f5fa0cf9a1130c16d1e0dd4e48cf72011b'
def install
libexec.install 'demo', 'quex', 'quex-exe.py'
# 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
test do
system "#{bin}/quex", "--help"
end
end