16 lines
443 B
Ruby
16 lines
443 B
Ruby
require 'formula'
|
|
|
|
class Cbmbasic < Formula
|
|
homepage 'http://cbmbasic.sourceforge.net/'
|
|
url 'https://downloads.sourceforge.net/project/cbmbasic/cbmbasic/1.0/cbmbasic-1.0.tgz'
|
|
sha1 '54564daa7f28be98b03ae7dd1eece9e5439c95c3'
|
|
|
|
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")
|
|
end
|
|
end
|