[arch-commits] Commit in gcin/repos/community-x86_64 (4 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Thu Mar 14 14:31:39 UTC 2019


    Date: Thursday, March 14, 2019 @ 14:31:38
  Author: yan12125
Revision: 441029

archrelease: copy trunk to community-x86_64

Added:
  gcin/repos/community-x86_64/PKGBUILD
    (from rev 441028, gcin/trunk/PKGBUILD)
  gcin/repos/community-x86_64/fix-gtk-immodules-path.patch
    (from rev 441028, gcin/trunk/fix-gtk-immodules-path.patch)
Deleted:
  gcin/repos/community-x86_64/PKGBUILD
  gcin/repos/community-x86_64/install

------------------------------+
 PKGBUILD                     |   97 ++++++++++++++++++++---------------------
 fix-gtk-immodules-path.patch |   24 ++++++++++
 install                      |   14 -----
 3 files changed, 73 insertions(+), 62 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-14 14:31:18 UTC (rev 441028)
+++ PKGBUILD	2019-03-14 14:31:38 UTC (rev 441029)
@@ -1,48 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-# Contributor: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Gaetan Bisson <bisson at archlinux.org>
-# Contributor: Andreas Radke <andyrtr at archlinux.org>
-# Contributor: damir <damir at archlinux.org>
-
-pkgname=gcin
-pkgver=2.8.8
-pkgrel=1
-pkgdesc='Input method server supporting various input methods'
-url='https://hyperrate.com/dir.php?eid=67'
-license=('LGPL')
-arch=('x86_64')
-depends=('gtk2' 'libxtst')
-makedepends=('qt5-base' 'qt4' 'gtk3' 'anthy')
-optdepends=('qt5-base: support for qt5 input method'
-            'qt4: support for qt4 input method'
-            'gtk3: support for gtk3 input method'
-            'anthy: support for anthy input method'
-            'curl: for downloading and uploading vocabulary databases via ts-edit')
-source=("https://hyperrate.com/gcin-source/${pkgname}-${pkgver}.tar.xz")
-sha512sums=('6fa9955f5f4fdd67b80af9e91b65ff15488368453041dd4c71a3875fc08e9027aa9202783f20d4513f3c01528cb6f8141489546cf21be8fa5ba17060d55d09d4')
-
-install=install
-
-prepare() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    sed 's/lib64/lib/g' -i configure
-    sed '/include suffixes-rule/a \
-        CFLAGS+='"${CFLAGS}"' \
-        LDFLAGS+='"${LDFLAGS}"' \
-        OPTFLAGS=' \
-        -i Makefile
-    sed \
-        -e 's:QT=qt5:QT=qt:' \
-        -i qt5-im/Makefile59
-}
-
-build() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    ./configure --prefix=/usr --use_i18n=Y
-    make
-}
-
-package() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    make DESTDIR="${pkgdir}" install
-}

Copied: gcin/repos/community-x86_64/PKGBUILD (from rev 441028, gcin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-14 14:31:38 UTC (rev 441029)
@@ -0,0 +1,49 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+
+pkgname=gcin
+pkgver=2.8.9
+pkgrel=1
+pkgdesc='Input method server supporting various input methods'
+url='https://hyperrate.com/dir.php?eid=67'
+license=('LGPL')
+arch=('x86_64')
+depends=('gtk3' 'libxtst')
+makedepends=('qt5-base' 'qt4' 'gtk2' 'anthy')
+optdepends=('qt5-base: support for qt5 input method'
+            'qt4: support for qt4 input method'
+            'gtk2: support for gtk2 input method'
+            'anthy: support for anthy input method'
+            'curl: for downloading and uploading vocabulary databases via ts-edit')
+source=("https://hyperrate.com/gcin-source/${pkgname}-${pkgver}.tar.xz"
+        fix-gtk-immodules-path.patch)
+sha512sums=('36813c124bb0ad37a5d3e5fde2ce6aecab9d6702e294b0196da1a830690145371d051909244477dcaca66afce7bba96a8c8f0931b97ad81c61fae8eacef29e17'
+            '54e90b04de45acf9f8821c92234b9708281907cbdf24ebb29f9820945615669d82a8443e49fd49d6c08be4a7b9f2857c8e763f170ef879c8fab1f232bb67e85d')
+
+prepare() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    sed 's/lib64/lib/g' -i configure
+    sed '/include suffixes-rule/a \
+        CFLAGS+='"${CFLAGS}"' \
+        LDFLAGS+='"${LDFLAGS}"' \
+        OPTFLAGS=' \
+        -i Makefile
+    sed \
+        -e 's:QT=qt5:QT=qt:' \
+        -i qt5-im/Makefile59
+    patch -Np1 -i ../fix-gtk-immodules-path.patch
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    ./configure --prefix=/usr --use_i18n=Y
+    make
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    make DESTDIR="${pkgdir}" install
+}

Copied: gcin/repos/community-x86_64/fix-gtk-immodules-path.patch (from rev 441028, gcin/trunk/fix-gtk-immodules-path.patch)
===================================================================
--- fix-gtk-immodules-path.patch	                        (rev 0)
+++ fix-gtk-immodules-path.patch	2019-03-14 14:31:38 UTC (rev 441029)
@@ -0,0 +1,24 @@
+diff -ur gcin-2.8.9.orig/gtk-im/Makefile gcin-2.8.9/gtk-im/Makefile
+--- gcin-2.8.9.orig/gtk-im/Makefile	2019-03-14 21:31:09.553500793 +0800
++++ gcin-2.8.9/gtk-im/Makefile	2019-03-14 22:07:00.917828776 +0800
+@@ -1,7 +1,7 @@
+ include ../config.mak
+ 
+ OBJS = imgcin.o gtkimcontextgcin.o
+-GTK2IM=gtk-2.0/immodules
++GTK2IM=gtk-2.0/`pkg-config --variable=gtk_binary_version gtk+-2.0`/immodules
+ GTKINC=`pkg-config --cflags gtk+-2.0`
+ LDFLAGS=`pkg-config --libs gtk+-2.0`
+ IMMODULES=$(libdir)/$(GTK2IM)
+diff -ur gcin-2.8.9.orig/gtk3-im/Makefile gcin-2.8.9/gtk3-im/Makefile
+--- gcin-2.8.9.orig/gtk3-im/Makefile	2019-03-14 21:31:09.553500793 +0800
++++ gcin-2.8.9/gtk3-im/Makefile	2019-03-14 22:06:40.175065314 +0800
+@@ -1,7 +1,7 @@
+ include ../config.mak
+ 
+ OBJS = imgcin.o gtkimcontextgcin.o
+-GTK3IM=gtk-3.0/immodules
++GTK3IM=gtk-3.0/`pkg-config --variable=gtk_binary_version gtk+-3.0`/immodules
+ GTKINC=`pkg-config --cflags gtk+-3.0`
+ LDFLAGS=`pkg-config --libs gtk+-3.0`
+ LDFLAGS+='-Wl,--as-needed'

Deleted: install
===================================================================
--- install	2019-03-14 14:31:18 UTC (rev 441028)
+++ install	2019-03-14 14:31:38 UTC (rev 441029)
@@ -1,14 +0,0 @@
-post_install() {
-	echo -n "updating gtk immodules... "
-	[ -x /usr/bin/gtk-query-immodules-2.0 ] && /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
-	[ -x /usr/bin/gtk-query-immodules-3.0 ] && /usr/bin/gtk-query-immodules-3.0 > /usr/lib/gtk-3.0/3.0.0/immodules.cache
-	echo "done."
-}
-
-post_upgrade() {
-	post_install
-}
-
-post_remove() {
-	post_install
-}



More information about the arch-commits mailing list