fuxploider: migrate to PYTHON_MULTI_USEDEP

This commit is contained in:
Yury Martynov 2020-02-10 22:11:17 +03:00
parent e7381f1d5f
commit 9790902ccf
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
2 changed files with 16 additions and 14 deletions

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6} )
PYTHON_COMPAT=( python3_{6,7,8} )
inherit eutils python-single-r1
@ -20,14 +20,15 @@ fi
LICENSE="GPL-3"
SLOT=0
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/requests[${PYTHON_USEDEP}]
dev-python/coloredlogs[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]"
$(python_gen_cond_dep '
dev-python/requests[${PYTHON_MULTI_USEDEP}]
dev-python/coloredlogs[${PYTHON_MULTI_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}]
')"
pkg_setup() {
python-single-r1_pkg_setup
@ -46,7 +47,7 @@ src_install() {
doins -r *
make_wrapper "fuxploider" \
"python3 /usr/share/${PN}/fuxploider.py" \
"${EPYTHON} /usr/share/${PN}/fuxploider.py" \
"/usr/share/${PN}"
dodoc README.md

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{5,6} )
PYTHON_COMPAT=( python3_{6,7,8} )
inherit eutils python-single-r1
@ -20,14 +20,15 @@ fi
LICENSE="GPL-3"
SLOT=0
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/requests[${PYTHON_USEDEP}]
dev-python/coloredlogs[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]"
$(python_gen_cond_dep '
dev-python/requests[${PYTHON_MULTI_USEDEP}]
dev-python/coloredlogs[${PYTHON_MULTI_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}]
')"
pkg_setup() {
python-single-r1_pkg_setup
@ -46,7 +47,7 @@ src_install() {
doins -r *
make_wrapper "fuxploider" \
"python3 /usr/share/${PN}/fuxploider.py" \
"${EPYTHON} /usr/share/${PN}/fuxploider.py" \
"/usr/share/${PN}"
dodoc README.md