2011-03-10 05:11:03 +00:00
|
|
|
class Highlight < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Convert source code to formatted text with syntax highlighting"
|
2015-04-25 23:21:54 +00:00
|
|
|
homepage "http://www.andre-simon.de/doku/highlight/en/highlight.html"
|
2015-09-06 12:32:37 +00:00
|
|
|
url "http://www.andre-simon.de/zip/highlight-3.23.tar.bz2"
|
|
|
|
sha256 "bcc7a4e12aa8fc20cc4bf0bd550992f41f0c22f9e81bb0cd1f58abea8ce272b1"
|
2015-04-25 23:21:54 +00:00
|
|
|
|
|
|
|
head "svn://svn.code.sf.net/p/syntaxhighlight/code/highlight/"
|
2011-06-10 18:13:05 +00:00
|
|
|
|
2015-04-26 06:23:00 +00:00
|
|
|
bottle do
|
2015-09-23 12:10:38 +00:00
|
|
|
sha256 "3e0df3d12050c94269d8e4be68e411acd753f74e56eb0ccc6b7866e8f4d0a21d" => :el_capitan
|
2015-09-06 16:10:30 +00:00
|
|
|
sha256 "a00e8653281375665d4a39ed9e4e1fdc30fb1d64f3d7f09992fb258e0de2859f" => :yosemite
|
|
|
|
sha256 "7d5297d4b5978e9055ee552d73561d2441456c1a7b263107504e48d77150ecf4" => :mavericks
|
|
|
|
sha256 "855e131bf67b5f67be9907cde35a69e40d16a8fa6b714a0e36e8da77475ef296" => :mountain_lion
|
2015-04-26 06:23:00 +00:00
|
|
|
end
|
|
|
|
|
2015-04-25 23:21:54 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "boost"
|
|
|
|
depends_on "lua"
|
2010-04-11 23:01:45 +00:00
|
|
|
|
|
|
|
def install
|
2015-04-25 23:21:54 +00:00
|
|
|
conf_dir = etc/"highlight/" # highlight needs a final / for conf_dir
|
2011-08-17 00:39:20 +00:00
|
|
|
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
|
2015-04-25 23:21:54 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"highlight", doc/"examples/highlight_pipe.php"
|
|
|
|
end
|
2010-04-11 23:01:45 +00:00
|
|
|
end
|