From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 38CFA1580FD for ; Wed, 25 Dec 2024 22:35:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7DF44E075F; Wed, 25 Dec 2024 22:35:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5B535E075F for ; Wed, 25 Dec 2024 22:35:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5C9EF33BE00 for ; Wed, 25 Dec 2024 22:35:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B4A2510CC for ; Wed, 25 Dec 2024 22:35:37 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1735165873.d5eb185d5dc18e334a6040d6dc62dcf2f8c43f61.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/mozc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/mozc/mozc-2.28.5029.102-r3.ebuild app-i18n/mozc/mozc-2.28.5029.102-r4.ebuild X-VCS-Directories: app-i18n/mozc/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: d5eb185d5dc18e334a6040d6dc62dcf2f8c43f61 X-VCS-Branch: master Date: Wed, 25 Dec 2024 22:35:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4ca208e3-9de4-49f8-adfe-8ee44519ac7d X-Archives-Hash: 645366e05bfbfd0d096ad56d43a89ca0 commit: d5eb185d5dc18e334a6040d6dc62dcf2f8c43f61 Author: Yongxiang Liang gmail com> AuthorDate: Tue Dec 24 13:43:52 2024 +0000 Commit: Yixun Lan gentoo org> CommitDate: Wed Dec 25 22:31:13 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5eb185d app-i18n/mozc: drop fcitx4 use flag Closes: https://github.com/gentoo/gentoo/pull/39826 Signed-off-by: Yongxiang Liang gmail.com> Signed-off-by: Yixun Lan gentoo.org> ....102-r3.ebuild => mozc-2.28.5029.102-r4.ebuild} | 61 ++-------------------- 1 file changed, 5 insertions(+), 56 deletions(-) diff --git a/app-i18n/mozc/mozc-2.28.5029.102-r3.ebuild b/app-i18n/mozc/mozc-2.28.5029.102-r4.ebuild similarity index 87% rename from app-i18n/mozc/mozc-2.28.5029.102-r3.ebuild rename to app-i18n/mozc/mozc-2.28.5029.102-r4.ebuild index 9e3e0a65db7d..d370973711fd 100644 --- a/app-i18n/mozc/mozc-2.28.5029.102-r3.ebuild +++ b/app-i18n/mozc/mozc-2.28.5029.102-r4.ebuild @@ -35,7 +35,6 @@ else https://github.com/google/${PN}/archive/${MOZC_GIT_REVISION}.tar.gz -> ${PN}-${PV%%_p*}-${MOZC_DATE}.tar.gz https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/${JAPANESE_USAGE_DICTIONARY_GIT_REVISION}.tar.gz -> japanese-usage-dictionary-${JAPANESE_USAGE_DICTIONARY_DATE}.tar.gz https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-2.28.5029.102-patches.tar.xz - fcitx4? ( https://github.com/fcitx/${PN}/archive/${FCITX_MOZC_GIT_REVISION}.tar.gz -> fcitx-${PN}-${PV%%_p*}-${FCITX_MOZC_DATE}.tar.gz ) fcitx5? ( https://github.com/fcitx/${PN}/archive/${FCITX_MOZC_GIT_REVISION}.tar.gz -> fcitx-${PN}-${PV%%_p*}-${FCITX_MOZC_DATE}.tar.gz ) " fi @@ -47,8 +46,8 @@ fi LICENSE="BSD BSD-2 ipadic public-domain unicode" SLOT="0" KEYWORDS="~amd64 ~loong ~x86" -IUSE="debug emacs fcitx4 fcitx5 +gui ibus renderer test" -REQUIRED_USE="|| ( emacs fcitx4 fcitx5 ibus )" +IUSE="debug emacs fcitx5 +gui ibus renderer test" +REQUIRED_USE="|| ( emacs fcitx5 ibus )" RESTRICT="!test? ( test )" BDEPEND=" @@ -58,16 +57,11 @@ BDEPEND=" app-alternatives/ninja virtual/pkgconfig emacs? ( app-editors/emacs:* ) - fcitx4? ( sys-devel/gettext ) fcitx5? ( sys-devel/gettext ) " DEPEND=" >=dev-cpp/abseil-cpp-20240116.0:= >=dev-libs/protobuf-3.0.0:= - fcitx4? ( - app-i18n/fcitx:4 - virtual/libintl - ) fcitx5? ( app-i18n/fcitx:5 app-i18n/libime @@ -98,10 +92,6 @@ RDEPEND=" >=dev-cpp/abseil-cpp-20230802.0:=[cxx17(+)] >=dev-libs/protobuf-3.0.0:= emacs? ( app-editors/emacs:* ) - fcitx4? ( - app-i18n/fcitx:4 - virtual/libintl - ) fcitx5? ( app-i18n/fcitx:5 app-i18n/libime @@ -145,12 +135,10 @@ src_unpack() { if [[ "${PV}" == "9999" ]]; then git-r3_src_unpack - if use fcitx4 || use fcitx5; then + if use fcitx5; then local EGIT_SUBMODULES=() git-r3_fetch https://github.com/fcitx/mozc refs/heads/fcitx git-r3_checkout https://github.com/fcitx/mozc "${WORKDIR}/fcitx-mozc" - fi - if use fcitx5; then cp -pr "${WORKDIR}"/fcitx{,5}-mozc || die fi else @@ -162,24 +150,15 @@ src_unpack() { unpack japanese-usage-dictionary-${JAPANESE_USAGE_DICTIONARY_DATE}.tar.gz cp -p japanese-usage-dictionary-${JAPANESE_USAGE_DICTIONARY_GIT_REVISION}/usage_dict.txt ${P}/src/third_party/japanese_usage_dictionary || die - if use fcitx4 || use fcitx5; then + if use fcitx5; then unpack fcitx-${PN}-${PV%%_p*}-${FCITX_MOZC_DATE}.tar.gz - if use fcitx4; then - cp -pr mozc-${FCITX_MOZC_GIT_REVISION} fcitx-${PN} || die - fi - if use fcitx5; then - cp -pr mozc-${FCITX_MOZC_GIT_REVISION} fcitx5-${PN} || die - fi + cp -pr mozc-${FCITX_MOZC_GIT_REVISION} fcitx5-${PN} || die rm -r mozc-${FCITX_MOZC_GIT_REVISION} || die fi fi } src_prepare() { - if use fcitx4; then - cp -pr "${WORKDIR}/fcitx-mozc/src/unix/fcitx" unix || die - PATCHES+=( "${FILESDIR}"/mozc-2.28.5029.102-abseil-20230802.0-fcitx4.patch ) - fi if use fcitx5; then cp -pr "${WORKDIR}/fcitx5-mozc/src/unix/fcitx5" unix || die PATCHES+=( "${FILESDIR}"/mozc-2.28.5029.102-abseil-20230802.0-fcitx5.patch ) @@ -253,7 +232,6 @@ src_configure() { gyp_arguments+=(-D debug_extra_cflags=) gyp_arguments+=(-D release_extra_cflags=) - gyp_arguments+=(-D use_fcitx=$(usex fcitx4 YES NO)) gyp_arguments+=(-D use_fcitx5=$(usex fcitx5 YES NO)) gyp_arguments+=(-D use_libibus=$(usex ibus 1 0)) gyp_arguments+=(-D use_libprotobuf=1) @@ -285,9 +263,6 @@ src_compile() { if use emacs; then targets+=(unix/emacs/emacs.gyp:mozc_emacs_helper) fi - if use fcitx4; then - targets+=(unix/fcitx/fcitx.gyp:fcitx-mozc) - fi if use fcitx5; then targets+=(unix/fcitx5/fcitx5.gyp:fcitx5-mozc) fi @@ -342,32 +317,6 @@ src_install() { elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${PN} fi - if use fcitx4; then - exeinto /usr/$(get_libdir)/fcitx - doexe out_linux/${BUILD_TYPE}/fcitx-mozc.so - - insinto /usr/share/fcitx/addon - doins unix/fcitx/fcitx-mozc.conf - - insinto /usr/share/fcitx/inputmethod - doins unix/fcitx/mozc.conf - - insinto /usr/share/fcitx/mozc/icon - newins data/images/product_icon_32bpp-128.png mozc.png - local image - for image in ../../fcitx-${PN}/src/data/images/unix/ui-*.png; do - newins "${image}" "mozc-${image#../../fcitx-${PN}/src/data/images/unix/ui-}" - done - - local locale mo_file - for mo_file in out_linux/${BUILD_TYPE}/gen/unix/fcitx/po/*.mo; do - locale="${mo_file##*/}" - locale="${locale%.mo}" - insinto /usr/share/locale/${locale}/LC_MESSAGES - newins "${mo_file}" fcitx-mozc.mo - done - fi - if use fcitx5; then exeinto /usr/$(get_libdir)/fcitx5 doexe out_linux/${BUILD_TYPE}/fcitx5-mozc.so