Files
gentoo-zh/media-plugins/kotonoha/kotonoha-9999.ebuild
T
Zakk 3555513db8 media-plugins/kotonoha: add 0.4.0, drop 0.3.2
0.4.0 imports keyring unconditionally (new secret store for translation
API keys; pyproject.toml gains "keyring>=25.7.0"), so add it to RDEPEND
in both 0.4.0 and 9999.

Closes: https://github.com/gentoo-zh/overlay/issues/17597
Assisted-by: Claude:claude-sonnet-5-5
Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-30 20:53:09 +11:00

69 lines
1.6 KiB
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=scikit-build-core
DISTUTILS_EXT=1
PYTHON_COMPAT=( python3_{13..14} )
# the lyrics cache is a sqlite3 database
PYTHON_REQ_USE="sqlite"
inherit desktop distutils-r1 xdg
DESCRIPTION="Wayland lyrics overlay for MPRIS-compatible media players"
HOMEPAGE="https://github.com/locez/kotonoha"
if [[ "${PV}" == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/locez/kotonoha.git"
else
SRC_URI="https://github.com/locez/kotonoha/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="ISC LGPL-2.1+ MIT"
SLOT="0"
IUSE="embedded-lyrics"
DEPEND="
dev-libs/wayland
dev-qt/qtbase:6=[gui,wayland,widgets]
kde-plasma/layer-shell-qt:6
"
RDEPEND="
${DEPEND}
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/dbus-fast[${PYTHON_USEDEP}]
>=dev-python/keyring-25.7.0[${PYTHON_USEDEP}]
dev-python/pyqt6[gui,svg,widgets,${PYTHON_USEDEP}]
>=dev-python/pyyaml-6.0[${PYTHON_USEDEP}]
dev-python/qasync[${PYTHON_USEDEP}]
dev-qt/qtwayland:6
dev-qt/qtsvg:6
embedded-lyrics? ( media-libs/mutagen[${PYTHON_USEDEP}] )
"
BDEPEND="
dev-util/wayland-scanner
virtual/pkgconfig
"
EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest
python_configure_all() {
DISTUTILS_ARGS=(
-DKOTONOHA_INSTALL_DIR=kotonoha
-DKOTONOHA_INSTALL_LICENSE=OFF
)
}
python_install_all() {
distutils-r1_python_install_all
domenu packaging/kotonoha.desktop
newicon src/kotonoha/assets/icon.png kotonoha.png
doman packaging/kotonoha.1
insinto /usr/share/metainfo
doins packaging/dev.locez.kotonoha.metainfo.xml
}