homebrew-core/Formula/vips.rb
2017-07-18 13:04:33 +01:00

59 lines
1.7 KiB
Ruby

class Vips < Formula
desc "Image processing library"
homepage "https://github.com/jcupitt/libvips"
url "https://github.com/jcupitt/libvips/releases/download/v8.5.6/vips-8.5.6.tar.gz"
sha256 "19a77ab200eb0ddfcd8babab130fe43c7730880d1f1fdfbdd8def519af32c4b8"
revision 1
bottle do
sha256 "e291227ecd67f990f277a5757530fef478954e3d1d6bee105d39001911dae321" => :sierra
sha256 "0ce5e0440b2cbb1bea8bcf658b808e5cd046e4f6af090467e622b7be8a0926b6" => :el_capitan
sha256 "585830c789328ffe020352fc72f008704a8bcc15881a7c4d6f44bd2beffc52be" => :yosemite
end
depends_on "pkg-config" => :build
depends_on "fftw"
depends_on "fontconfig"
depends_on "gettext"
depends_on "giflib"
depends_on "glib"
depends_on "gobject-introspection"
depends_on "jpeg"
depends_on "libexif"
depends_on "libgsf"
depends_on "libpng"
depends_on "librsvg"
depends_on "libtiff"
depends_on "little-cms2"
depends_on "orc"
depends_on "pango"
depends_on "poppler"
depends_on "pygobject3"
depends_on "graphicsmagick" => :optional
depends_on "imagemagick" => :optional
depends_on "jpeg-turbo" => :optional
depends_on "mozjpeg" => :optional
depends_on "openexr" => :optional
depends_on "openslide" => :optional
depends_on "webp" => :optional
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
]
if build.with? "graphicsmagick"
args << "--with-magick" << "--with-magickpackage=GraphicsMagick"
end
system "./configure", *args
system "make", "install"
end
test do
system "#{bin}/vips", "-l"
cmd = "#{bin}/vipsheader -f width #{test_fixtures("test.png")}"
assert_equal "8", shell_output(cmd).chomp
end
end