38 lines
1.1 KiB
Ruby
38 lines
1.1 KiB
Ruby
class Rgbds < Formula
|
|
desc "Rednex GameBoy Development System"
|
|
homepage "https://github.com/rednex/rgbds"
|
|
url "https://github.com/rednex/rgbds/archive/v0.4.1.tar.gz"
|
|
sha256 "cecee415a3fafe56a761f033ffbf6c6aa6af1e47dc2b764ffd04104897bbd2e5"
|
|
license "MIT"
|
|
head "https://github.com/rednex/rgbds.git"
|
|
|
|
livecheck do
|
|
url "https://github.com/gbdev/rgbds/releases/latest"
|
|
regex(%r{href=.*?/tag/v?(\d+(?:\.\d+)+)["' >]}i)
|
|
end
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "8adee69ec949c97750ea1aa84fb7ccabe219598902744f06cae3b49b4cbe6a08" => :catalina
|
|
sha256 "22b389095a057f515398cfa7981339fb37f93cf12417c1c9ff3fac9bc31cc71c" => :mojave
|
|
sha256 "a791dd97949a7aec4d02197bfdd44ee6bd84472c93a50d6b762b5a3a2f2c5117" => :high_sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libpng"
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}", "mandir=#{man}"
|
|
end
|
|
|
|
test do
|
|
# https://github.com/rednex/rgbds/blob/HEAD/test/asm/assert-const.asm
|
|
(testpath/"source.asm").write <<~EOS
|
|
SECTION "rgbasm passing asserts", ROM0[0]
|
|
db 0
|
|
assert @
|
|
EOS
|
|
system "#{bin}/rgbasm", "source.asm"
|
|
end
|
|
end
|