mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
net-misc/gallery-dl: bring QA fixes from PR review
Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@ EAPI=7
|
|||||||
PYTHON_COMPAT=(python3_{7,8})
|
PYTHON_COMPAT=(python3_{7,8})
|
||||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
|
|
||||||
inherit eutils distutils-r1 optfeature
|
inherit distutils-r1 optfeature
|
||||||
|
|
||||||
DESCRIPTION="Download image galleries and collections from several image hosting sites"
|
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"
|
||||||
@@ -14,33 +14,26 @@ HOMEPAGE="https://github.com/mikf/gallery-dl"
|
|||||||
if [[ "${PV}" == *9999* ]]; then
|
if [[ "${PV}" == *9999* ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/mikf/${PN}.git"
|
EGIT_REPO_URI="https://github.com/mikf/${PN}.git"
|
||||||
KEYWORDS=""
|
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/mikf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/mikf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# tests require network access
|
||||||
RESTRICT="test"
|
RESTRICT="test"
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="bash-completion zsh-completion"
|
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
>=dev-python/requests-2.11.0[${PYTHON_USEDEP}]
|
>=dev-python/requests-2.11.0[${PYTHON_USEDEP}]
|
||||||
"
|
"
|
||||||
|
|
||||||
# tests require network access
|
|
||||||
distutils_enable_tests setup.py
|
distutils_enable_tests setup.py
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
if use bash-completion || use zsh-completion
|
emake data/completion/gallery-dl
|
||||||
then
|
emake data/completion/_gallery-dl
|
||||||
emake completion
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake man
|
emake man
|
||||||
|
|
||||||
# this will install shell completion and man pages generated above (if any)
|
|
||||||
distutils-r1_src_compile
|
distutils-r1_src_compile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ EAPI=7
|
|||||||
PYTHON_COMPAT=(python3_{7,8})
|
PYTHON_COMPAT=(python3_{7,8})
|
||||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
|
|
||||||
inherit eutils distutils-r1 optfeature
|
inherit distutils-r1 optfeature
|
||||||
|
|
||||||
DESCRIPTION="Download image galleries and collections from several image hosting sites"
|
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"
|
||||||
@@ -14,33 +14,26 @@ HOMEPAGE="https://github.com/mikf/gallery-dl"
|
|||||||
if [[ "${PV}" == *9999* ]]; then
|
if [[ "${PV}" == *9999* ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/mikf/${PN}.git"
|
EGIT_REPO_URI="https://github.com/mikf/${PN}.git"
|
||||||
KEYWORDS=""
|
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/mikf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/mikf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# tests require network access
|
||||||
RESTRICT="test"
|
RESTRICT="test"
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="bash-completion zsh-completion"
|
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
>=dev-python/requests-2.11.0[${PYTHON_USEDEP}]
|
>=dev-python/requests-2.11.0[${PYTHON_USEDEP}]
|
||||||
"
|
"
|
||||||
|
|
||||||
# tests require network access
|
|
||||||
distutils_enable_tests setup.py
|
distutils_enable_tests setup.py
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
if use bash-completion || use zsh-completion
|
emake data/completion/gallery-dl
|
||||||
then
|
emake data/completion/_gallery-dl
|
||||||
emake completion
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake man
|
emake man
|
||||||
|
|
||||||
# this will install shell completion and man pages generated above (if any)
|
|
||||||
distutils-r1_src_compile
|
distutils-r1_src_compile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user