mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -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+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
#DEPEND=""
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
@@ -36,6 +37,10 @@ RDEPEND="
|
||||
dev-util/distribution-gpg-keys
|
||||
dev-util/mock-core-configs
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
test? ( $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]') )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
@@ -77,6 +82,10 @@ src_install() {
|
||||
keepdir /var/lib/mock
|
||||
}
|
||||
|
||||
src_test() {
|
||||
epytest tests
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "chain mode support" app-arch/createrepo_c
|
||||
optfeature "pigz in root_cache plugin" app-arch/pigz
|
||||
|
||||
Reference in New Issue
Block a user