2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-27 03:19:18 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Rogue < Formula
|
2009-09-27 03:19:18 +00:00
|
|
|
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 install
|
2010-02-07 01:59:50 +00:00
|
|
|
ENV.ncurses_define if MACOS_VERSION == 10.6
|
2009-09-27 03:19:18 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
|
|
|
|
inreplace "config.h", "rogue.scr", "#{var}/rogue/rogue.scr"
|
2009-09-27 03:19:18 +00:00
|
|
|
|
2010-02-07 01:59:50 +00:00
|
|
|
inreplace "Makefile" do |s|
|
|
|
|
# Take out weird man install script and DIY below
|
|
|
|
s.gsub! "-if test -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(man6dir)/$(PROGRAM).6 ; fi", ""
|
|
|
|
s.gsub! "-if test ! -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(mandir)/$(PROGRAM).6 ; fi", ""
|
|
|
|
end
|
|
|
|
|
2009-09-27 03:19:18 +00:00
|
|
|
system "make install"
|
2010-04-07 05:58:35 +00:00
|
|
|
man6.install gzip("rogue.6")
|
2009-09-27 03:19:18 +00:00
|
|
|
libexec.mkdir
|
|
|
|
end
|
|
|
|
end
|