aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/slashem.rb
blob: 7e71a662723a99311c2403188e84550683226ed0 (plain)
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
require 'formula'

class Slashem < Formula
  homepage 'http://slashem.sourceforge.net'
  url 'http://downloads.sourceforge.net/project/slashem/slashem-source/0.0.8E0F1/se008e0f1.tar.gz'
  version "0.0.8E0F1"
  md5 'cdfceaf7888246934dec8e256ac0a738'

  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
  def patches
   DATA
  end

  def install
    ENV.j1
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-mandir=#{man}",
                          "--with-group=staff",
                          "--with-owner=#{`echo $USER`}"
    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