aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlexander Barton2010-01-01 13:41:16 +0100
committerAdam Vandenberg2010-06-17 08:56:58 -0700
commit40c9fd98236f2fd4497b50c94603f9223b52054f (patch)
treedf839733579330a5ff20351e3f8afb51504ddbe3 /Library/Formula
parenta20fc0aa8d28a932b6a6f6999c6d6ba0238d5bc2 (diff)
downloadhomebrew-40c9fd98236f2fd4497b50c94603f9223b52054f.tar.bz2
New formula: colormake 0.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/colormake.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/colormake.rb b/Library/Formula/colormake.rb
new file mode 100644
index 000000000..20b3b5067
--- /dev/null
+++ b/Library/Formula/colormake.rb
@@ -0,0 +1,28 @@
+require 'formula'
+
+class Colormake <Formula
+ url 'http://bre.klaki.net/programs/colormake/colormake-0.2.tar.gz'
+ homepage 'http://bre.klaki.net/programs/colormake/'
+ md5 '1029dae70e7a23cff0f6a11f3ceffbe1'
+
+ def install
+ where_to = (share+'colormake')
+ where_to.install 'colormake.pl'
+
+ # The following two scripts are not the ones shipped with colormake,
+ # but heavily based on the ones used by Debian.
+ (bin+'colormake').write <<-EOS
+#!/bin/sh
+/usr/bin/make \"$@\" 2>&1 | #{where_to}/colormake.pl
+exit ${PIPESTATUS[0]}
+EOS
+
+ (bin+'clmake').write <<-EOS
+#!/bin/sh
+SIZE=`/bin/stty size`
+[ -z "${CLMAKE_OPTS}" ] && CLMAKE_OPTS='-r -pError'
+/usr/bin/make \"$@\" 2>&1 | #{where_to}/colormake.pl $SIZE | /usr/bin/less ${CLMAKE_OPTS}
+exit ${PIPESTATUS[0]}
+EOS
+ end
+end