aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/wxmac.rb
diff options
context:
space:
mode:
authorJack Nagel2013-01-19 20:45:59 -0600
committerJack Nagel2013-01-21 17:36:34 -0600
commit3ad7174f7d3cad94a67338b404fdc220fd2f2e8e (patch)
tree1ad337f60b86a951544ffce6e1b9fa2d8eb0e707 /Library/Formula/wxmac.rb
parentb48e89cbb2a14a935626c64f5e19044bc2b08d85 (diff)
downloadhomebrew-3ad7174f7d3cad94a67338b404fdc220fd2f2e8e.tar.bz2
Use new requirement syntax
Diffstat (limited to 'Library/Formula/wxmac.rb')
-rw-r--r--Library/Formula/wxmac.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/Library/Formula/wxmac.rb b/Library/Formula/wxmac.rb
index 09af04e83..78cb2c075 100644
--- a/Library/Formula/wxmac.rb
+++ b/Library/Formula/wxmac.rb
@@ -2,15 +2,16 @@ require 'formula'
class FrameworkPython < Requirement
fatal true
+ env :userpaths
- def message; <<-EOS.undent
- Python needs to be built as a framework.
- EOS
- end
- def satisfied?
+ satisfy do
q = `python -c "import distutils.sysconfig as c; print(c.get_config_var('PYTHONFRAMEWORK'))"`
not q.chomp.empty?
end
+
+ def message
+ "Python needs to be built as a framework."
+ end
end
class Wxmac < Formula