commit: 0a167c4551f527625f3073370a51cdf3dede5184 Author: Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com> AuthorDate: Tue Nov 7 15:04:25 2023 +0000 Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com> CommitDate: Tue Nov 7 15:13:34 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0a167c45
media-sound/yewtube: add dbus-python to test dependencies Closes: https://bugs.gentoo.org/916984 Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com> media-sound/yewtube/yewtube-2.10.5.ebuild | 20 ++++++++++++++------ media-sound/yewtube/yewtube-9999.ebuild | 20 ++++++++++++++------ 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/media-sound/yewtube/yewtube-2.10.5.ebuild b/media-sound/yewtube/yewtube-2.10.5.ebuild index 12dfdd453a..22f0815734 100644 --- a/media-sound/yewtube/yewtube-2.10.5.ebuild +++ b/media-sound/yewtube/yewtube-2.10.5.ebuild @@ -14,21 +14,29 @@ else KEYWORDS="~amd64" fi +IUSE="test" +RESTRICT="!test? ( test )" + DESCRIPTION="Terminal-based YouTube player and downloader" HOMEPAGE="https://github.com/mps-youtube/yewtube https://pypi.org/project/yewtube/" LICENSE="GPL-3" SLOT="0" -RDEPEND="${DEPEND} +RDEPEND=" media-video/ffmpeg - dev-python/requests - dev-python/pyperclip + dev-python/requests[${PYTHON_USEDEP}] + dev-python/pyperclip[${PYTHON_USEDEP}] net-misc/yt-dlp dev-python/youtube-search-python - dev-python/pylast - dev-python/pip - || ( media-video/mplayer media-video/mpv )" + dev-python/pylast[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + || ( media-video/mplayer media-video/mpv ) +" + +DEPEND=" + test? ( dev-python/dbus-python[${PYTHON_USEDEP}] ) +" distutils_enable_tests pytest diff --git a/media-sound/yewtube/yewtube-9999.ebuild b/media-sound/yewtube/yewtube-9999.ebuild index 12dfdd453a..22f0815734 100644 --- a/media-sound/yewtube/yewtube-9999.ebuild +++ b/media-sound/yewtube/yewtube-9999.ebuild @@ -14,21 +14,29 @@ else KEYWORDS="~amd64" fi +IUSE="test" +RESTRICT="!test? ( test )" + DESCRIPTION="Terminal-based YouTube player and downloader" HOMEPAGE="https://github.com/mps-youtube/yewtube https://pypi.org/project/yewtube/" LICENSE="GPL-3" SLOT="0" -RDEPEND="${DEPEND} +RDEPEND=" media-video/ffmpeg - dev-python/requests - dev-python/pyperclip + dev-python/requests[${PYTHON_USEDEP}] + dev-python/pyperclip[${PYTHON_USEDEP}] net-misc/yt-dlp dev-python/youtube-search-python - dev-python/pylast - dev-python/pip - || ( media-video/mplayer media-video/mpv )" + dev-python/pylast[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + || ( media-video/mplayer media-video/mpv ) +" + +DEPEND=" + test? ( dev-python/dbus-python[${PYTHON_USEDEP}] ) +" distutils_enable_tests pytest
