aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libmagic.rb
diff options
context:
space:
mode:
authorTim D. Smith2015-01-11 19:03:35 -0800
committerTim D. Smith2015-01-12 10:59:56 -0800
commit946b51f503cdd4d68a045961205e7c78118e4faa (patch)
tree2bbcbf7d0521b5622f1bb231d37356ddb0143ab0 /Library/Formula/libmagic.rb
parentf149ae2ad72f477977fd06e3229315435ea33e57 (diff)
downloadhomebrew-946b51f503cdd4d68a045961205e7c78118e4faa.tar.bz2
libmagic: clean up python
The python bits were accidentally always built starting from 82b9bac. This makes them responsive to --with-python once more and sanitizes arguments to setup.py. Closes #35762.
Diffstat (limited to 'Library/Formula/libmagic.rb')
-rw-r--r--Library/Formula/libmagic.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/libmagic.rb b/Library/Formula/libmagic.rb
index a195e6500..db7ba0aab 100644
--- a/Library/Formula/libmagic.rb
+++ b/Library/Formula/libmagic.rb
@@ -26,8 +26,10 @@ class Libmagic < Formula
"--enable-fsect-man5"
system "make", "install"
- cd "python" do
- system "python", "setup.py", "install", "--prefix=#{prefix}"
+ if build.with? "python"
+ cd "python" do
+ system "python", *Language::Python.setup_install_args(prefix)
+ end
end
# Don't dupe this system utility