blob: 3b29a7584f6d2b387e47f610c051373d0c9763e3 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 | 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
 |