2012-08-11 08:48:58 +00:00
|
|
|
class Enscript < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
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"
|
2012-08-11 08:48:58 +00:00
|
|
|
|
2015-07-16 03:58:11 +00:00
|
|
|
head "git://git.savannah.gnu.org/enscript.git"
|
2012-08-11 08:48:58 +00:00
|
|
|
|
2015-07-16 04:50:59 +00:00
|
|
|
bottle do
|
2015-10-20 07:20:56 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "e55d3f93f7a4eb89d8007d9c0c49d6b7f52778191f2601da648afff0098a6663" => :el_capitan
|
|
|
|
sha256 "d1c1bfc90a9e140a3d257d976729fc9b6e55118a10364ce1e3dc3dd26388edc9" => :yosemite
|
|
|
|
sha256 "f2be9be9caeff58dbec3c9abf3ff5554865e6a3ee4db91d156edce8ddf5e666e" => :mavericks
|
2015-07-16 04:50:59 +00:00
|
|
|
end
|
|
|
|
|
2012-08-23 16:49:08 +00:00
|
|
|
keg_only :provided_pre_mountain_lion
|
2012-08-11 08:48:58 +00:00
|
|
|
|
2015-07-16 03:58:11 +00:00
|
|
|
depends_on "gettext"
|
2012-08-11 08:48:58 +00:00
|
|
|
|
2015-10-16 21:53:34 +00:00
|
|
|
conflicts_with "cspice", :because => "both install `states` binaries"
|
|
|
|
|
2012-08-11 08:48:58 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2015-07-16 03:58:11 +00:00
|
|
|
system "make", "install"
|
2012-08-11 08:48:58 +00:00
|
|
|
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")
|
2012-08-11 08:48:58 +00:00
|
|
|
end
|
|
|
|
end
|