homebrew-core/Formula/enscript.rb

31 lines
1.1 KiB
Ruby
Raw Normal View History

class Enscript < Formula
desc "Convert text to Postscript, HTML, or RTF, with syntax highlighting"
2015-07-16 03:58:11 +00:00
homepage "https://www.gnu.org/software/enscript/"
url "http://ftpmirror.gnu.org/enscript/enscript-1.6.6.tar.gz"
mirror "https://ftp.gnu.org/gnu/enscript/enscript-1.6.6.tar.gz"
sha256 "6d56bada6934d055b34b6c90399aa85975e66457ac5bf513427ae7fc77f5c0bb"
2015-07-16 03:58:11 +00:00
head "git://git.savannah.gnu.org/enscript.git"
2015-07-16 04:50:59 +00:00
bottle do
sha256 "614a397d67b4da4447da55f4051840b5e8da0162dea08b837d3c3a95ae144045" => :yosemite
sha256 "6e6aa80479d9aa46c91a8fe911d6495d71a0902879534f9af00225dbbb53b2cf" => :mavericks
sha256 "5949992b171a19ecf7dcc6c411a3e46a6e1aa023cbf5fd8eb0ee973f3595af5b" => :mountain_lion
end
keg_only :provided_pre_mountain_lion
2015-07-16 03:58:11 +00:00
depends_on "gettext"
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
2015-07-16 03:58:11 +00:00
system "make", "install"
end
2013-03-26 15:55:03 +00:00
test do
2014-05-04 19:12:41 +00:00
assert_match /GNU Enscript #{Regexp.escape(version)}/,
shell_output("#{bin}/enscript -V")
end
end