diff options
| author | Leon Zhang | 2012-03-14 03:15:49 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-15 20:55:36 -0700 |
| commit | 4dd562e8933b9ef6d1ccce8da26b8392c5a4b6d9 (patch) | |
| tree | 3ec1835bba47619bf8326373018e92ecfebf2b48 /Library | |
| parent | 1bcb7dceb8600673fa8d7dd491fd9b0ab1caadc6 (diff) | |
| download | homebrew-4dd562e8933b9ef6d1ccce8da26b8392c5a4b6d9.tar.bz2 | |
highlight 3.8
Also, fix compiling against lua for non-/usr/local/ installs.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/highlight.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Formula/highlight.rb b/Library/Formula/highlight.rb index 283dc9514..188c51b0d 100644 --- a/Library/Formula/highlight.rb +++ b/Library/Formula/highlight.rb @@ -1,14 +1,20 @@ require 'formula' class Highlight < Formula - url 'http://www.andre-simon.de/zip/highlight-3.6.tar.bz2' homepage 'http://www.andre-simon.de/doku/highlight/en/highlight.html' - sha1 'ff3d5f5d17edfed4881d34ef847e63bf800a33e2' + url 'http://www.andre-simon.de/zip/highlight-3.8.tar.bz2' + sha1 '007a008f1846485e86ad9347f98f69a22afeb718' depends_on 'boost' depends_on 'lua' def install + inreplace "src/Makefile" do |s| + s.change_make_var! "CXX", ENV.cxx + s.gsub! /^(CFLAGS):=.*$/, "\\1 = #{ENV.cppflags}" + s.gsub! /^(LUA_LIBS)=(.*)$/, "\\1 = #{ENV.ldflags} \\2" + end + conf_dir = etc+'highlight/' # highlight needs a final / for conf_dir system "make", "PREFIX=#{prefix}", "conf_dir=#{conf_dir}" system "make", "PREFIX=#{prefix}", "conf_dir=#{conf_dir}", "install" |
