aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/epstool.rb
blob: 46efec61e5f32fbae40234aaf66d9952ba4cf68f (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
class Epstool < Formula
  homepage "http://pages.cs.wisc.edu/~ghost/gsview/epstool.htm"
  url "http://pkgs.fedoraproject.org/repo/pkgs/epstool/epstool-3.08.tar.gz/465a57a598dbef411f4ecbfbd7d4c8d7/epstool-3.08.tar.gz"
  mirror "https://raw.githubusercontent.com/DomT4/LibreMirror/master/Epstool/epstool-3.08.tar.gz"
  sha1 "dc495934f06d3ea8b3209e8b02ea96c66c34f614"

  bottle do
    cellar :any
    sha1 "72c9a1b0dcc2fba03d6ca3f798b511c32129f346" => :yosemite
    sha1 "51ac90156f7dd505f717661814f72519657d6454" => :mavericks
    sha1 "2ea650f6125f4325ffb74ebe9396f91de9785980" => :mountain_lion
  end

  depends_on "ghostscript"

  def install
    system "make", "install",
                   "EPSTOOL_ROOT=#{prefix}",
                   "EPSTOOL_MANDIR=#{man}",
                   "CC=#{ENV.cc}"
  end

  test do
    system bin/"epstool", "--add-tiff-preview", "--device", "tiffg3", test_fixtures("test.eps"), "test2.eps"
    assert File.exist?("test2.eps")
  end
end