diff options
| author | Adam Vandenberg | 2012-10-28 15:30:29 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-28 15:30:29 -0700 |
| commit | d5bcca0fef488b2b86c94fc3b3f7151e5f09af4b (patch) | |
| tree | 0efaf9fa1b97e1d9ff0db9ad40aadf558e2e67de /Library | |
| parent | eed64b7801e64067e1ecb4a84ccf218d739c46a2 (diff) | |
| download | homebrew-d5bcca0fef488b2b86c94fc3b3f7151e5f09af4b.tar.bz2 | |
little-cms: add option for Python bindings
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/little-cms.rb | 9 |
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 |
