homebrew-core/Formula/enscript.rb

26 lines
692 B
Ruby
Raw Normal View History

require 'formula'
class Enscript < Formula
homepage 'http://www.gnu.org/software/enscript/'
url 'http://ftpmirror.gnu.org/enscript/enscript-1.6.6.tar.gz'
mirror 'http://ftp.gnu.org/gnu/enscript/enscript-1.6.6.tar.gz'
sha1 '1f1e97a2ebb3d77f48c57487fe39e64139fb2beb'
head 'git://git.savannah.gnu.org/enscript.git'
keg_only :provided_pre_mountain_lion
depends_on 'gettext'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
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