Skip to content

Commit

Permalink
media-sound/yewtube: add 2.12.0
Browse files Browse the repository at this point in the history
Signed-off-by: Takuya Wakazono <[email protected]>
  • Loading branch information
pastalian committed Sep 17, 2024
1 parent aa7d322 commit e120bae
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 8 deletions.
1 change: 1 addition & 0 deletions media-sound/yewtube/Manifest
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
53 changes: 53 additions & 0 deletions media-sound/yewtube/yewtube-2.12.0.ebuild
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
}
8 changes: 0 additions & 8 deletions media-sound/yewtube/yewtube-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,3 @@ src_prepare() {

distutils-r1_src_prepare
}

src_compile() {
distutils-r1_src_compile --build-dir "${WORKDIR}/${P}"
}

src_install() {
distutils-r1_src_install --build-dir "${WORKDIR}/${P}"
}

0 comments on commit e120bae

Please sign in to comment.