forked from ziz/homebrew-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slashem.rb
52 lines (42 loc) · 1.73 KB
/
slashem.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require 'formula'
require 'etc'
class Slashem < Formula
homepage 'http://slashem.sourceforge.net'
url 'https://downloads.sourceforge.net/project/slashem/slashem-source/0.0.8E0F1/se008e0f1.tar.gz'
sha1 'eec6615f8ed04691a996ef62a7305f6812e6ae26'
version "0.0.8E0F1"
skip_clean 'slashemdir/save'
depends_on 'pkg-config' => :build
# Fixes compilation error in OS X:
# http://sourceforge.net/tracker/index.php?func=detail&aid=1644971&group_id=9746&atid=109746
patch :DATA
# Fixes user check on older versions of OS X: http://sourceforge.net/p/slashem/bugs/895/
# Fixed upstream: http://slashem.cvs.sourceforge.net/viewvc/slashem/slashem/configure?r1=1.13&r2=1.14&view=patch
patch :p0 do
url "https://gist.githubusercontent.com/mistydemeo/76dd291c77a509216418/raw/65a41804b7d7e1ae6ab6030bde88f7d969c955c3/slashem-configure.patch"
sha1 "b05bab5b2f93ca598d9c9c0ad935374a150c4e9d"
end
def install
ENV.j1
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-mandir=#{man}",
"--with-group=admin",
"--with-owner=#{Etc.getpwuid.name}",
"--enable-wizmode=#{Etc.getpwuid.name}"
system "make install"
man6.install 'doc/slashem.6'
man6.install 'doc/recover.6'
end
end
__END__
diff --git a/win/tty/termcap.c b/win/tty/termcap.c
index c3bdf26..8d00b11 100644
--- a/win/tty/termcap.c
+++ b/win/tty/termcap.c
@@ -960,7 +960,7 @@ cl_eos() /* free after Robert Viduya */
#include <curses.h>
-#if !defined(LINUX) && !defined(__FreeBSD__)
+#if !defined(LINUX) && !defined(__FreeBSD__) && !defined(__APPLE__)
extern char *tparm();
#endif