pdf2svg: migrate back to core (from homebrew-x11)

Turns out `pdf2svg` no longer depends on GTK+ or X11 (and previously did
this only by mistake).

Closes Homebrew/homebrew#41065.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Martin Afanasjew 2015-06-25 10:13:50 +02:00 committed by Xu Cheng
parent 33dc8aa2e6
commit e0189945cb

29
Formula/pdf2svg.rb Normal file
View file

@ -0,0 +1,29 @@
class Pdf2svg < Formula
desc "PDF converter to SVG"
homepage "http://www.cityinthesky.co.uk/opensource/pdf2svg"
url "https://github.com/db9052/pdf2svg/archive/v0.2.3.tar.gz"
sha256 "4fb186070b3e7d33a51821e3307dce57300a062570d028feccd4e628d50dea8a"
bottle do
root_url "https://homebrew.bintray.com/bottles-x11"
cellar :any
sha256 "852f856ee819872e3369a9c9aac6f8596b2efa2a5b0489fdf75fa7b83d0f8249" => :yosemite
sha256 "048368bd4847a9ae310efcb699b0a22f6e2ef7072127187e5ba2b43430cd2566" => :mavericks
sha256 "d02bbc276dab02d3c6290f981ce7b91b9f3c271171d9fedfc0bff87e630c8fd5" => :mountain_lion
end
depends_on "pkg-config" => :build
depends_on "cairo"
depends_on "poppler"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
curl "-O", "http://partners.adobe.com/public/developer/en/xml/AdobeXMLFormsSamples.pdf"
system "#{bin}/pdf2svg", "AdobeXMLFormsSamples.pdf", "test.svg"
end
end