From d5bcca0fef488b2b86c94fc3b3f7151e5f09af4b Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 28 Oct 2012 15:30:29 -0700 Subject: little-cms: add option for Python bindings --- Library/Formula/little-cms.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/little-cms.rb b/Library/Formula/little-cms.rb index c0e272583..fdf565f26 100644 --- a/Library/Formula/little-cms.rb +++ b/Library/Formula/little-cms.rb @@ -1,15 +1,20 @@ require 'formula' class LittleCms < Formula - url 'http://sourceforge.net/projects/lcms/files/lcms/1.19/lcms-1.19.tar.gz' homepage 'http://www.littlecms.com/' + url 'http://sourceforge.net/projects/lcms/files/lcms/1.19/lcms-1.19.tar.gz' sha1 'd5b075ccffc0068015f74f78e4bc39138bcfe2d4' + option 'with-python', "Build Python bindings" + depends_on 'jpeg' => :optional depends_on 'libtiff' => :optional def install - system "./configure", "--prefix=#{prefix}", "--disable-debug" + args = ["--disable-debug", "--prefix=#{prefix}"] + args << "--with-python" if build.include? "with-python" + + system "./configure", *args system "make install" end end -- cgit v1.2.3