mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
dev-util/mock: override src_test function
Closes: https://bugs.gentoo.org/920445 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -17,9 +17,10 @@ SRC_URI="https://github.com/rpm-software-management/mock/releases/download/${P}-
|
|||||||
LICENSE="GPL-2+"
|
LICENSE="GPL-2+"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="test"
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
#DEPEND=""
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
${PYTHON_DEPS}
|
${PYTHON_DEPS}
|
||||||
$(python_gen_cond_dep '
|
$(python_gen_cond_dep '
|
||||||
@@ -36,6 +37,10 @@ RDEPEND="
|
|||||||
dev-util/distribution-gpg-keys
|
dev-util/distribution-gpg-keys
|
||||||
dev-util/mock-core-configs
|
dev-util/mock-core-configs
|
||||||
"
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
test? ( $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]') )
|
||||||
|
"
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
@@ -77,6 +82,10 @@ src_install() {
|
|||||||
keepdir /var/lib/mock
|
keepdir /var/lib/mock
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
epytest tests
|
||||||
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
optfeature "chain mode support" app-arch/createrepo_c
|
optfeature "chain mode support" app-arch/createrepo_c
|
||||||
optfeature "pigz in root_cache plugin" app-arch/pigz
|
optfeature "pigz in root_cache plugin" app-arch/pigz
|
||||||
|
|||||||
Reference in New Issue
Block a user