aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorChris Rose2011-06-20 10:30:29 -0700
committerAdam Vandenberg2011-08-13 11:54:09 -0700
commite4d20873419a176433583d3ce8ab718915809f65 (patch)
tree994d608fe40970c91de111ad40d42af4ab67f772 /Library/Formula
parentd0c379d39c22119eec993059eb891fb3975184ab (diff)
downloadhomebrew-e4d20873419a176433583d3ce8ab718915809f65.tar.bz2
ScrotWM 0.9.30
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/scrotwm.rb36
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/scrotwm.rb b/Library/Formula/scrotwm.rb
new file mode 100644
index 000000000..d5b87c33b
--- /dev/null
+++ b/Library/Formula/scrotwm.rb
@@ -0,0 +1,36 @@
+require 'formula'
+
+class Scrotwm < Formula
+ url 'http://opensource.conformal.com/snapshots/scrotwm/scrotwm-0.9.30.tgz'
+ homepage 'http://opensource.conformal.com/wiki/scrotwm'
+ md5 '008d018a0ab546b4915e5aa7199f8982'
+
+ def patches
+ DATA
+ end
+
+ def install
+ Dir.chdir "osx"
+ system "make"
+ system "make", "install", "PREFIX=#{prefix}"
+ 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
++++ b/osx/osx.h
+@@ -1,3 +1,8 @@
+ /* $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