aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMatt Murphy2014-09-25 14:06:56 -0500
committerMike McQuaid2014-10-06 22:33:03 +0100
commit1dd12846149ef9f550a1e348e6186057071d2778 (patch)
tree0adc84392fd6bd3dc679781f02fe968689ba9583 /Library
parentf441fc41017f9efbcc945566a996f34eb3c910f0 (diff)
downloadhomebrew-1dd12846149ef9f550a1e348e6186057071d2778.tar.bz2
rgbds 0.1.1 (new formula)
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rgbds.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/rgbds.rb b/Library/Formula/rgbds.rb
new file mode 100644
index 000000000..bbce49093
--- /dev/null
+++ b/Library/Formula/rgbds.rb
@@ -0,0 +1,28 @@
+require "formula"
+
+class Rgbds < Formula
+ homepage "https://github.com/bentley/rgbds"
+ url "https://github.com/bentley/rgbds/releases/download/v0.1.1/rgbds-0.1.1.tar.gz"
+ sha1 "948a0a7c43f79be40c53be740bcb8d5e2b548136"
+
+ head "https://github.com/bentley/rgbds.git", :branch => "master"
+
+ def install
+ system "make"
+ 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