homebrew-core/Formula/enscript.rb
Jack Nagel e282aadb5b Deprecate MacOS.version? style methods
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 11:25:59 -05:00

24 lines
679 B
Ruby

require 'formula'
class Enscript < Formula
homepage 'http://www.gnu.org/software/enscript/'
url 'http://ftpmirror.gnu.org/enscript/enscript-1.6.5.2.tar.gz'
mirror 'http://ftp.gnu.org/gnu/enscript/enscript-1.6.5.2.tar.gz'
sha1 'b6d08e72e8e75e7c8a72c75a55c8de3bdebcf22c'
head 'git://git.savannah.gnu.org/enscript.git'
keg_only :provided_by_osx unless MacOS.version >= :mountain_lion
depends_on 'gettext'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
def test
system "#{bin}/enscript -V | grep 'GNU Enscript #{version}'"
end
end