aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-01-10 20:10:32 -0800
committerAdam Vandenberg2012-01-10 20:10:32 -0800
commit3abd7d4ee649b444faf0c156f4b7cdbea9850287 (patch)
treeec111a941ab5cfbe9883436b7db878fd63e2934d /Library/Formula/python.rb
parenta3ae93e3931c4855776c3260eb916db837a77dc4 (diff)
downloadhomebrew-3abd7d4ee649b444faf0c156f4b7cdbea9850287.tar.bz2
Python: always remove HAVE_POLL
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index 743e60b0c..38ca7ad2e 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -26,8 +26,7 @@ class Python < Formula
[
["--framework", "Do a 'Framework' build instead of a UNIX-style build."],
["--universal", "Build for both 32 & 64 bit Intel."],
- ["--static", "Build static libraries."],
- ["--no-poll", "Remove HAVE_POLL.* options from build."]
+ ["--static", "Build static libraries."]
]
end
@@ -64,9 +63,9 @@ class Python < Formula
system "./configure", *args
- if ARGV.include? '--no-poll'
- inreplace 'pyconfig.h', /.*?(HAVE_POLL[_A-Z]*).*/, '#undef \1'
- end
+ # HAVE_POLL is "broken" on OS X
+ # See: http://trac.macports.org/ticket/18376
+ inreplace 'pyconfig.h', /.*?(HAVE_POLL[_A-Z]*).*/, '#undef \1'
system "make"
ENV.j1 # Installs must be serialized