aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-01-04 13:13:01 +0000
committerMike McQuaid2014-01-04 13:35:45 +0000
commitef6dde7526a3129a3a4d8d45790ee6b900d206d4 (patch)
treed0003f29b7f24059cba66acde93fad812f959dfc /Library/Formula
parent9f90747f35c48dca92a58583f4556081917064ea (diff)
downloadhomebrew-ef6dde7526a3129a3a4d8d45790ee6b900d206d4.tar.bz2
protobuf: cleanup python usage.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/protobuf.rb17
1 files changed, 7 insertions, 10 deletions
diff --git a/Library/Formula/protobuf.rb b/Library/Formula/protobuf.rb
index bd49789a5..005a35da3 100644
--- a/Library/Formula/protobuf.rb
+++ b/Library/Formula/protobuf.rb
@@ -32,15 +32,13 @@ class Protobuf < Formula
doc.install %w( editors examples )
if build.with? 'python'
- python do
- chdir 'python' do
- ENV['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'cpp'
- ENV.append_to_cflags "-I#{include}"
- ENV.append_to_cflags "-L#{lib}"
- system python, 'setup.py', 'build'
- system python, 'setup.py', 'install', "--prefix=#{prefix}",
- '--single-version-externally-managed', '--record=installed.txt'
- end
+ chdir 'python' do
+ ENV['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'cpp'
+ ENV.append_to_cflags "-I#{include}"
+ ENV.append_to_cflags "-L#{lib}"
+ system 'python', 'setup.py', 'build'
+ system 'python', 'setup.py', 'install', "--prefix=#{prefix}",
+ '--single-version-externally-managed', '--record=installed.txt'
end
end
end
@@ -48,7 +46,6 @@ class Protobuf < Formula
def caveats; <<-EOS.undent
Editor support and examples have been installed to:
#{doc}
- #{python.standard_caveats if build.with? 'python'}
EOS
end
end