diff options
| author | Tim D. Smith | 2015-01-11 19:03:35 -0800 |
|---|---|---|
| committer | Tim D. Smith | 2015-01-12 10:59:56 -0800 |
| commit | 946b51f503cdd4d68a045961205e7c78118e4faa (patch) | |
| tree | 2bbcbf7d0521b5622f1bb231d37356ddb0143ab0 /Library/Formula/libmagic.rb | |
| parent | f149ae2ad72f477977fd06e3229315435ea33e57 (diff) | |
| download | homebrew-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.rb | 6 |
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 |
