diff options
| author | Tim D. Smith | 2014-11-02 09:08:31 -0800 |
|---|---|---|
| committer | Tim D. Smith | 2014-11-02 10:02:32 -0800 |
| commit | a6c08fead91744e9af9b7735e186680340480612 (patch) | |
| tree | 73462a46e474e02d2c1938540a2e5fbe3296953a | |
| parent | 48aa2b3d294f7e2e5a672ad69e860cca7ce6dcc9 (diff) | |
| download | homebrew-a6c08fead91744e9af9b7735e186680340480612.tar.bz2 | |
little-cms: install Python bindings inside prefix
Closes #33827.
| -rw-r--r-- | Library/Formula/little-cms.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Formula/little-cms.rb b/Library/Formula/little-cms.rb index e38120f87..ce82fd0ca 100644 --- a/Library/Formula/little-cms.rb +++ b/Library/Formula/little-cms.rb @@ -22,11 +22,18 @@ class LittleCms < Formula def install ENV.universal_binary if build.universal? args = %W{--disable-dependency-tracking --disable-debug --prefix=#{prefix}} - args << "--with-python" if build.with? "python" args << "--without-tiff" if build.without? "libtiff" args << "--without-jpeg" if build.without? "jpeg" + if build.with? "python" + args << "--with-python" + inreplace "python/Makefile.in" do |s| + s.change_make_var! "pkgdir", lib/"python2.7/site-packages" + end + end system "./configure", *args - system "make install" + system "make" + ENV.deparallelize + system "make", "install" end end |
