From 4bba72c3b0b315b91fb59d814b6e8494595ab253 Mon Sep 17 00:00:00 2001 From: XGQT Date: Sun, 22 Mar 2020 00:54:20 +0100 Subject: [PATCH] net-misc/ytmdl: add version 2020.03.21 and 9999 Package-Manager: Portage-2.3.89, Repoman-2.3.20 --- net-misc/ytmdl/Manifest | 1 + net-misc/ytmdl/metadata.xml | 7 ++++ net-misc/ytmdl/ytmdl-2020.03.21.ebuild | 48 ++++++++++++++++++++++++++ net-misc/ytmdl/ytmdl-9999.ebuild | 48 ++++++++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 net-misc/ytmdl/Manifest create mode 100644 net-misc/ytmdl/metadata.xml create mode 100644 net-misc/ytmdl/ytmdl-2020.03.21.ebuild create mode 100644 net-misc/ytmdl/ytmdl-9999.ebuild diff --git a/net-misc/ytmdl/Manifest b/net-misc/ytmdl/Manifest new file mode 100644 index 0000000..dc9cdb6 --- /dev/null +++ b/net-misc/ytmdl/Manifest @@ -0,0 +1 @@ +DIST ytmdl-2020.03.21.tar.gz 4913549 BLAKE2B 890d2d674fda0799df5d7a645338cf1fb9b3e14018b3e6ffe0452c8c20a3c9c8ceed3d244917cfa16ea7cb4b56a58399f40273e2fd9f9f1241bb3d377a38a834 SHA512 d47891efb6d977da05679cc5f0f1a4e12d8e2e60dcd015fd23ac6a61cf37a77f1c2e1e9617491bb05bdabc6d5756d861ff9e6a50b08efd0c8317e1328c4fbc46 diff --git a/net-misc/ytmdl/metadata.xml b/net-misc/ytmdl/metadata.xml new file mode 100644 index 0000000..d1d57c8 --- /dev/null +++ b/net-misc/ytmdl/metadata.xml @@ -0,0 +1,7 @@ + + + + + deepjyoti30/ytmdl + + diff --git a/net-misc/ytmdl/ytmdl-2020.03.21.ebuild b/net-misc/ytmdl/ytmdl-2020.03.21.ebuild new file mode 100644 index 0000000..31d9020 --- /dev/null +++ b/net-misc/ytmdl/ytmdl-2020.03.21.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="A simple app to get songs from youtube in mp3 format" +HOMEPAGE="https://github.com/deepjyoti30/ytmdl" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/deepjyoti30/${PN}.git" + KEYWORDS="" +else + SRC_URI="https://github.com/deepjyoti30/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="mirror" +LICENSE="MIT" +SLOT="0" +IUSE="" + +src_prepare() { + # Excerpt from https://pypi.org/project/bs4 + # "The official name of PyPI’s Beautiful Soup Python package is beautifulsoup4. + # This package ensures that if you type pip install bs4 by mistake you will end up with Beautiful Soup." + # ;-) + sed -i 's/bs4/beautifulsoup4/' setup.py + distutils-r1_src_prepare +} + +RDEPEND=" + >=dev-python/requests-2.22.0[${PYTHON_USEDEP}] + dev-python/PySocks[${PYTHON_USEDEP}] + dev-python/beautifulsoup:4[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/ffmpeg-python[${PYTHON_USEDEP}] + dev-python/itunespy[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}] + media-libs/mutagen[${PYTHON_USEDEP}] + net-misc/downloader-cli[${PYTHON_USEDEP}] + net-misc/youtube-dl[${PYTHON_USEDEP}] +" diff --git a/net-misc/ytmdl/ytmdl-9999.ebuild b/net-misc/ytmdl/ytmdl-9999.ebuild new file mode 100644 index 0000000..31d9020 --- /dev/null +++ b/net-misc/ytmdl/ytmdl-9999.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="A simple app to get songs from youtube in mp3 format" +HOMEPAGE="https://github.com/deepjyoti30/ytmdl" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/deepjyoti30/${PN}.git" + KEYWORDS="" +else + SRC_URI="https://github.com/deepjyoti30/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="mirror" +LICENSE="MIT" +SLOT="0" +IUSE="" + +src_prepare() { + # Excerpt from https://pypi.org/project/bs4 + # "The official name of PyPI’s Beautiful Soup Python package is beautifulsoup4. + # This package ensures that if you type pip install bs4 by mistake you will end up with Beautiful Soup." + # ;-) + sed -i 's/bs4/beautifulsoup4/' setup.py + distutils-r1_src_prepare +} + +RDEPEND=" + >=dev-python/requests-2.22.0[${PYTHON_USEDEP}] + dev-python/PySocks[${PYTHON_USEDEP}] + dev-python/beautifulsoup:4[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/ffmpeg-python[${PYTHON_USEDEP}] + dev-python/itunespy[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}] + media-libs/mutagen[${PYTHON_USEDEP}] + net-misc/downloader-cli[${PYTHON_USEDEP}] + net-misc/youtube-dl[${PYTHON_USEDEP}] +"