From 9ba09e300b439185e0153ba2ebcb5163a286cf8a Mon Sep 17 00:00:00 2001 From: Zakk Date: Sat, 25 Jul 2026 17:34:05 +1000 Subject: [PATCH] app-i18n/fcitx-hallelujah: new package, add 9999 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 fcitx5 英文单词补全(预测)输入法,来自 fcitx-contrib 社区。上游没有 release,所以用 9999 live ebuild。词典(google 词频、cedict)随仓库提供,构建期用 marisa-build 生成,无网络下载。 Signed-off-by: Zakk --- .github/workflows/overlay.toml | 3 ++ .../fcitx-hallelujah-9999.ebuild | 45 +++++++++++++++++++ app-i18n/fcitx-hallelujah/metadata.xml | 11 +++++ 3 files changed, 59 insertions(+) create mode 100644 app-i18n/fcitx-hallelujah/fcitx-hallelujah-9999.ebuild create mode 100644 app-i18n/fcitx-hallelujah/metadata.xml diff --git a/.github/workflows/overlay.toml b/.github/workflows/overlay.toml index e934a9866a..b2fc87196c 100644 --- a/.github/workflows/overlay.toml +++ b/.github/workflows/overlay.toml @@ -501,6 +501,9 @@ github_account = "Linerre" # live package only #["app-i18n/fcitx-gtk"] +# upstream has no release, 9999 only +#["app-i18n/fcitx-hallelujah"] + # live package only #["app-i18n/fcitx-hangul"] diff --git a/app-i18n/fcitx-hallelujah/fcitx-hallelujah-9999.ebuild b/app-i18n/fcitx-hallelujah/fcitx-hallelujah-9999.ebuild new file mode 100644 index 0000000000..dca9ff5cb4 --- /dev/null +++ b/app-i18n/fcitx-hallelujah/fcitx-hallelujah-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake git-r3 xdg + +MY_PN="fcitx5-hallelujah" +DESCRIPTION="English word-completion (prediction) input method for Fcitx5" +HOMEPAGE="https://github.com/fcitx-contrib/fcitx5-hallelujah" +EGIT_REPO_URI="https://github.com/fcitx-contrib/${MY_PN}.git" + +LICENSE="GPL-3" +SLOT="5" +KEYWORDS="" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + >=app-i18n/fcitx-5.1.13:5[enchant] + dev-cpp/nlohmann_json + dev-libs/libfmt:= + dev-libs/marisa +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-libs/marisa[tools(+)] + kde-frameworks/extra-cmake-modules:0 + sys-devel/gettext + virtual/pkgconfig +" + +src_prepare() { + # Live upstream declares cmake_minimum_required 3.6; raise it past ECM's + # compatibility threshold so it stops warning. + sed -i -e '/cmake_minimum_required/s/VERSION 3\.6/VERSION 3.16/' CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DENABLE_TEST=$(usex test) + ) + cmake_src_configure +} diff --git a/app-i18n/fcitx-hallelujah/metadata.xml b/app-i18n/fcitx-hallelujah/metadata.xml new file mode 100644 index 0000000000..05fe30b140 --- /dev/null +++ b/app-i18n/fcitx-hallelujah/metadata.xml @@ -0,0 +1,11 @@ + + + + + zakk@gentoozh.org + Zakk + + + fcitx-contrib/fcitx5-hallelujah + +