[arch-commits] Commit in gcin/trunk (PKGBUILD gcin-1.4.6-qt4.patch)

andyrtr at archlinux.org andyrtr at archlinux.org
Mon Dec 28 18:43:59 UTC 2009


    Date: Monday, December 28, 2009 @ 13:43:58
  Author: andyrtr
Revision: 61942

upgpkg: gcin 1.4.6-2
    add support for Qt4 input method; FS #17606

Added:
  gcin/trunk/gcin-1.4.6-qt4.patch
Modified:
  gcin/trunk/PKGBUILD

----------------------+
 PKGBUILD             |    9 ++++++---
 gcin-1.4.6-qt4.patch |   31 +++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-12-28 14:47:05 UTC (rev 61941)
+++ PKGBUILD	2009-12-28 18:43:58 UTC (rev 61942)
@@ -4,7 +4,7 @@
 
 pkgname=gcin
 pkgver=1.4.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Traditional Chinese Input Method Server for X window system (XIM)"
 arch=("i686" "x86_64")
 license=('LGPL')
@@ -14,14 +14,17 @@
 optdepends=('qt:	support for Qt4 Input Method')
 install=gcin.install
 source=(http://cle.linux.org.tw/gcin/download/${pkgname}-${pkgver}.tar.bz2
-	fix_x86_64_libdir.patch)
+	fix_x86_64_libdir.patch
+	gcin-1.4.6-qt4.patch)
 #options=('!makeflags')
 md5sums=('64f5ded6404d9091560c2316e9207158'
-         '2018737a07a0a7a9e0c28e11245dde14')
+         '2018737a07a0a7a9e0c28e11245dde14'
+	 'ac1e85a36ad5a32597793281e3253b84')
 
 build() {
     cd "${srcdir}/${pkgname}-${pkgver}"
     patch -Np0 -i "${srcdir}/fix_x86_64_libdir.patch" || return 1
+    patch -Np1 -i "${srcdir}/gcin-1.4.6-qt4.patch" || return 1
     ./configure --prefix=/usr || return 1
     make || return 1
     make DESTDIR="${pkgdir}" install || return 1

Added: gcin-1.4.6-qt4.patch
===================================================================
--- gcin-1.4.6-qt4.patch	                        (rev 0)
+++ gcin-1.4.6-qt4.patch	2009-12-28 18:43:58 UTC (rev 61942)
@@ -0,0 +1,31 @@
+diff -ruN gcin-1.4.6/configure gcin-1.4.6-new/configure
+--- gcin-1.4.6/configure	2009-12-17 17:29:46.000000000 +0800
++++ gcin-1.4.6-new/configure	2009-12-28 16:46:25.000000000 +0800
+@@ -164,7 +164,7 @@
+ 
+ 
+ QT4_IM='N'
+-QT4_IM_DIR=/usr/$LIB/qt4/plugins/inputmethods
++QT4_IM_DIR=/usr/$LIB/qt/plugins/inputmethods
+ echo "testing if you have qt4 support"
+ if [ -d  $QT4_IM_DIR ]; then
+   QT4_IM='Y'
+diff -ruN gcin-1.4.6/qt4-im/Makefile gcin-1.4.6-new/qt4-im/Makefile
+--- gcin-1.4.6/qt4-im/Makefile	2009-12-10 07:09:17.000000000 +0800
++++ gcin-1.4.6-new/qt4-im/Makefile	2009-12-28 16:47:59.000000000 +0800
+@@ -1,5 +1,5 @@
+ include ../config.mak
+-QT=qt4
++QT=qt
+ QTIM=$(QT)/plugins/inputmethods
+ IMMODULES=$(libdir)/$(QTIM)
+ 
+@@ -15,7 +15,7 @@
+ 	$(CXX) -E $(CFLAGS) $(INCS) $< > $@
+ 
+ moc_gcin-qt.cpp:	gcin-qt.h
+-	/usr/lib/$(QT)/bin/moc $< -o moc_gcin-qt.cpp
++	/usr/bin/moc $< -o moc_gcin-qt.cpp
+ 
+ im-gcin.so: $(OBJS)
+ 	export LD_RUN_PATH=$(gcinlibdir) ;\




More information about the arch-commits mailing list