[arch-commits] Commit in kdebindings/trunk (PKGBUILD)

Pierre Schmitz pierre at archlinux.org
Tue Sep 29 07:04:58 UTC 2009


    Date: Tuesday, September 29, 2009 @ 03:04:57
  Author: pierre
Revision: 53334

rebuild for ruby 1.9

Modified:
  kdebindings/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-09-29 07:03:20 UTC (rev 53333)
+++ PKGBUILD	2009-09-29 07:04:57 UTC (rev 53334)
@@ -8,7 +8,7 @@
          'kdebindings-smoke')
 groups=('kdebindings')
 pkgver=4.3.1
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 url='http://www.kde.org'
 license=('GPL' 'LGPL')
@@ -23,6 +23,12 @@
 
 	# disable broken examples
 	sed -e 's#add_subdirectory( examples )##' -i ../${pkgbase}-${pkgver}/csharp/plasma/CMakeLists.txt || return 1
+
+	# fix build with ruby 1.9
+	# see http://bugs.archlinux.org/task/16175
+	find ../$pkgbase-$pkgver/ruby -name CMakeLists.txt \
+		-exec sed -i "s|\${RUBY_INCLUDE_PATH}|\${RUBY_INCLUDE_PATH} /usr/include/ruby-1.9.1/${CARCH}-linux|" {} \;
+
 	cmake ../${pkgbase}-${pkgver} \
 		-DCMAKE_BUILD_TYPE=Release \
 		-DCMAKE_SKIP_RPATH=ON \
@@ -30,7 +36,8 @@
 		-DCMAKE_INSTALL_PREFIX=/usr \
 		-DBUILD_java=OFF \
 		-DBUILD_php=OFF \
-		-DBUILD_falcon=OFF
+		-DBUILD_falcon=OFF \
+		-DENABLE_KROSSRUBY=OFF
 	make
 }
 




More information about the arch-commits mailing list