diff options
Diffstat (limited to 'net-misc/ytmdl/ytmdl-2023.11.26.ebuild')
-rw-r--r-- | net-misc/ytmdl/ytmdl-2023.11.26.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/net-misc/ytmdl/ytmdl-2023.11.26.ebuild b/net-misc/ytmdl/ytmdl-2023.11.26.ebuild new file mode 100644 index 000000000000..c0d47ca80f69 --- /dev/null +++ b/net-misc/ytmdl/ytmdl-2023.11.26.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit bash-completion-r1 distutils-r1 edo + +DESCRIPTION="Simple app to get songs from youtube in mp3 format" +HOMEPAGE="https://ytmdl.deepjyoti30.dev/ + https://github.com/deepjyoti30/ytmdl/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/deepjyoti30/${PN}.git" +else + SRC_URI="https://github.com/deepjyoti30/${PN}/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="MIT" +SLOT="0" + +RDEPEND=" + >=net-misc/yt-dlp-2022.3.8.2[${PYTHON_USEDEP}] + dev-python/PySocks[${PYTHON_USEDEP}] + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/ffmpeg-python[${PYTHON_USEDEP}] + dev-python/itunespy[${PYTHON_USEDEP}] + dev-python/musicbrainzngs[${PYTHON_USEDEP}] + dev-python/pyDes[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/rich[${PYTHON_USEDEP}] + dev-python/simber[${PYTHON_USEDEP}] + dev-python/spotipy[${PYTHON_USEDEP}] + dev-python/unidecode[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/youtube-search-python[${PYTHON_USEDEP}] + dev-python/ytmusicapi[${PYTHON_USEDEP}] + media-libs/mutagen[${PYTHON_USEDEP}] + net-misc/downloader-cli[${PYTHON_USEDEP}] +" + +python_compile() { + distutils-r1_python_compile + + edo "${EPYTHON}" ./utils/completion.py +} + +src_install() { + distutils-r1_src_install + + newbashcomp "${PN}.bash" "${PN}" +} |