[arch-commits] Commit in kdebindings-korundum/trunk (2 files)

Pierre Schmitz pierre at archlinux.org
Fri Feb 24 14:26:54 EST 2012


    Date: Friday, February 24, 2012 @ 14:26:54
  Author: pierre
Revision: 151085

upgpkg: kdebindings-korundum 4.8.0-2

Fix building agaisnt ruby 1.9.3

Added:
  kdebindings-korundum/trunk/korundum-4.8.0-ruby19.patch
Modified:
  kdebindings-korundum/trunk/PKGBUILD

-----------------------------+
 PKGBUILD                    |   13 +++++++++----
 korundum-4.8.0-ruby19.patch |   30 ++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-24 19:01:50 UTC (rev 151084)
+++ PKGBUILD	2012-02-24 19:26:54 UTC (rev 151085)
@@ -3,7 +3,7 @@
 
 pkgname=kdebindings-korundum
 pkgver=4.8.0
-pkgrel=1
+pkgrel=2
 pkgdesc="KDE bindings for ruby"
 url="http://kde.org/"
 arch=('i686' 'x86_64')
@@ -13,11 +13,16 @@
 makedepends=('cmake' 'automoc4' 'kdebindings-smokegen' 'boost'
              'kdepimlibs' 'kdegraphics-okular' 'kdesdk-kate')
 conflicts=('kdebindings-ruby')
-source=("http://download.kde.org/stable/${pkgver}/src/korundum-${pkgver}.tar.bz2")
-sha1sums=('635ebd224ec2775e93ddf395c2e4d2ba838130df')
+options=('!makeflags')
+source=("http://download.kde.org/stable/${pkgver}/src/korundum-${pkgver}.tar.bz2"
+        'korundum-4.8.0-ruby19.patch')
+sha1sums=('635ebd224ec2775e93ddf395c2e4d2ba838130df'
+          '73299f56a891d8a5475ac07dd485619859312f70')
 
 build() {
-  cd "${srcdir}"
+  cd "${srcdir}/korundum-${pkgver}"
+  patch -p1 -i "${srcdir}/korundum-4.8.0-ruby19.patch"
+  cd ..
   mkdir build
   cd build
   cmake ../korundum-${pkgver} \

Added: korundum-4.8.0-ruby19.patch
===================================================================
--- korundum-4.8.0-ruby19.patch	                        (rev 0)
+++ korundum-4.8.0-ruby19.patch	2012-02-24 19:26:54 UTC (rev 151085)
@@ -0,0 +1,30 @@
+diff -up korundum-4.8.0/src/krubypluginfactory.cpp.ruby19 korundum-4.8.0/src/krubypluginfactory.cpp
+--- korundum-4.8.0/src/krubypluginfactory.cpp.ruby19	2011-07-27 13:37:29.000000000 -0500
++++ korundum-4.8.0/src/krubypluginfactory.cpp	2012-02-17 08:30:38.785635819 -0600
+@@ -39,7 +39,7 @@
+ extern "C" {
+ extern VALUE rb_load_path;
+ extern VALUE qt_internal_module;
+-void Init_prelude(void);
++// void Init_prelude(void);
+ }
+ 
+ //
+@@ -165,7 +165,7 @@ QObject *KRubyPluginFactory::create(cons
+ #if RUBY_VERSION >= 0x10900
+     VALUE gem = rb_define_module("Gem");
+     rb_const_set(gem, rb_intern("Enable"), Qtrue);
+-    Init_prelude(); 
++//    Init_prelude(); 
+ #endif
+ 
+     ruby_incpush(QFile::encodeName(program.path()));
+@@ -342,7 +342,7 @@ int kdemain(int argc, char **argv)
+ #if RUBY_VERSION >= 0x10900
+     VALUE gem = rb_define_module("Gem");
+     rb_const_set(gem, rb_intern("Enable"), Qtrue);
+-    Init_prelude();                                             
++//    Init_prelude();                                             
+ #endif
+ 
+     ruby_incpush(QFile::encodeName(program.path()));



More information about the arch-commits mailing list