2011-03-10 05:11:03 +00:00
|
|
|
class A2ps < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Any-to-PostScript filter"
|
2015-07-10 20:54:51 +00:00
|
|
|
homepage "https://www.gnu.org/software/a2ps/"
|
2014-12-31 08:30:40 +00:00
|
|
|
url "http://ftpmirror.gnu.org/a2ps/a2ps-4.14.tar.gz"
|
2015-07-16 03:35:54 +00:00
|
|
|
mirror "https://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz"
|
|
|
|
sha256 "f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4"
|
2010-08-20 15:40:38 +00:00
|
|
|
|
2014-12-31 08:44:04 +00:00
|
|
|
bottle do
|
2015-07-16 04:50:59 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "6129f040daef1e8b85903cf7d8441381229223070832ed914faf11fc5f819a11" => :yosemite
|
|
|
|
sha256 "51c3ad31ff624b50d71e146cef6da8266dbc73a771c2773016b1199211f71b72" => :mavericks
|
|
|
|
sha256 "465f3dca5424aea3d042f759809f59efc6e9605d6fd9dec3e880d0924713574a" => :mountain_lion
|
2014-12-31 08:44:04 +00:00
|
|
|
end
|
|
|
|
|
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
|
2015-07-16 03:35:54 +00:00
|
|
|
# https://trac.macports.org/ticket/18255
|
2014-03-14 15:03:23 +00:00
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/56498/trunk/dports/print/a2ps/files/patch-contrib_sample_Makefile.in"
|
2015-07-16 03:35:54 +00:00
|
|
|
sha256 "5a34c101feb00cf52199a28b1ea1bca83608cf0a1cb123e6af2d3d8992c6011f"
|
2014-03-14 15:03:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/56498/trunk/dports/print/a2ps/files/patch-lib__xstrrpl.c"
|
2015-07-16 03:35:54 +00:00
|
|
|
sha256 "89fa3c95c329ec326e2e76493471a7a974c673792725059ef121e6f9efb05bf4"
|
2010-08-20 15:40:38 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2014-12-31 08:30:40 +00:00
|
|
|
system "make", "install"
|
2010-08-20 15:40:38 +00:00
|
|
|
end
|
2014-12-31 08:32:55 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.txt").write("Hello World!\n")
|
|
|
|
system "#{bin}/a2ps", "test.txt", "-o", "test.ps"
|
|
|
|
assert File.read("test.ps").start_with?("")
|
|
|
|
end
|
2010-08-20 15:40:38 +00:00
|
|
|
end
|