2012-08-11 08:48:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Enscript < Formula
|
|
|
|
homepage 'http://www.gnu.org/software/enscript/'
|
2012-10-18 04:10:18 +00:00
|
|
|
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'
|
2012-08-11 08:48:58 +00:00
|
|
|
|
|
|
|
head 'git://git.savannah.gnu.org/enscript.git'
|
|
|
|
|
2012-08-23 16:49:08 +00:00
|
|
|
keg_only :provided_pre_mountain_lion
|
2012-08-11 08:48:58 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
require 'open3'
|
|
|
|
Open3.popen3("#{bin}/enscript", "-V") do |_, stdout, _|
|
2013-06-09 02:26:19 +00:00
|
|
|
assert_match /GNU Enscript #{Regexp.escape(version)}/, stdout.read
|
2013-03-26 15:55:03 +00:00
|
|
|
end
|
2012-08-11 08:48:58 +00:00
|
|
|
end
|
|
|
|
end
|