From 9bfcfa557c5b45c42c2f8480ae1348a589ee6763 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Mon, 1 Jul 2013 15:34:20 -0500 Subject: [PATCH] libstfl: Don't build against ruby 2.0+ Fixes mistydemeo/tigerbrew#83. --- Formula/libstfl.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Formula/libstfl.rb b/Formula/libstfl.rb index 081d394aa6..b543f40391 100644 --- a/Formula/libstfl.rb +++ b/Formula/libstfl.rb @@ -15,6 +15,16 @@ class Libstfl < Formula args << "FOUND_RUBY = 0" unless MacOS::CLT.installed? # Ruby does not build on Xcode only. Help us fix this! + # See https://github.com/mistydemeo/tigerbrew/issues/83 + `ruby --version` =~ /ruby (\d\.\d).\d/ + if $1.to_f > 1.9 + opoo <<-EOS.undent + libstfl currently cannot be built against Ruby 2.0. + Ruby bindings will not be built. + EOS + args << "FOUND_RUBY=0" + end + if build.with? 'python' # Install into the site-packages in the Cellar (so uninstall works) inreplace 'python/Makefile.snippet' do |s|