homebrew-core/Formula/source-highlight.rb
2016-12-28 08:52:13 -08:00

30 lines
1.1 KiB
Ruby

class SourceHighlight < Formula
desc "Source-code syntax highlighter"
homepage "https://www.gnu.org/software/src-highlite/"
url "https://ftpmirror.gnu.org/src-highlite/source-highlight-3.1.8.tar.gz"
mirror "https://ftp.gnu.org/gnu/src-highlite/source-highlight-3.1.8.tar.gz"
mirror "http://mirror.anl.gov/pub/gnu/src-highlite/source-highlight-3.1.8.tar.gz"
sha256 "01336a7ea1d1ccc374201f7b81ffa94d0aecb33afc7d6903ebf9fbf33a55ada3"
revision 4
bottle do
sha256 "99041869797cbf5abc97ca931612aa9d6e5da412de9c9c10f4434331ad73a23b" => :sierra
sha256 "6d6a839197b5c952c4a427bf7c952f5d145082acc6c67be985eb9add39103d9c" => :el_capitan
sha256 "0742b7c8388d074507f2aec1f8fd8d69f83e6beb46b874327f624192a8fbfc4e" => :yosemite
end
depends_on "boost"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-boost=#{HOMEBREW_PREFIX}"
system "make", "install"
bash_completion.install "completion/source-highlight"
end
test do
assert_match /GNU Source-highlight #{version}/, shell_output("#{bin}/source-highlight -V")
end
end