From db5297e7265dd9620c22f4a3322ea96614304dc9 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 31 Jul 2013 08:45:20 -0700 Subject: [PATCH] cmu-sphinxbase: only disallow system Pythons that have PPC --- Formula/cmu-sphinxbase.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Formula/cmu-sphinxbase.rb b/Formula/cmu-sphinxbase.rb index ac172a32f6..d3127b1e9f 100644 --- a/Formula/cmu-sphinxbase.rb +++ b/Formula/cmu-sphinxbase.rb @@ -1,9 +1,11 @@ require 'formula' -class HomebrewedPython < Requirement +class NoPpcPython < Requirement fatal true - satisfy(:build_env => false) { Formula.factory('python').installed? } + satisfy(:build_env => false) do + !archs_for_command('python').ppc? + end def message; <<-EOS.undent Compiling against the system-provided Python will likely fail. @@ -22,7 +24,7 @@ class CmuSphinxbase < Formula depends_on 'pkg-config' => :build depends_on :python - depends_on HomebrewedPython + depends_on NoPpcPython depends_on 'libsndfile' => :optional depends_on 'libsamplerate' => :optional