vips: remove options

This commit is contained in:
FX Coudert 2018-12-23 23:10:48 +01:00
parent 2472ae4fe5
commit df1d6a450c

View file

@ -3,6 +3,7 @@ class Vips < Formula
homepage "https://github.com/libvips/libvips"
url "https://github.com/libvips/libvips/releases/download/v8.7.2/vips-8.7.2.tar.gz"
sha256 "66c8d1f1db1d0934091e101abe8b3de552f45fb03d120dc10aa15450058d4baa"
revision 1
bottle do
sha256 "da18d5cf5f5df9e8de4a2c966aedb4eedb4825d3d1bf3530562785cf21c5c95e" => :mojave
@ -12,10 +13,12 @@ class Vips < Formula
depends_on "gobject-introspection" => :build
depends_on "pkg-config" => :build
depends_on "fftw"
depends_on "fontconfig"
depends_on "gettext"
depends_on "giflib"
depends_on "glib"
depends_on "graphicsmagick"
depends_on "jpeg"
depends_on "libexif"
depends_on "libgsf"
@ -23,32 +26,21 @@ class Vips < Formula
depends_on "librsvg"
depends_on "libtiff"
depends_on "little-cms2"
depends_on "openexr"
depends_on "openslide"
depends_on "orc"
depends_on "pango"
depends_on "poppler"
depends_on "webp"
depends_on "fftw" => :recommended
depends_on "graphicsmagick" => :recommended
depends_on "poppler" => :recommended
depends_on "imagemagick" => :optional
depends_on "openexr" => :optional
depends_on "openslide" => :optional
if build.with?("graphicsmagick") && build.with?("imagemagick")
odie "vips: --with-imagemagick requires --without-graphicsmagick"
end
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--with-magick
--with-magickpackage=GraphicsMagick
]
if build.with? "graphicsmagick"
args << "--with-magick" << "--with-magickpackage=GraphicsMagick"
elsif build.with? "imagemagick"
args << "--with-magick"
end
system "./configure", *args
system "make", "install"
end