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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 72620158016 for ; Mon, 25 Dec 2023 11:51:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A03392BC014; Mon, 25 Dec 2023 11:51:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 84A622BC014 for ; Mon, 25 Dec 2023 11:51:05 +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 93DC3342FFA for ; Mon, 25 Dec 2023 11:51:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D6CD31331 for ; Mon, 25 Dec 2023 11:51:02 +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: <1703505037.2a8553bbb2df7b3a6165d0edf54eeb600732607d.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/fcitx-lua/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/fcitx-lua/Manifest app-i18n/fcitx-lua/fcitx-lua-5.0.11.ebuild app-i18n/fcitx-lua/metadata.xml X-VCS-Directories: app-i18n/fcitx-lua/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 2a8553bbb2df7b3a6165d0edf54eeb600732607d X-VCS-Branch: master Date: Mon, 25 Dec 2023 11:51:02 +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: 8d1782c6-ae40-4da7-889d-a94ce41a4895 X-Archives-Hash: 6046bdb060cfa4d2637357fb599859fd commit: 2a8553bbb2df7b3a6165d0edf54eeb600732607d Author: Yongxiang Liang gmail com> AuthorDate: Wed Dec 6 05:56:12 2023 +0000 Commit: Yixun Lan gentoo org> CommitDate: Mon Dec 25 11:50:37 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a8553bb app-i18n/fcitx-lua: new package, add 5.0.11 fcitx-lua is lua support for fcitx5. It is an optional dependency of app-i18n/fcitx-chinese-addons. Signed-off-by: Yongxiang Liang gmail.com> Signed-off-by: Yixun Lan gentoo.org> app-i18n/fcitx-lua/Manifest | 1 + app-i18n/fcitx-lua/fcitx-lua-5.0.11.ebuild | 46 ++++++++++++++++++++++++++++++ app-i18n/fcitx-lua/metadata.xml | 31 ++++++++++++++++++++ 3 files changed, 78 insertions(+) diff --git a/app-i18n/fcitx-lua/Manifest b/app-i18n/fcitx-lua/Manifest new file mode 100644 index 000000000000..8fefb82b8810 --- /dev/null +++ b/app-i18n/fcitx-lua/Manifest @@ -0,0 +1 @@ +DIST fcitx-lua-5.0.11.tar.xz 34320 BLAKE2B 9140e96362d8a294149028946c3072c195145ccdf4f350d438904305dcca3fb4b3c70f205bd2ff83f700ae8822b2bd99efc5ec77009f5636c72d7ea10d6d15f4 SHA512 c69391efb910cc476608022d15d6e06323bef6cf50c9c63297827969a796b153ad82c7953c3a8fc4432bb887323aa15456d4a8fc246814e165efa54307fa7efe diff --git a/app-i18n/fcitx-lua/fcitx-lua-5.0.11.ebuild b/app-i18n/fcitx-lua/fcitx-lua-5.0.11.ebuild new file mode 100644 index 000000000000..4dc09a6886b7 --- /dev/null +++ b/app-i18n/fcitx-lua/fcitx-lua-5.0.11.ebuild @@ -0,0 +1,46 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{3,4} ) + +MY_PN="fcitx5-lua" + +inherit cmake lua-single xdg + +DESCRIPTION="Lua support for fcitx" +HOMEPAGE="https://github.com/fcitx/fcitx5-lua" +SRC_URI="https://download.fcitx-im.org/fcitx5/${MY_PN}/${MY_PN}-${PV}.tar.xz -> ${P}.tar.xz" + +LICENSE="LGPL-2.1+" +SLOT="5" +KEYWORDS="~amd64 ~x86" +IUSE="+dlopen test" +REQUIRED_USE="${LUA_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${LUA_DEPS} + app-i18n/fcitx:5 +" +DEPEND="${RDEPEND}" +BDEPEND=" + kde-frameworks/extra-cmake-modules:0 + sys-devel/gettext + virtual/pkgconfig +" + +S="${WORKDIR}/${MY_PN}-${PV}" + +pkg_setup() { + lua-single_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DUSE_DLOPEN=$(usex dlopen) + -DENABLE_TEST=$(usex test) + ) + cmake_src_configure +} diff --git a/app-i18n/fcitx-lua/metadata.xml b/app-i18n/fcitx-lua/metadata.xml new file mode 100644 index 000000000000..152073f668d9 --- /dev/null +++ b/app-i18n/fcitx-lua/metadata.xml @@ -0,0 +1,31 @@ + + + + + tanekliang@gmail.com + Yongxiang Liang + + + proxy-maint@gentoo.org + Proxy Maintainers + + + cjk@gentoo.org + Cjk + + + fcitx/fcitx5-lua + + + Lua support for fcitx. + It tries to support lua in fcitx in two ways. + 1. An addon loader for lua, which supports Type=Lua addon. + 2. The googlepinyin api, which is provided by imeapi addon. + You may put your lua file under + $HOME/.local/share/fcitx5/lua/imeapi/extensions + to make the addon find your scripts. + + + Use dlopen to load lua library + +