From 8985a8ae0290b9766313d8dff71aa05ddc8b98dd Mon Sep 17 00:00:00 2001 From: Max Brazhnikov Date: Thu, 7 Jul 2011 18:01:44 +0000 Subject: [PATCH] KrossRuby can't be built with Ruby 1.9 Submitted by: swills --- devel/kdebindings4-ruby/Makefile | 12 +++++++++++- devel/kdebindings4-ruby/pkg-plist | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/devel/kdebindings4-ruby/Makefile b/devel/kdebindings4-ruby/Makefile index 840ba29ea45d..c78b2d4b7cfe 100644 --- a/devel/kdebindings4-ruby/Makefile +++ b/devel/kdebindings4-ruby/Makefile @@ -48,4 +48,14 @@ post-install: @${CAT} ${PKGMESSAGE} .include "${.CURDIR}/../../devel/kdebindings4/files/Makefile.kdebindings" -.include +.include + +#KrossRuby is broken with Ruby 1.9, see http://bugs.kde.org/243565 +.if ${RUBY_VER} == 1.9 +CMAKE_ARGS+= -DENABLE_KROSSRUBY=OFF +PLIST_SUB+= KROSS="@comment " +.else +PLIST_SUB+= KROSS="" +.endif + +.include diff --git a/devel/kdebindings4-ruby/pkg-plist b/devel/kdebindings4-ruby/pkg-plist index aa6af1227cb2..e67987a7613b 100644 --- a/devel/kdebindings4-ruby/pkg-plist +++ b/devel/kdebindings4-ruby/pkg-plist @@ -12,7 +12,7 @@ include/qtruby/marshall_primitives.h include/qtruby/marshall_types.h include/qtruby/qtruby.h include/qtruby/smokeruby.h -lib/kde4/krossruby.so +%%KROSS%%lib/kde4/krossruby.so lib/kde4/krubypluginfactory.so lib/libqtruby4shared.so lib/libqtruby4shared.so.2