24 lines
651 B
Ruby
24 lines
651 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_pre_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
|