diff options
Diffstat (limited to 'devel/ruby-qtruby-kde4/files')
-rw-r--r-- | devel/ruby-qtruby-kde4/files/patch-src_qtruby.cpp | 13 | ||||
-rw-r--r-- | devel/ruby-qtruby-kde4/files/pkg-message.in | 10 | ||||
-rw-r--r-- | devel/ruby-qtruby-kde4/files/ruby-kdebindings-env.sh.in | 6 |
3 files changed, 29 insertions, 0 deletions
diff --git a/devel/ruby-qtruby-kde4/files/patch-src_qtruby.cpp b/devel/ruby-qtruby-kde4/files/patch-src_qtruby.cpp new file mode 100644 index 000000000000..7a8fbc24c112 --- /dev/null +++ b/devel/ruby-qtruby-kde4/files/patch-src_qtruby.cpp @@ -0,0 +1,13 @@ +Fix bogus pointer comparison. + +--- src/qtruby.cpp.orig 2017-01-18 20:21:44 UTC ++++ src/qtruby.cpp +@@ -2094,7 +2094,7 @@ isObject(VALUE /*self*/, VALUE obj) + { + void * ptr = 0; + ptr = value_to_ptr(obj); +- return (ptr > 0 ? Qtrue : Qfalse); ++ return (ptr ? Qtrue : Qfalse); + } + + static VALUE diff --git a/devel/ruby-qtruby-kde4/files/pkg-message.in b/devel/ruby-qtruby-kde4/files/pkg-message.in new file mode 100644 index 000000000000..859cd8da176a --- /dev/null +++ b/devel/ruby-qtruby-kde4/files/pkg-message.in @@ -0,0 +1,10 @@ +=========================================================== + +To use Ruby bindings outside KDE session set RUBYLIB +environment variable: + +RUBYLIB=%%RUBY_SITELIBDIR%%:%%RUBY_SITEARCHLIBDIR%% + +See "man 1 ruby" for details. + +=========================================================== diff --git a/devel/ruby-qtruby-kde4/files/ruby-kdebindings-env.sh.in b/devel/ruby-qtruby-kde4/files/ruby-kdebindings-env.sh.in new file mode 100644 index 000000000000..041908374ce9 --- /dev/null +++ b/devel/ruby-qtruby-kde4/files/ruby-kdebindings-env.sh.in @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ %%PREFIX%% != %%LOCALBASE%% ]; then +RUBYLIB=${RUBYLIB}:%%RUBY_SITELIBDIR%%:%%RUBY_SITEARCHLIBDIR%% +export RUBYLIB +fi |