2011-03-10 05:11:03 +00:00
|
|
|
class Highlight < Formula
|
2015-04-25 23:21:54 +00:00
|
|
|
homepage "http://www.andre-simon.de/doku/highlight/en/highlight.html"
|
|
|
|
url "http://www.andre-simon.de/zip/highlight-3.22.tar.bz2"
|
|
|
|
sha256 "4776ce4305e6f92d8a9faf5d0aeffd56f413ad57e55303e7a2a6357387ec056f"
|
|
|
|
|
|
|
|
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
|
|
|
|
sha256 "f530e34bbd1769fc6f434e65cbb7b81eef505d1508bfe24ca74277685407b6a3" => :yosemite
|
|
|
|
sha256 "8a9d9ecea3d0045dd4736859535cda66cb47cb1fc222b6244458350be62c2d39" => :mavericks
|
|
|
|
sha256 "81d3718fd0a1258a75d7ebce4ca36adb4ff0577e9c25dae5beae981dbdf61ade" => :mountain_lion
|
|
|
|
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
|