aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-05-01 21:09:07 +0100
committerMike McQuaid2014-05-06 19:34:03 +0100
commit3b4db8aff88ef701df8b4d43c9c6551b4b662e59 (patch)
tree06238493be0e18a9a2275a6e4ac0e7359bb047fc /Library/Formula
parent8a34379d212b4c33b5f05195529b6eda03fc58b2 (diff)
downloadhomebrew-3b4db8aff88ef701df8b4d43c9c6551b4b662e59.tar.bz2
namebench: don't depend on :python.
Use the system Python instead.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/namebench.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/namebench.rb b/Library/Formula/namebench.rb
index 80e241fa9..7cb793afc 100644
--- a/Library/Formula/namebench.rb
+++ b/Library/Formula/namebench.rb
@@ -5,16 +5,16 @@ class Namebench < Formula
url 'https://namebench.googlecode.com/files/namebench-1.3.1-source.tgz'
sha1 '2e6ca5a4f20512cb967c5ac43b023cc38c271131'
- depends_on :python
-
option 'no-third-party', 'Do not install bundled third-party modules'
def install
+ ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
ENV['NO_THIRD_PARTY']='1' if build.include?('no-third-party')
system "python", "setup.py", "install", "--prefix=#{prefix}",
"--install-data=#{lib}/python2.7/site-packages"
- bin.install bin/'namebench.py' => 'namebench'
+ bin.install "namebench.py" => "namebench"
+ bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
end
end