diff options
| author | Adam Vandenberg | 2010-02-06 17:59:50 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-02-06 17:59:50 -0800 |
| commit | caeddac1eec54f091919872800f950abbd2b5f3b (patch) | |
| tree | d5f860036dcc85b52a456df05f8d777059dbfb3a /Library/Formula | |
| parent | 60cab61ed03b51aab1673a8d0367af81d6cdbc52 (diff) | |
| download | homebrew-caeddac1eec54f091919872800f950abbd2b5f3b.tar.bz2 | |
rogue - fix installation of manpage
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/rogue.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Library/Formula/rogue.rb b/Library/Formula/rogue.rb index 78dafbf6f..cf97e4212 100644 --- a/Library/Formula/rogue.rb +++ b/Library/Formula/rogue.rb @@ -11,9 +11,7 @@ class Rogue <Formula end def install - if MACOS_VERSION == 10.6 - ENV.ncurses_define - end + ENV.ncurses_define if MACOS_VERSION == 10.6 system "./configure", "--prefix=#{prefix}", "--disable-debug", @@ -21,7 +19,14 @@ class Rogue <Formula inreplace "config.h", "rogue.scr", "#{libexec}/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" + (man+'man6').install gzip("rogue.6") libexec.mkdir end end |
