95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
23 lines
792 B
Ruby
23 lines
792 B
Ruby
class Cbmbasic < Formula
|
|
desc "Commodore BASIC V2 as a scripting language"
|
|
homepage "https://github.com/mist64/cbmbasic"
|
|
url "https://downloads.sourceforge.net/project/cbmbasic/cbmbasic/1.0/cbmbasic-1.0.tgz"
|
|
sha256 "2735dedf3f9ad93fa947ad0fb7f54acd8e84ea61794d786776029c66faf64b04"
|
|
head "https://github.com/mist64/cbmbasic.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "83830760860b56bb7c10dd301c72aae60e8172c1" => :yosemite
|
|
sha1 "3e6da115337e59d612236113185fd29d49cd5763" => :mavericks
|
|
sha1 "7da6d8d160c73fd00e28999ae6c6f4c89b1cacbb" => :mountain_lion
|
|
end
|
|
|
|
def install
|
|
system "make", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}"
|
|
bin.install "cbmbasic"
|
|
end
|
|
|
|
test do
|
|
assert_match(/READY.\r\n 1/, pipe_output("#{bin}/cbmbasic", "PRINT 1\n", 0))
|
|
end
|
|
end
|