From 3126dc96e4664aacc3bcb40261a73407fbed155c Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 23 Feb 2015 22:23:06 +0000 Subject: [PATCH] add a formula for nip2, the libvips GUI nip2 as a homebrew formula see http://www.vips.ecs.soton.ac.uk/index.php?title=Nip2 for background on nip2 see https://github.com/jcupitt/nip2/issues/48 for users asking for this to be available via homebrew --- nip2.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 nip2.rb diff --git a/nip2.rb b/nip2.rb new file mode 100644 index 0000000000..170ae14795 --- /dev/null +++ b/nip2.rb @@ -0,0 +1,28 @@ +require "formula" + +class Nip2 < Formula + homepage "http://www.vips.ecs.soton.ac.uk/" + url "http://www.vips.ecs.soton.ac.uk/supported/7.42/nip2-7.42.1.tar.gz" + sha1 "46e48e003621c5c63a5bf0e126f7ace0c0b54746" + + depends_on "pkg-config" => :build + depends_on "gtk+" + depends_on "libxml2" + depends_on "vips" + + depends_on "fftw" => :recommended + depends_on "gsl" => :recommended + depends_on "goffice" => :recommended + depends_on "libgsf" => :recommended + + def install + args = %W[ + --disable-dependency-tracking + --prefix=#{prefix} + ] + + system "./configure", *args + system "make", "check" if build.with? "check" + system "make", "install" + end +end