31 lines
1.0 KiB
Ruby
31 lines
1.0 KiB
Ruby
class Pstoedit < Formula
|
|
desc "Convert PostScript and PDF files to editable vector graphics"
|
|
homepage "http://www.pstoedit.net/"
|
|
url "https://downloads.sourceforge.net/project/pstoedit/pstoedit/3.75/pstoedit-3.75.tar.gz"
|
|
sha256 "b7b5d8510b40a5b148f7751268712fcfd0c1ed2bb46f359f655b6fcdc53364cf"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
sha256 "f048d902c088f0625c0c9e18d84b159493775b40e742812b040e7b517900260a" => :catalina
|
|
sha256 "1f3ec91e58d95e08081694b43e031ed83f13a73cecff15c55c532268282b0ad1" => :mojave
|
|
sha256 "22710dd8997d40cec3492c40960a9966b80b386bdbd3fed46515c66bb25053d7" => :high_sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "ghostscript"
|
|
depends_on "imagemagick"
|
|
depends_on "plotutils"
|
|
|
|
def install
|
|
ENV.cxx11
|
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"pstoedit", "-f", "gs:pdfwrite", test_fixtures("test.ps"), "test.pdf"
|
|
assert_predicate testpath/"test.pdf", :exist?
|
|
end
|
|
end
|