2010-04-11 23:01:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Highlight < Formula
|
2010-04-11 23:01:45 +00:00
|
|
|
homepage 'http://www.andre-simon.de/doku/highlight/en/highlight.html'
|
2013-06-21 18:04:09 +00:00
|
|
|
url 'http://www.andre-simon.de/zip/highlight-3.14.tar.bz2'
|
|
|
|
sha1 '02dd278367e9029baeb396cd6af77f11ceb731c5'
|
2011-06-10 18:13:05 +00:00
|
|
|
|
2013-03-03 18:06:13 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2011-06-10 18:13:05 +00:00
|
|
|
depends_on 'boost'
|
|
|
|
depends_on 'lua'
|
2010-04-11 23:01:45 +00:00
|
|
|
|
|
|
|
def install
|
2013-03-12 19:43:00 +00:00
|
|
|
inreplace "src/makefile" do |s|
|
2012-03-13 18:15:49 +00:00
|
|
|
s.change_make_var! "CXX", ENV.cxx
|
2013-06-21 18:04:09 +00:00
|
|
|
s.gsub! /lua5.1/, "lua"
|
2012-03-13 18:15:49 +00:00
|
|
|
end
|
|
|
|
|
2011-08-17 00:39:20 +00:00
|
|
|
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"
|
2010-04-11 23:01:45 +00:00
|
|
|
end
|
|
|
|
end
|