commit:     652acb7270bb8b0baf36f404f48263c54910e534
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  6 22:45:54 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Dec  6 22:47:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=652acb72

net-misc/gallery-dl: live ebuild tweaks

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 net-misc/gallery-dl/gallery-dl-9999.ebuild | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/net-misc/gallery-dl/gallery-dl-9999.ebuild 
b/net-misc/gallery-dl/gallery-dl-9999.ebuild
index b3da2a9c870f..b8a8623c53a8 100644
--- a/net-misc/gallery-dl/gallery-dl-9999.ebuild
+++ b/net-misc/gallery-dl/gallery-dl-9999.ebuild
@@ -4,34 +4,38 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 PYTHON_REQ_USE="sqlite,ssl,xml(+)"
 
 inherit distutils-r1 optfeature
 
 DESCRIPTION="Download image galleries and collections from several image 
hosting sites"
-HOMEPAGE="https://github.com/mikf/gallery-dl";
+HOMEPAGE="https://github.com/mikf/gallery-dl/";
 
-if [[ ${PV} == 9999 ]]; then
+if [[ "${PV}" == *9999* ]]; then
        inherit git-r3
+
        EGIT_REPO_URI="https://github.com/mikf/${PN}.git";
 else
-       SRC_URI="https://github.com/mikf/${PN}/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
+       SRC_URI="https://github.com/mikf/${PN}/archive/v${PV}.tar.gz
+               -> ${P}.gh.tar.gz"
+
        KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
 fi
 
 LICENSE="GPL-2"
 SLOT="0"
-# Tests require network access.
-PROPERTIES="test_network"
+PROPERTIES="test_network"                       # Tests require network access.
 RESTRICT="test"
 
-RDEPEND=">=dev-python/requests-2.11.0[${PYTHON_USEDEP}]"
+RDEPEND="
+       >=dev-python/requests-2.11.0[${PYTHON_USEDEP}]
+"
 
 distutils_enable_tests setup.py
 
 python_compile_all() {
-       emake PYTHON=${EPYTHON} data/completion/{,_}gallery-dl man
+       emake PYTHON="${EPYTHON}" data/completion/{,_}gallery-dl man
 }
 
 pkg_postinst() {

Reply via email to