2010-08-20 15:40:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class A2ps < Formula
|
2012-02-09 04:44:43 +00:00
|
|
|
homepage 'http://www.gnu.org/software/a2ps/'
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/a2ps/a2ps-4.14.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '365abbbe4b7128bf70dad16d06e23c5701874852'
|
2010-08-20 15:40:38 +00:00
|
|
|
|
2012-02-09 04:44:43 +00:00
|
|
|
# Software was last updated in 2007, so take MacPorts patches to get
|
|
|
|
# it working on 10.6. See:
|
|
|
|
# https://svn.macports.org/ticket/20867
|
|
|
|
# http://trac.macports.org/ticket/18255
|
2010-08-20 15:40:38 +00:00
|
|
|
def patches
|
2012-02-09 04:44:43 +00:00
|
|
|
{ :p0 => [
|
|
|
|
"https://svn.macports.org/export/56498/trunk/dports/print/a2ps/files/patch-contrib_sample_Makefile.in",
|
|
|
|
"https://svn.macports.org/export/56498/trunk/dports/print/a2ps/files/patch-lib__xstrrpl.c"
|
|
|
|
]}
|
2010-08-20 15:40:38 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|