homebrew-core/Formula/inkscape.rb
Jack Nagel ec11577107 Switch compilers when no build is specified
Given the current state of OS X compilers, the original fails_with
behavior is becoming less useful, mostly resulting in build failures
each time the compiler is updated. So make the following changes:

When a build is specified, we retain the old behavior: switch compilers
if the available compiler is <= the build, don't switch if it is > the
build.

When no build is specified, unconditionally switch compilers, and don't
output the advice message. This allows us to mark formulae as
perpetually failing, avoiding the need to update formulae each time a
new compiler build is made available.

As a bonus, this makes the logic much easier to reason about.

Closes Homebrew/homebrew#18175.
2013-03-12 13:55:15 -05:00

36 lines
896 B
Ruby

require 'formula'
class Inkscape < Formula
homepage 'http://inkscape.org/'
url 'http://downloads.sourceforge.net/project/inkscape/inkscape/0.48.4/inkscape-0.48.4.tar.gz'
sha1 'ce453cc9aff56c81d3b716020cd8cc7fa1531da0'
depends_on 'pkg-config' => :build
depends_on 'intltool' => :build
depends_on 'boost-build' => :build
depends_on 'gettext'
depends_on 'bdw-gc'
depends_on 'glibmm'
depends_on 'gtkmm'
depends_on 'gsl'
depends_on 'boost'
depends_on 'popt'
depends_on 'little-cms'
depends_on 'cairomm'
depends_on 'pango'
depends_on :x11
fails_with :clang
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-lcms",
"--disable-poppler-cairo"
system "make install"
end
def test
system "#{bin}/inkscape", "-V"
end
end