mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-apps/apparmor-utils: partially wire up tests
Still restricted, more of a Python mess to be fixed here. Fix style a bit while here too. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -18,20 +18,24 @@ LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~ppc64 ~riscv"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# Needs fixing to use the right Python
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
~sys-libs/libapparmor-${PV}
|
||||
${PYTHON_DEPS}"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
sys-devel/gettext
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
~sys-libs/libapparmor-${PV}[python,${PYTHON_USEDEP}]
|
||||
~sys-apps/apparmor-${PV}
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-python/notify2[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]"
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
~sys-apps/apparmor-${PV}
|
||||
~sys-libs/libapparmor-${PV}[python,${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.0.3-binutils-Fix-missing-include-limits.h.patch"
|
||||
@@ -63,6 +67,12 @@ src_compile() {
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
pushd utils > /dev/null || die
|
||||
python_foreach_impl emake USE_SYSTEM=1 PYFLAKES=true check
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd utils > /dev/null || die
|
||||
emake DESTDIR="${D}" VIM_INSTALL_PATH="${D}/usr/share/vim/vimfiles/syntax" install
|
||||
|
||||
Reference in New Issue
Block a user