commit:     8eb9e69d5811776e92864e23042f564b04ad38b4
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Sun Sep  7 18:24:52 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Mon Sep  8 00:22:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8eb9e69d

app-i18n/ibus-table-chinese: add 1.8.14

Migrate to EAPI8, change upstream, remove redundant dependency.

Closes: https://bugs.gentoo.org/962461
Closes: https://github.com/gentoo/gentoo/pull/43703
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 app-i18n/ibus-table-chinese/Manifest               |  1 +
 .../ibus-table-chinese-1.8.14_install-paths.patch  | 34 ++++++++++++++++++++++
 .../ibus-table-chinese-1.8.14.ebuild               | 21 +++++++++++++
 app-i18n/ibus-table-chinese/metadata.xml           |  2 +-
 4 files changed, 57 insertions(+), 1 deletion(-)

diff --git a/app-i18n/ibus-table-chinese/Manifest 
b/app-i18n/ibus-table-chinese/Manifest
index bc0febf88c56..b91eb4a250c4 100644
--- a/app-i18n/ibus-table-chinese/Manifest
+++ b/app-i18n/ibus-table-chinese/Manifest
@@ -1 +1,2 @@
+DIST ibus-table-chinese-1.8.14.tar.gz 10927241 BLAKE2B 
abbb76d7a0a3e31dadeb7fb9e04826703fd9d482ef77889297f502ecb9e515b340a46ea710b742ae071cf478255927acb5636287060e3e626a464edec8255860
 SHA512 
6dcd7d3a7df47a2486b96d727c7a15033b1ba2270e745fb25677edbd2cdacffbecb0b8a271054ea10af62df0c102ab5849cb071982b2bc13fddc81355ccb69c3
 DIST ibus-table-chinese-1.8.3.tar.gz 10824912 BLAKE2B 
e9f4e377a794827196e04e197044b3fdcd81d84ed89067e17745879495df69cc6e95814863f856cc0a7b7db0aba3cbd93d1c1d172f607fdd410dbed02dc4ad54
 SHA512 
610455343d9c9bf6577c7fd7aef9435c339c2f23c4d5f7ae2cbbc2366a9eb6a8a124e86621387497cc624e3276bf739b55602355ad41c4127f45f6d85cc5b4dc

diff --git 
a/app-i18n/ibus-table-chinese/files/ibus-table-chinese-1.8.14_install-paths.patch
 
b/app-i18n/ibus-table-chinese/files/ibus-table-chinese-1.8.14_install-paths.patch
new file mode 100644
index 000000000000..c66defac3041
--- /dev/null
+++ 
b/app-i18n/ibus-table-chinese/files/ibus-table-chinese-1.8.14_install-paths.patch
@@ -0,0 +1,34 @@
+From: https://github.com/mike-fabian/ibus-table-chinese/pull/10
+Date: Sun, 7 Sep 2025 21:10:39 +0300
+Subject: [PATCH] Use GNUInstallDirs for define install paths
+
+Cleanup unused variables.
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -20,13 +20,8 @@ SET(PRJ_DESCRIPTION
+ Input tables themselves are in subpackages."
+     )
+ 
+-IF(CMAKE_SYSTEM_PROCESSOR MATCHES "64")
+-    SET(LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib64" CACHE PATH "Library dir")
+-ELSE(CMAKE_SYSTEM_PROCESSOR MATCHES "64")
+-    SET(LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Library dir")
+-ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "64")
+-SET(LIBEXEC_DIR "${LIB_DIR}" CACHE PATH "LIBEXEC dir")
+-SET(DATA_DIR "/usr/share")
++INCLUDE(GNUInstallDirs)
++SET(DATA_DIR ${CMAKE_INSTALL_DATADIR})
+ 
+ ####################################################################
+ # Building
+@@ -36,6 +31,6 @@ ADD_SUBDIRECTORY(tables)
+ ####################################################################
+ # Installing
+ #
+-SET(PRJ_DOC_DIR "${DATA_DIR}/doc/ibus-table-chinese")
++SET(PRJ_DOC_DIR "${CMAKE_INSTALL_DOCDIR}")
+ INSTALL(FILES AUTHORS README ChangeLog COPYING DESTINATION ${PRJ_DOC_DIR})
+ 
+-- 
+2.49.1
+

diff --git a/app-i18n/ibus-table-chinese/ibus-table-chinese-1.8.14.ebuild 
b/app-i18n/ibus-table-chinese/ibus-table-chinese-1.8.14.ebuild
new file mode 100644
index 000000000000..820d74d33d19
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/ibus-table-chinese-1.8.14.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Chinese tables for IBus-Table"
+HOMEPAGE="https://github.com/mike-fabian/ibus-table-chinese";
+SRC_URI="https://github.com/mike-fabian/ibus-table-chinese/releases/download/${PV}/${P}.tar.gz";
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="app-i18n/ibus-table"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/ibus-table-chinese-1.8.14_install-paths.patch"
+)

diff --git a/app-i18n/ibus-table-chinese/metadata.xml 
b/app-i18n/ibus-table-chinese/metadata.xml
index fd5e2e31d9e2..922df2c484d6 100644
--- a/app-i18n/ibus-table-chinese/metadata.xml
+++ b/app-i18n/ibus-table-chinese/metadata.xml
@@ -6,6 +6,6 @@
                <name>Cjk</name>
        </maintainer>
        <upstream>
-               <remote-id type="github">definite/ibus-table-chinese</remote-id>
+               <remote-id 
type="github">mike-fabian/ibus-table-chinese</remote-id>
        </upstream>
 </pkgmetadata>

Reply via email to