homebrew-core/Formula/a2ps.rb

42 lines
1.6 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class A2ps < Formula
desc "Any-to-PostScript filter"
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"
2014-12-31 08:44:04 +00:00
bottle do
2015-10-08 20:21:36 +00:00
cellar :any_skip_relocation
revision 2
sha256 "95e6cd96cc753d9d632ac8aa1b9d5099d5507c5fb8fc085544803fd85a4bd7c8" => :el_capitan
sha256 "c89521bb6b3df6a8277564f264006bde650b7d214b288f4805da856a76ec3b69" => :yosemite
sha256 "d10db3452567e6d4a6be65f15728c40b4a62bcc374e04ff7f5d3608c294c74f4" => :mavericks
2014-12-31 08:44:04 +00:00
end
# Software was last updated in 2007.
2012-02-09 04:44:43 +00:00
# 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://raw.githubusercontent.com/Homebrew/patches/0ae366e6/a2ps/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://raw.githubusercontent.com/Homebrew/patches/0ae366e6/a2ps/patch-lib__xstrrpl.c"
2015-07-16 03:35:54 +00:00
sha256 "89fa3c95c329ec326e2e76493471a7a974c673792725059ef121e6f9efb05bf4"
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
2015-10-08 19:15:21 +00:00
"--prefix=#{prefix}", "--sysconfdir=#{etc}",
"--with-lispdir=#{share}/emacs/site-lisp/#{name}"
2014-12-31 08:30:40 +00:00
system "make", "install"
end
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
end