36 lines
1.2 KiB
Ruby
36 lines
1.2 KiB
Ruby
class Enscript < Formula
|
|
desc "Convert text to Postscript, HTML, or RTF, with syntax highlighting"
|
|
homepage "https://www.gnu.org/software/enscript/"
|
|
url "https://ftp.gnu.org/gnu/enscript/enscript-1.6.6.tar.gz"
|
|
mirror "https://ftpmirror.gnu.org/enscript/enscript-1.6.6.tar.gz"
|
|
sha256 "6d56bada6934d055b34b6c90399aa85975e66457ac5bf513427ae7fc77f5c0bb"
|
|
revision 1
|
|
head "https://git.savannah.gnu.org/git/enscript.git"
|
|
|
|
livecheck do
|
|
url :stable
|
|
end
|
|
|
|
bottle do
|
|
sha256 "3611a6a01c76502ae6d4b1ff13d802acc5b2a2a3f2cf647e6b9323b7e40bde7e" => :catalina
|
|
sha256 "a8bbba8f7d64eed40dd59a9db980b049ec786e148d31a0aeb92556959b4ad0b0" => :mojave
|
|
sha256 "00045dff3bdf7ac98a19236838d7af7101cc1fc002e55550312042bb2e4d7426" => :high_sierra
|
|
sha256 "c14fad6cfd67fa782beb7a425eb03c3ed0b8090ed751c37f5f5ec426808df25c" => :sierra
|
|
end
|
|
|
|
depends_on "gettext"
|
|
|
|
conflicts_with "cspice", because: "both install `states` binaries"
|
|
|
|
def install
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match /GNU Enscript #{Regexp.escape(version)}/,
|
|
shell_output("#{bin}/enscript -V")
|
|
end
|
|
end
|