enscript 1.6.5.2 GNU Enscript as per mxcl/homebrew#13668.

Closes Homebrew/homebrew#13989.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Simon Sigurdhsson 2012-08-11 09:48:58 +01:00 committed by Mike McQuaid
parent 2b2a9917d7
commit d0d976769b

24
Formula/enscript.rb Normal file
View file

@ -0,0 +1,24 @@
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 'Lion and below provide enscript' unless MacOS::mountain_lion_or_newer?
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