commit: b0079d8b421eda169e2b5282f40ad468057c227e parent 246825cf18c7a5e35d518a3c6b0531299afb6caf Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Fri, 21 Jul 2023 08:23:10 +0200 app-i18n/fcitx-configtool: new package, add 5.0.17Diffstat:
A | app-i18n/fcitx-configtool/Manifest | 1 | + |
A | app-i18n/fcitx-configtool/fcitx-configtool-5.0.17.ebuild | 71 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | app-i18n/fcitx-configtool/metadata.xml | 16 | ++++++++++++++++ |
3 files changed, 88 insertions(+), 0 deletions(-)diff --git a/app-i18n/fcitx-configtool/Manifest b/app-i18n/fcitx-configtool/Manifest
@@ -0,0 +1 @@ +DIST fcitx-configtool-5.0.17.tar.gz 155255 BLAKE2B 3882fd32845c3441885133a619d6ad6371f01b3764d5c5a2806fa57f900eff502adb3bb7058f608b86aef6967b605e67e4ad574383fc5baff87aff0459174eda SHA512 1cdeaa3c84c18d6df2f5ee15fd5664bb790aeafaec575d66837d34369279231bcc53afc16f025546243fd3c6d94f325f1e5aaac8636c975d5cd84a8853d285c8diff --git a/app-i18n/fcitx-configtool/fcitx-configtool-5.0.17.ebuild b/app-i18n/fcitx-configtool/fcitx-configtool-5.0.17.ebuild
@@ -0,0 +1,71 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg-utils + +MY_PN="fcitx5-configtool" +DESCRIPTION="GUI configuration tool for Fcitx" +HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx5-configtool" +SRC_URI="https://github.com/fcitx/fcitx5-configtool/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="5" +KEYWORDS="~amd64 ~x86" +IUSE="+config-qt +kcm test X" +RESTRICT="!test? ( test )" + +DEPEND=" + app-i18n/fcitx:5 + app-i18n/fcitx-qt:5[-only-plugin] + app-text/iso-codes + config-qt? ( kde-frameworks/kitemviews:5 ) + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + dev-qt/qtconcurrent:5 + kde-frameworks/kwidgetsaddons:5 + sys-devel/gettext + x11-misc/xkeyboard-config + kcm? ( + dev-qt/qtquickcontrols2:5 + kde-frameworks/kcoreaddons:5 + kde-frameworks/ki18n:5 + kde-frameworks/kiconthemes:5 + kde-frameworks/kpackage:5 + kde-frameworks/plasma:5 + kde-frameworks/kdeclarative:5 + kde-frameworks/kirigami:5 + x11-libs/libxkbcommon + ) + X? ( + dev-qt/qtx11extras:5 + x11-libs/libX11 + x11-libs/libxkbfile + ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + kde-frameworks/extra-cmake-modules + virtual/pkgconfig +" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_configure() { + local mycmakeargs=( + -DENABLE_CONFIG_QT=$(usex config-qt) + -DENABLE_KCM=$(usex kcm) + -DENABLE_TEST=$(usex test) + ) + cmake_src_configure +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +}diff --git a/app-i18n/fcitx-configtool/metadata.xml b/app-i18n/fcitx-configtool/metadata.xml
@@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>i@bitbili.net</email> + <name>Ryan Qian</name> + </maintainer> + <upstream> + <remote-id type="github">fcitx/fcitx5-configtool</remote-id> + <bugs-to>https://github.com/fcitx/fcitx5-configtool/issues</bugs-to> + </upstream> + <use> + <flag name="config-qt">Enable fcitx5-config-qt</flag> + <flag name="kcm">Enable KDE Config Module</flag> + </use> +</pkgmetadata>