class SourceHighlight < Formula desc "Source-code syntax highlighter" homepage "https://www.gnu.org/software/src-highlite/" url "https://ftp.gnu.org/gnu/src-highlite/source-highlight-3.1.8.tar.gz" mirror "https://ftpmirror.gnu.org/src-highlite/source-highlight-3.1.8.tar.gz" mirror "https://fossies.org/linux/www/source-highlight-3.1.8.tar.gz" sha256 "01336a7ea1d1ccc374201f7b81ffa94d0aecb33afc7d6903ebf9fbf33a55ada3" revision 11 bottle do sha256 "bc37636a5b31f9abe79cc0170c99e895f42c3bf06e29776208f83eb838bf3c9c" => :mojave sha256 "4d941b71cab4542d36c34d66f3d444028053083a00e8726229d556b58de0aa7d" => :high_sierra sha256 "96026ed6dc4ef266c0ea160bb3d3cbd5d799179ab13a7e5addb406f5225e843c" => :sierra end depends_on "boost" def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-boost=#{Formula["boost"].opt_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