aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-26 20:19:18 -0700
committerMax Howell2009-09-29 23:33:22 +0100
commit6ce23a05ec026c336fb77b907e9a7ed3cf2915b5 (patch)
tree56eb68a7292dd4074b4233fa11c3a83b790964ea /Library/Formula
parent8f86c069e7b050537bfcef9561e893955f0f7a0b (diff)
downloadhomebrew-6ce23a05ec026c336fb77b907e9a7ed3cf2915b5.tar.bz2
Formula for rogue.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/rogue.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/rogue.rb b/Library/Formula/rogue.rb
new file mode 100644
index 000000000..e724d551f
--- /dev/null
+++ b/Library/Formula/rogue.rb
@@ -0,0 +1,27 @@
+require 'brewkit'
+
+class Rogue <Formula
+ url 'http://rogue.rogueforge.net/files/rogue5.4/rogue5.4.4-src.tar.gz'
+ homepage 'http://rogue.rogueforge.net/'
+ version '5.4.4'
+ sha1 'aef9e589c4f31eb6d3eeb9d543ab8787b00fb022'
+
+ def skip_clean? path
+ path == libexec
+ end
+
+ def install
+ if MACOS_VERSION == 10.6
+ ENV.ncurses_define
+ end
+
+ system "./configure", "--prefix=#{prefix}",
+ "--disable-debug",
+ "--disable-dependency-tracking"
+
+ inreplace "config.h", "rogue.scr", "#{libexec}/rogue.scr"
+
+ system "make install"
+ libexec.mkdir
+ end
+end