diff options
| author | nibbles 2bits | 2012-06-13 22:26:59 -0700 |
|---|---|---|
| committer | Jack Nagel | 2012-06-14 16:59:22 -0500 |
| commit | c753a39e02bb625adac147c991f694f31d0f7384 (patch) | |
| tree | c76b9882d8398e7e3d27462b5952f37490a9a779 | |
| parent | 543620e671f3bedbd5b853c01c647ddc82818336 (diff) | |
| download | homebrew-c753a39e02bb625adac147c991f694f31d0f7384.tar.bz2 | |
colormake 0.9
Upgrade colormake to version 0.9.
Use `EOS.undent` to clean up the formatting.
Change the location of the perl file from `share` to `libexec`.
Tested on Lion with XCode-4.3.3 by compiling gawk using `colormake`
in place of the command `make`.
Closes #12815.
Closes #12828.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/colormake.rb | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/Library/Formula/colormake.rb b/Library/Formula/colormake.rb index 900f1a950..ff7be16e7 100644 --- a/Library/Formula/colormake.rb +++ b/Library/Formula/colormake.rb @@ -1,28 +1,27 @@ 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' + url 'http://bre.klaki.net/programs/colormake/colormake-0.9.tar.gz' + sha1 '6c5ab4be23d60ec79ed4c43cbeb142bfd4a4e626' def install - where_to = (share+'colormake') - where_to.install 'colormake.pl' + libexec.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+'colormake').write <<-EOS.undent + #!/bin/sh + /usr/bin/make \"$@\" 2>&1 | #{libexec}/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 + (bin+'clmake').write <<-EOS.undent + #!/bin/sh + SIZE=`/bin/stty size` + [ -z "${CLMAKE_OPTS}" ] && CLMAKE_OPTS='-r -pError' + /usr/bin/make \"$@\" 2>&1 | #{libexec}/colormake.pl $SIZE | /usr/bin/less ${CLMAKE_OPTS} + exit ${PIPESTATUS[0]} + EOS end end |
