因为对全部软件包逐一核对上游后发现 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>
54 lines
1.1 KiB
Bash
54 lines
1.1 KiB
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson
|
|
|
|
DESCRIPTION="Chinese Lunar Library"
|
|
HOMEPAGE="https://github.com/yetist/lunar-date"
|
|
SRC_URI="https://github.com/yetist/lunar-date/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="+dbus doc introspection test"
|
|
|
|
REQUIRED_USE="doc? ( introspection )"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND=">=dev-python/pygobject-2.11.5"
|
|
|
|
DEPEND="${RDEPEND}
|
|
dev-util/gdbus-codegen
|
|
sys-devel/gettext
|
|
virtual/pkgconfig
|
|
>=dev-util/intltool-0.35
|
|
doc? (
|
|
dev-util/gi-docgen
|
|
dev-util/gtk-doc
|
|
)
|
|
introspection? ( dev-libs/gobject-introspection )"
|
|
|
|
DOCS="AUTHORS COPYING NEWS README.md"
|
|
|
|
src_configure(){
|
|
local emesonargs=(
|
|
$(meson_use dbus service)
|
|
$(meson_use doc docs)
|
|
$(meson_use introspection introspection)
|
|
$(meson_use test tests)
|
|
)
|
|
meson_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
meson_src_install
|
|
|
|
if use doc; then
|
|
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
|
mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/gtk-doc/html/ || die
|
|
fi
|
|
}
|