30 lines
1.1 KiB
Ruby
30 lines
1.1 KiB
Ruby
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.9.tar.gz"
|
|
mirror "https://ftpmirror.gnu.org/src-highlite/source-highlight-3.1.9.tar.gz"
|
|
sha256 "3a7fd28378cb5416f8de2c9e77196ec915145d44e30ff4e0ee8beb3fe6211c91"
|
|
revision 2
|
|
|
|
bottle do
|
|
sha256 "a53d8ff1e0e9631023af43429e7702319951a0cdecfdc186f59807ed94b69fc7" => :catalina
|
|
sha256 "1b6058fe3438ef1eaed5f9fd7d84c2e99a82f5dde673201b5987846734f425cd" => :mojave
|
|
sha256 "f54f7d667efc1887b15d0d9b0bc6cc144470a3f1030daadcdb7ff1caac1ba457" => :high_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
|