diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/colormake.rb | 28 |
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 |
