diff options
| author | Misty De Meo | 2013-07-01 15:34:20 -0500 |
|---|---|---|
| committer | Misty De Meo | 2013-07-01 15:35:13 -0500 |
| commit | 2e2e6323eba9cedf3070b6b193e0bbdd364f3827 (patch) | |
| tree | a9d10cb695a5654cd4ca038aba236a7368fdd7c3 /Library | |
| parent | fddd353a613ab36955e836fedc2042d1460d2de7 (diff) | |
| download | homebrew-2e2e6323eba9cedf3070b6b193e0bbdd364f3827.tar.bz2 | |
libstfl: Don't build against ruby 2.0+
Fixes mistydemeo/tigerbrew#83.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libstfl.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/libstfl.rb b/Library/Formula/libstfl.rb index 081d394aa..b543f4039 100644 --- a/Library/Formula/libstfl.rb +++ b/Library/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| |
