1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 DISTUTILS_USE_PEP517
=setuptools
6 PYTHON_COMPAT
=( python3_
{10.
.12} )
8 inherit distutils-r1 desktop pypi
10 DESCRIPTION
="A user-friendly and hackable music player"
11 HOMEPAGE
="https://github.com/feeluown/FeelUOwn"
16 IUSE
="+netease +qqmusic +webengine +ytmusic +bilibili +cookies"
17 RESTRICT
="test" # TODO
20 dev-python/janus[${PYTHON_USEDEP}]
21 dev-python/requests[${PYTHON_USEDEP}]
22 dev-python/pyopengl[${PYTHON_USEDEP}]
23 dev-python/pyqt5[gui,widgets,opengl,svg,${PYTHON_USEDEP}]
24 dev-python/qasync[${PYTHON_USEDEP}]
25 dev-python/tomlkit[${PYTHON_USEDEP}]
26 dev-python/packaging[${PYTHON_USEDEP}]
27 >=dev-python/pydantic-1.10[${PYTHON_USEDEP}]
31 media-video/mpv[libmpv]
32 netease? ( dev-python/fuo-netease[${PYTHON_USEDEP}] )
33 qqmusic? ( dev-python/fuo-qqmusic[${PYTHON_USEDEP}] )
34 bilibili? ( dev-python/feeluown-bilibili[$PYTHON_USEDEP] )
35 ytmusic? ( dev-python/fuo-ytmusic[$PYTHON_USEDEP] )
36 webengine? ( dev-python/pyqtwebengine[$PYTHON_USEDEP] )
37 cookies? ( dev-python/pycryptodome[$PYTHON_USEDEP] dev-python/secretstorage[$PYTHON_USEDEP] )
43 dev-python/setuptools[${PYTHON_USEDEP}]
47 "${FILESDIR}"/${PN}-3.8
.5-fix-mpv.
patch # Remove unused ytdl option
50 python_install_all
() {
51 distutils-r1_python_install_all
53 domenu
"${FILESDIR}/${PN}.desktop"
54 newicon
"${S}/feeluown/gui/assets/icons/feeluown.png" "${PN}.png"