cbmbasic: head added

Closes Homebrew/homebrew#36352.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2015-01-29 13:55:16 +01:00 committed by Mike McQuaid
parent 14dea53a12
commit 821820f819

View file

@ -1,16 +1,15 @@
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'
homepage "https://github.com/mist64/cbmbasic"
url "https://downloads.sourceforge.net/project/cbmbasic/cbmbasic/1.0/cbmbasic-1.0.tgz"
sha1 "54564daa7f28be98b03ae7dd1eece9e5439c95c3"
head "https://github.com/mist64/cbmbasic.git"
def install
system "make", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}"
bin.install 'cbmbasic'
bin.install "cbmbasic"
end
test do
assert_match /READY.\r\n 1/, pipe_output("#{bin}/cbmbasic", "PRINT 1\n")
assert_match(/READY.\r\n 1/, pipe_output("#{bin}/cbmbasic", "PRINT 1\n", 0))
end
end