30 lines
933 B
Ruby
30 lines
933 B
Ruby
class Pstoedit < Formula
|
|
homepage "http://www.pstoedit.net"
|
|
url "https://downloads.sourceforge.net/project/pstoedit/pstoedit/3.62/pstoedit-3.62.tar.gz"
|
|
sha1 "50d5a4e2fe0e0ff2f73cb094cb945b221083e742"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha1 "8902704bd6cbab0420841567f3cf1b757a9834d3" => :yosemite
|
|
sha1 "d2570f42837b74d5d66adbb4e37a21aa173a1358" => :mavericks
|
|
sha1 "c5798893fd335eca00027a6f421ea8bf02f8a560" => :mountain_lion
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "plotutils"
|
|
depends_on "ghostscript"
|
|
depends_on "imagemagick"
|
|
depends_on "xz" if MacOS.version < :mavericks
|
|
|
|
def install
|
|
ENV.deparallelize
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"pstoedit", "-f", "pdf", test_fixtures("test.ps"), "test.pdf"
|
|
assert File.exist?("test.pdf")
|
|
end
|
|
end
|