aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
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