2012-05-16 10:10:31 +00:00
|
|
|
class Ps2eps < Formula
|
2015-03-21 07:49:47 +00:00
|
|
|
homepage "https://www.tm.uka.de/~bless/ps2eps"
|
|
|
|
url "https://www.tm.uka.de/~bless/ps2eps-1.68.tar.gz"
|
|
|
|
sha256 "b08f12eed88965d1891261fb70e87c7e3a3f3172ebc31bdb7994a7ce854dd925"
|
2012-05-16 10:10:31 +00:00
|
|
|
|
2015-03-21 08:32:58 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "99b3838d2a7135d8794e4f48e428bd8afc0f18db8998f071c74faa449591ad7f" => :yosemite
|
|
|
|
sha256 "01fbee92f6a8534a4618bb94b9d21913f203b42f7abe41023c7c2b2f68775880" => :mavericks
|
|
|
|
sha256 "4671a8ae732598cbf5c006b7cf6f9924455a8f61dcc660733e14104707974c27" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-03-21 07:49:47 +00:00
|
|
|
depends_on "ghostscript"
|
2012-05-16 10:10:31 +00:00
|
|
|
|
|
|
|
def install
|
2015-03-21 07:49:47 +00:00
|
|
|
system ENV.cc, "src/C/bbox.c", "-o", "bbox"
|
|
|
|
bin.install "bbox"
|
|
|
|
(libexec/"bin").install "bin/ps2eps"
|
|
|
|
(bin/"ps2eps").write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
|
|
|
perl -S #{libexec}/bin/ps2eps $*
|
|
|
|
EOS
|
2014-05-30 18:17:26 +00:00
|
|
|
share.install "doc/man"
|
|
|
|
doc.install "doc/pdf", "doc/html"
|
2012-05-16 10:10:31 +00:00
|
|
|
end
|
2015-03-21 07:49:47 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
cp test_fixtures("test.ps"), testpath/"test.ps"
|
|
|
|
system bin/"ps2eps", testpath/"test.ps"
|
|
|
|
assert (testpath/"test.eps").exist?
|
|
|
|
end
|
2012-05-16 10:10:31 +00:00
|
|
|
end
|