From 7e9bb12fe2ca611685176c916b558771f1127e8d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Apr 2020 19:03:00 +0100 Subject: sys-apps/apparmor-utils : add python3.7 compat --- sys-apps/apparmor-utils/Manifest | 0 sys-apps/apparmor-utils/apparmor-utils-2.13.4-r10.ebuild | 7 ++++--- 2 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 sys-apps/apparmor-utils/Manifest mode change 100644 => 100755 sys-apps/apparmor-utils/apparmor-utils-2.13.4-r10.ebuild (limited to 'sys-apps/apparmor-utils') diff --git a/sys-apps/apparmor-utils/Manifest b/sys-apps/apparmor-utils/Manifest old mode 100644 new mode 100755 diff --git a/sys-apps/apparmor-utils/apparmor-utils-2.13.4-r10.ebuild b/sys-apps/apparmor-utils/apparmor-utils-2.13.4-r10.ebuild old mode 100644 new mode 100755 index 47a94917..f753e04d --- a/sys-apps/apparmor-utils/apparmor-utils-2.13.4-r10.ebuild +++ b/sys-apps/apparmor-utils/apparmor-utils-2.13.4-r10.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python{3_6,3_7} ) inherit eapi7-ver perl-module python-r1 toolchain-funcs MY_PV="$(ver_cut 1-2)" @@ -28,7 +28,7 @@ DEPEND="${COMMON_DEPEND} sys-devel/gettext " RDEPEND="${COMMON_DEPEND} - ~sys-libs/libapparmor-${PV}[perl,python] + ~sys-libs/libapparmor-${PV}[perl,python,${PYTHON_USEDEP}] ~sys-apps/apparmor-${PV} dev-perl/Locale-gettext dev-perl/RPC-XML @@ -70,8 +70,9 @@ src_install() { VIM_INSTALL_PATH="${D}/usr/share/vim/vimfiles/syntax" install install_python() { + local -x PYTHONDONTWRITEBYTECODE= "${PYTHON}" "${S}"/utils/python-tools-setup.py install --prefix=/usr \ - --root="${D}" --version="${PV}" + --root="${D}" --optimize 2 } python_foreach_impl install_python -- cgit v1.2.3