homebrew-core/Formula/highlight.rb
BiZoNiX 26cba1463d highlight 3.14
Closes Homebrew/homebrew#20669.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-21 14:23:11 -07:00

22 lines
653 B
Ruby

require 'formula'
class Highlight < Formula
homepage 'http://www.andre-simon.de/doku/highlight/en/highlight.html'
url 'http://www.andre-simon.de/zip/highlight-3.14.tar.bz2'
sha1 '02dd278367e9029baeb396cd6af77f11ceb731c5'
depends_on 'pkg-config' => :build
depends_on 'boost'
depends_on 'lua'
def install
inreplace "src/makefile" do |s|
s.change_make_var! "CXX", ENV.cxx
s.gsub! /lua5.1/, "lua"
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"
end
end