diff options
| author | Alex Dunn | 2015-04-25 16:21:54 -0700 |
|---|---|---|
| committer | Xu Cheng | 2015-04-26 18:06:12 +0800 |
| commit | f816744d08cb2413e32486fd85040ea108e33d86 (patch) | |
| tree | f6bad895347584c96014100b2b80021152021ae2 | |
| parent | 916b297467c4dada91917ab20dfc0ddcea909cf2 (diff) | |
| download | homebrew-f816744d08cb2413e32486fd85040ea108e33d86.tar.bz2 | |
highlight 3.22
Closes #39064.
Signed-off-by: Xu Cheng <xucheng@me.com>
| -rw-r--r-- | Library/Formula/highlight.rb | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/Library/Formula/highlight.rb b/Library/Formula/highlight.rb index 8ca4c0b55..ca82fcfd7 100644 --- a/Library/Formula/highlight.rb +++ b/Library/Formula/highlight.rb @@ -1,18 +1,21 @@ -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.18.tar.bz2' - sha1 '985d0a3c707e3251fe50ffff66e11a8563777202' - revision 1 + 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/" - depends_on 'pkg-config' => :build - depends_on 'boost' - depends_on 'lua' + depends_on "pkg-config" => :build + depends_on "boost" + depends_on "lua" def install - conf_dir = etc+'highlight/' # highlight needs a final / for conf_dir + 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 + + test do + system bin/"highlight", doc/"examples/highlight_pipe.php" + end end |
