diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/flasm.rb | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/Library/Formula/flasm.rb b/Library/Formula/flasm.rb index 3eadce0d5..bbf46853e 100644 --- a/Library/Formula/flasm.rb +++ b/Library/Formula/flasm.rb @@ -1,13 +1,25 @@ -require 'formula' - class Flasm < Formula - homepage 'http://www.nowrap.de/flasm.html' - url 'http://www.nowrap.de/download/flasm16src.zip' - sha1 '3b383fa042eae414c5e5608bfa91a42f44bd1a86' - version '1.62' + homepage "http://www.nowrap.de/flasm.html" + url "http://www.nowrap.de/download/flasm16src.zip" + sha256 "df1273a506e2479cf95775197f5b7fa94e29fe1e0aae5aa190ed5bbebc4be5c6" + version "1.62" def install system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}" bin.install "flasm" end + + test do + (testpath/"test").write <<-EOS.undent + constants 'a', 'b' + push 'a', 'b' + getVariable + push 'b' + getVariable + multiply + setVariable + EOS + + system "#{bin}/flasm", "-b", "test" + end end |
