Files
gentoo-zh/app-i18n/fcitx-chinese-addons/fcitx-chinese-addons-9999.ebuild
T
Zakk dcd5752fc6 */*: correct LICENSE declarations that did not match upstream
因为对全部软件包逐一核对上游后发现 42 个的 `LICENSE=` 与上游实际授权不符,所以按上游的授权文件与源码文件头改正,并为其中被误标为开源、实为专有的软件补上
`RESTRICT`。

最严重的一类是专有软件被标成开源:`deepin-wine-helper` 与 `deepin-wine-plugin` 的 deb 内 copyright 写着
`All rights reserved by Wuhan Deepin Technology Co., Ltd.`,`app-misc/z-library` 的 deb
control 写 `License: unknown`,`media-sound/qqmusic` 用的 `CC0-1.0` 是公共领域捐弃、与腾讯的服务协议完全相反。

`net-proxy/clash-rs` 此前只有 `LICENSE+=`、没有基底 `LICENSE=`,主程序的 Apache-2.0 完全没有声明。

`sys-kernel/xanmod-sources` 的 `LICENSE+=" CDDL"` 在 xanmod patch 与 genpatches
中都找不到依据,一并删除。

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-08-02 04:20:36 +10:00

50 lines
1.2 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="fcitx5-chinese-addons"
inherit cmake git-r3 xdg
DESCRIPTION="Addons related to Chinese, including IME previous bundled inside fcitx4"
HOMEPAGE="https://github.com/fcitx/fcitx5-chinese-addons"
EGIT_REPO_URI="https://github.com/fcitx/fcitx5-chinese-addons.git"
LICENSE="GPL-2+ LGPL-2.1+ unicode"
SLOT="5"
KEYWORDS=""
IUSE="+cloudpinyin +data +gui lua +opencc test webengine"
REQUIRED_USE="webengine? ( gui )"
RESTRICT="!test? ( test )"
RDEPEND="
>=app-i18n/fcitx-5.1.13:5
>=app-i18n/libime-1.1.11:5[data?]
>=dev-libs/boost-1.61:=
cloudpinyin? ( net-misc/curl )
gui? (
>=app-i18n/fcitx-qt-5.1.4:5[qt6(+),-onlyplugin]
dev-qt/qtbase:6[concurrent,gui,network,widgets]
webengine? ( dev-qt/qtwebengine:6[widgets] )
)
lua? ( app-i18n/fcitx-lua:5 )
opencc? ( app-i18n/opencc:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
kde-frameworks/extra-cmake-modules:0
virtual/pkgconfig
"
src_configure() {
local mycmakeargs=(
-DENABLE_BROWSER=$(usex webengine)
-DENABLE_CLOUDPINYIN=$(usex cloudpinyin)
-DENABLE_DATA=$(usex data)
-DENABLE_GUI=$(usex gui)
-DENABLE_OPENCC=$(usex opencc)
-DENABLE_TEST=$(usex test)
)
cmake_src_configure
}