homebrew-core/Formula/pdf2svg.rb
Jack Nagel b3785a7a6b pdf2svg: make sure cairo is installed before poppler
pdf2svg has:

  depends_on 'poppler' => 'with-glib'

poppler has:

  depends_on 'glib' => :optional
  depends_on 'cairo' if build.with? 'glib'

A clean "brew install pdf2svg" will fail due to the language-level
conditional used to define the cairo dependency.

Since we don't yet have a way to express this in the DSL, this patch
will have to do for now.

Fixes Homebrew/homebrew#26205, kinda.
2014-01-28 00:17:25 -06:00

20 lines
552 B
Ruby

require 'formula'
class Pdf2svg < Formula
homepage 'http://www.cityinthesky.co.uk/opensource/pdf2svg'
url 'http://www.cityinthesky.co.uk/wp-content/uploads/2013/10/pdf2svg-0.2.2.tar.gz'
sha1 'e8d3332565f40705fbad5bd4eda9a001e563da1b'
depends_on "pkg-config" => :build
depends_on :x11
depends_on "cairo"
depends_on "poppler" => "with-glib"
depends_on "gtk+"
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end