aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-10-28 15:30:29 -0700
committerAdam Vandenberg2012-10-28 15:30:29 -0700
commitd5bcca0fef488b2b86c94fc3b3f7151e5f09af4b (patch)
tree0efaf9fa1b97e1d9ff0db9ad40aadf558e2e67de /Library
parenteed64b7801e64067e1ecb4a84ccf218d739c46a2 (diff)
downloadhomebrew-d5bcca0fef488b2b86c94fc3b3f7151e5f09af4b.tar.bz2
little-cms: add option for Python bindings
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/little-cms.rb9
1 files changed, 7 insertions, 2 deletions
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