aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim D. Smith2014-11-02 09:08:31 -0800
committerTim D. Smith2014-11-02 10:02:32 -0800
commita6c08fead91744e9af9b7735e186680340480612 (patch)
tree73462a46e474e02d2c1938540a2e5fbe3296953a
parent48aa2b3d294f7e2e5a672ad69e860cca7ce6dcc9 (diff)
downloadhomebrew-a6c08fead91744e9af9b7735e186680340480612.tar.bz2
little-cms: install Python bindings inside prefix
Closes #33827.
-rw-r--r--Library/Formula/little-cms.rb11
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