-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Takuya Wakazono <[email protected]>
- Loading branch information
Showing
3 changed files
with
54 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST yewtube-2.10.5.gh.tar.gz 221501 BLAKE2B 7f377a3d8c1927ee56abf61f213895df908f880a2cec79685b21006a39eb2c9d8e0f5d2a4ac826e0a509cbc4abed3a1a1dafa80f89e59d7e6c2036f195255b89 SHA512 8eabb2eb53dc530269a766802ed5df537fea1596f1694f7fb91ccee8ebbcb7c1d3741f80fd8a6de52873132bc61526072bef7c2ecc295d4babcfe564bf7cc05a | ||
DIST yewtube-2.12.0.gh.tar.gz 222486 BLAKE2B f26ee60ba7efbc54c1a92c844e9b3b850f4e34b7e8ba1dae85b7b0c342e5e9c098d6da5df48193d9e57b0258f4a5f2512cc2011d9abebe425c482bacdbd0907d SHA512 30d7590fc9d085f26d632ab6728e0de521a38e73c3b8064041a9398cf2593e80a30dfefa1e9c203bf76326ceff19adb953ad5f68b46d2a5fae94d64617e57b46 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
DISTUTILS_USE_PEP517=setuptools | ||
PYTHON_COMPAT=(python3_{9..12}) | ||
inherit distutils-r1 | ||
|
||
DESCRIPTION="Terminal-based YouTube player and downloader" | ||
HOMEPAGE="https://github.com/mps-youtube/yewtube https://pypi.org/project/yewtube/" | ||
|
||
if [[ ${PV} == "9999" ]]; then | ||
EGIT_REPO_URI="https://github.com/mps-youtube/yewtube.git" | ||
inherit git-r3 | ||
else | ||
SRC_URI="https://github.com/mps-youtube/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" | ||
KEYWORDS="~amd64" | ||
fi | ||
|
||
LICENSE="GPL-3+" | ||
SLOT="0" | ||
|
||
IUSE="test" | ||
RESTRICT="!test? ( test )" | ||
|
||
RDEPEND=" | ||
media-video/ffmpeg | ||
dev-python/requests[${PYTHON_USEDEP}] | ||
dev-python/pyperclip[${PYTHON_USEDEP}] | ||
net-misc/yt-dlp[${PYTHON_USEDEP}] | ||
dev-python/youtube-search-python[${PYTHON_USEDEP}] | ||
dev-python/pylast[${PYTHON_USEDEP}] | ||
dev-python/pip[${PYTHON_USEDEP}] | ||
dev-python/pipenv[${PYTHON_USEDEP}] | ||
dev-python/setuptools[${PYTHON_USEDEP}] | ||
|| ( media-video/mplayer media-video/mpv ) | ||
" | ||
|
||
DEPEND=" | ||
test? ( | ||
dev-python/dbus-python[${PYTHON_USEDEP}] | ||
dev-python/pygobject[${PYTHON_USEDEP}] | ||
) | ||
" | ||
|
||
distutils_enable_tests pytest | ||
|
||
src_prepare() { | ||
# bug #939186 | ||
sed -i 's/from pip\._vendor //' mps_youtube/__init__.py || die | ||
|
||
distutils-r1_src_prepare | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters