2011-11-04 15:32:45 +00:00
|
|
|
class Cbmbasic < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Commodore BASIC V2 as a scripting language"
|
2015-01-29 12:55:16 +00:00
|
|
|
homepage "https://github.com/mist64/cbmbasic"
|
|
|
|
url "https://downloads.sourceforge.net/project/cbmbasic/cbmbasic/1.0/cbmbasic-1.0.tgz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "2735dedf3f9ad93fa947ad0fb7f54acd8e84ea61794d786776029c66faf64b04"
|
2015-01-29 12:55:16 +00:00
|
|
|
head "https://github.com/mist64/cbmbasic.git"
|
2011-11-04 15:32:45 +00:00
|
|
|
|
2015-01-29 13:04:06 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "83830760860b56bb7c10dd301c72aae60e8172c1" => :yosemite
|
|
|
|
sha1 "3e6da115337e59d612236113185fd29d49cd5763" => :mavericks
|
|
|
|
sha1 "7da6d8d160c73fd00e28999ae6c6f4c89b1cacbb" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2011-11-04 15:32:45 +00:00
|
|
|
def install
|
|
|
|
system "make", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}"
|
2015-01-29 12:55:16 +00:00
|
|
|
bin.install "cbmbasic"
|
2011-11-04 15:32:45 +00:00
|
|
|
end
|
|
|
|
|
2013-03-25 04:59:52 +00:00
|
|
|
test do
|
2015-01-29 12:55:16 +00:00
|
|
|
assert_match(/READY.\r\n 1/, pipe_output("#{bin}/cbmbasic", "PRINT 1\n", 0))
|
2011-11-04 15:32:45 +00:00
|
|
|
end
|
|
|
|
end
|