Python: always remove HAVE_POLL
This commit is contained in:
parent
3db6948074
commit
f81eae2a66
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue