diff --git a/media-sound/streamrip/Manifest b/media-sound/streamrip/Manifest new file mode 100644 index 0000000000..dfa8f114b1 --- /dev/null +++ b/media-sound/streamrip/Manifest @@ -0,0 +1 @@ +DIST streamrip-2.2.0.tar.gz 1549785 BLAKE2B a4cd87f438000afe2c53e732492fe4bc3fc37cad01bc20b1f3fcfa66d6167f8bc4a5dd14f04fb402ef766987b87aa1e6bac03478d21ceb89f4692aa7383c7626 SHA512 e2e21f242fac10b4a3faff95d665bea60c679961c841b24e18df8424dfec04a3a83dbea86ed594d5e4ed4d6a9f76339a3f2ccc796e6f88fdb7e489b7f80829e9 diff --git a/media-sound/streamrip/metadata.xml b/media-sound/streamrip/metadata.xml new file mode 100644 index 0000000000..f8a6e43b11 --- /dev/null +++ b/media-sound/streamrip/metadata.xml @@ -0,0 +1,12 @@ + + + + + Pavel Sobolev + contact@paveloom.dev + + + https://github.com/nathom/streamrip/issues + nathom/streamrip + + diff --git a/media-sound/streamrip/streamrip-2.2.0.ebuild b/media-sound/streamrip/streamrip-2.2.0.ebuild new file mode 100644 index 0000000000..a5b27f63e4 --- /dev/null +++ b/media-sound/streamrip/streamrip-2.2.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{12..14} ) + +inherit distutils-r1 + +DESCRIPTION="A fast, all-in-one music downloader for Qobuz, Deezer, Tidal, and SoundCloud" +HOMEPAGE="https://github.com/nathom/streamrip" +SRC_URI="https://github.com/nathom/streamrip/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/aiodns[${PYTHON_USEDEP}] + dev-python/aiofiles[${PYTHON_USEDEP}] + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/aiolimiter[${PYTHON_USEDEP}] + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/click-help-colors[${PYTHON_USEDEP}] + dev-python/deezer-py[${PYTHON_USEDEP}] + dev-python/m3u8[${PYTHON_USEDEP}] + dev-python/pathvalidate[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pycryptodome[${PYTHON_USEDEP}] + dev-python/rich[${PYTHON_USEDEP}] + dev-python/simple-term-menu[${PYTHON_USEDEP}] + dev-python/tomlkit[${PYTHON_USEDEP}] + media-libs/mutagen[${PYTHON_USEDEP}] +" + +# Both install `/usr/bin/rip` +DEPEND+=" + !!media-sound/rip +" + +EPYTEST_PLUGINS=( pytest-asyncio ) +distutils_enable_tests pytest + +src_prepare() { + sed -i "s/Cryptodome/Crypto/g" \ + "streamrip/client/deezer.py" \ + "streamrip/client/downloadable.py" || die + + distutils-r1_src_prepare +} + +src_install() { + distutils-r1_src_install + + dodoc LICENSE +}