33 lines
983 B
Ruby
33 lines
983 B
Ruby
class Rgbds < Formula
|
|
desc "Rednex GameBoy development system"
|
|
homepage "https://www.anjbe.name/rgbds/"
|
|
url "https://github.com/bentley/rgbds/releases/download/v0.2.3/rgbds-0.2.3.tar.gz"
|
|
sha256 "7918cd7642d9b72a990c8e98e6b29268a267cbfa023cf5b20a0acf33e879c6f0"
|
|
|
|
head "https://github.com/bentley/rgbds.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "b38aeefaffb931fece069ba16e57cf1c033c4cf6df6d60811520940be424470a" => :yosemite
|
|
sha256 "d9d7ac1db608efe738507b248d1881a84aa3b71c839165628f98449459d17919" => :mavericks
|
|
sha256 "858232f6f636e4fe3f3061d51c56fcf7c3de74fa9a17cbfeaae3e52ab3b73a16" => :mountain_lion
|
|
end
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}", "MANPREFIX=#{man}"
|
|
end
|
|
|
|
test do
|
|
(testpath/"source.asm").write <<-EOS.undent
|
|
SECTION "Org $100",HOME[$100]
|
|
nop
|
|
jp begin
|
|
begin:
|
|
ld sp, $ffff
|
|
ld a, $1
|
|
ld b, a
|
|
add a, b
|
|
EOS
|
|
system "#{bin}/rgbasm", "source.asm"
|
|
end
|
|
end
|