7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
27 lines
895 B
Ruby
27 lines
895 B
Ruby
require 'formula'
|
|
|
|
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 install
|
|
ENV.ncurses_define if MACOS_VERSION == 10.6
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
|
|
inreplace "config.h", "rogue.scr", "#{var}/rogue/rogue.scr"
|
|
|
|
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
|
|
|
|
system "make install"
|
|
man6.install gzip("rogue.6")
|
|
libexec.mkdir
|
|
end
|
|
end
|