aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/scrotwm.rb
blob: 86e1e24850adec6a075b192b1828300f516a43da (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
require 'formula'

class Scrotwm < Formula
  homepage 'http://opensource.conformal.com/wiki/scrotwm'
  url 'http://opensource.conformal.com/snapshots/scrotwm/scrotwm-0.9.30.tgz'
  sha1 '844c5261170be1dfa043ad90cd7164bbaabed497'

  def patches
    DATA
  end

  def install
    cd "osx" do
      system "make"
      system "make", "install", "PREFIX=#{prefix}"
    end
  end

  def caveats; <<-EOS
    To use scrotwm as your X window manager, create or edit  ~/.xinitrc and add:
      exec #{HOMEBREW_PREFIX}/bin/scrotwm
    EOS
  end
end

__END__
# osx.h is missing a macro for TAIL_END (which is defined for Linux)
--- a/osx/osx.h	2011-06-14 10:51:33.000000000 -0500
+++ b/osx/osx.h	2011-08-14 14:05:58.000000000 -0500
@@ -1,3 +1,7 @@
 /* $scrotwm: osx.h,v 1.1 2009/11/25 16:12:13 marco Exp $ */
 
 long long strtonum(const char *, long long, long long, const char **);
+
+#ifndef TAILQ_END
+#define TAILQ_END(head)		NULL
+#endif