mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
app-i18n/fcitx5-lotus: new package, add 3.5.7
Signed-off-by: Trần Tiến Đạt <trantiendat29042005@gmail.com> Part-of: https://github.com/gentoo/guru/pull/534 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
1 parent
0bfc5b5ea3
commit
9416dbd1e9
3 files changed
+103
No files matched your search
@@ -0,0 +1,2 @@
|
||||
DIST bamboo-core-9197d2cc164380a80d219f12cc90576ff2fbf5e6.tar.gz 29292 BLAKE2B 55bee89be48a5dad85e7f549590ca65f543bd2d80af74e0366c67493612dd077aeab29f880b5beb40a06278672c1b16c5ce0b441d0907a6de149f49e6d29590f SHA512 bfd8fc33fbea4166190ff57c97cf5387a68c90cc1409906ab5fc9d91b2a843d8d40adaf1fa2799b29cee4e0ea52c08b6ce6a2778b60416fa0634cf8103e44997
|
||||
DIST fcitx5-lotus-3.5.7.tar.gz 194070 BLAKE2B b9e69458eca9f946ee05c6230f767ae7c6e7e97b37f05709699e3e70991ba2c09fe0544ad589dfb4b31b9255aec86018a774bbe2b006be2f043e8547e9f6ce72 SHA512 b229745b94e99b4edf5625790109c64a28e121f79764f4a3850b654fdb61be1641105de581414912e637720224bca8c403b8cd6f143509f62f11d82eab0a0154
|
||||
@@ -0,0 +1,80 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12,13,14} )
|
||||
inherit cmake udev xdg python-any-r1
|
||||
|
||||
DESCRIPTION="Vietnamese Bamboo input method for Fcitx5 (Lotus branch)"
|
||||
HOMEPAGE="https://lotusinputmethod.github.io/"
|
||||
|
||||
BAMBOO_CORE_COMMIT="9197d2cc164380a80d219f12cc90576ff2fbf5e6"
|
||||
BAMBOO_URI="https://github.com/LotusInputMethod/bamboo-core/archive"
|
||||
SRC_URI="
|
||||
https://github.com/LotusInputMethod/fcitx5-lotus/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${BAMBOO_URI}/${BAMBOO_CORE_COMMIT}.tar.gz -> bamboo-core-${BAMBOO_CORE_COMMIT}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="GPL-3+ LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="openrc"
|
||||
|
||||
DEPEND="
|
||||
>=app-i18n/fcitx-5.0.14:5
|
||||
x11-libs/libX11
|
||||
dev-libs/libinput
|
||||
virtual/libudev
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
acct-user/uinput-proxy
|
||||
sys-apps/acl
|
||||
dev-python/qtpy
|
||||
dev-python/dbus-python
|
||||
"
|
||||
BDEPEND="
|
||||
kde-frameworks/extra-cmake-modules
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
dev-lang/go
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
rmdir bamboo/bamboo-core || die
|
||||
mv "${WORKDIR}/bamboo-core-${BAMBOO_CORE_COMMIT}" bamboo/bamboo-core || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# udev rules, the systemd system unit, sysusers.d and modules-load.d
|
||||
# entries are all installed directly by upstream's CMakeLists.txt
|
||||
|
||||
if use openrc; then
|
||||
newinitd misc/fcitx5-lotus.openrc fcitx5-lotus-server
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
udev_reload
|
||||
|
||||
elog "fcitx5-lotus-server needs access to /dev/uinput for the smooth"
|
||||
elog "(uinput) typing mode. This is granted via a udev rule to the"
|
||||
elog "'uinput_proxy' system user, created by acct-user/uinput-proxy."
|
||||
elog ""
|
||||
elog "Enable the server with:"
|
||||
elog " systemctl enable --now fcitx5-lotus-server@\$(whoami).service"
|
||||
elog ""
|
||||
elog "For OpenRC, enable the corresponding init script instead:"
|
||||
elog " rc-update add fcitx5-lotus-server default"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
udev_reload
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>trantiendat29042005@gmail.com</email>
|
||||
<name>Trần Tiến Đạt</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
Fcitx5 Lotus is a Vietnamese input method engine for the Fcitx5
|
||||
framework, forked from VMK. It supports multiple typing methods
|
||||
(Telex, VNI, custom keymaps) and several input processing modes,
|
||||
including a non-preedit "smooth" mode via a privileged uinput
|
||||
server for seamless text replacement.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="openrc">Install the OpenRC init script for fcitx5-lotus-server</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">LotusInputMethod/fcitx5-lotus</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in new issue
Block a user