diff options
Diffstat (limited to 'Library/Formula/grc.rb')
| -rw-r--r-- | Library/Formula/grc.rb | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Library/Formula/grc.rb b/Library/Formula/grc.rb index 293b13b06..747182029 100644 --- a/Library/Formula/grc.rb +++ b/Library/Formula/grc.rb @@ -1,16 +1,15 @@ require 'formula' -######################################################################### cook class Grc <Formula - @homepage='http://korpus.juls.savba.sk/~garabik/software/grc.html' - @url='http://korpus.juls.savba.sk/~garabik/software/grc/grc_1.3.tar.gz' - @md5='a4814dcee965c3ff67681f6b59e6378c' + homepage 'http://korpus.juls.savba.sk/~garabik/software/grc.html' + url 'http://korpus.juls.savba.sk/~garabik/software/grc/grc_1.3.tar.gz' + md5 'a4814dcee965c3ff67681f6b59e6378c' def install #TODO we should deprefixify since it's python and thus possible inreplace ['grc', 'grc.1'], '/etc', etc inreplace ['grcat', 'grcat.1'], '/usr/local', prefix - + etc.install 'grc.conf' bin.install %w[grc grcat] (share+'grc').install Dir['conf.*'] @@ -19,12 +18,9 @@ class Grc <Formula (etc+'grc.bashrc').write DATA.read rescue RuntimeError end - def caveats - <<-EOS -New shell sessions will start using GRC after you run the following command: - - echo 'source "`brew --prefix`/etc/grc.bashrc"' >> ~/.bashrc - + def caveats; <<-EOS.undent + New shell sessions will start using GRC after you run the following command: + echo 'source "`brew --prefix`/etc/grc.bashrc"' >> ~/.bashrc EOS end end |
