summaryrefslogtreecommitdiff
path: root/sys-apps/apparmor-utils
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-29 19:03:00 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-29 19:03:00 +0100
commit7e9bb12fe2ca611685176c916b558771f1127e8d (patch)
treee81c226b813864c7e56e4e0cb205a6ebe99df4db /sys-apps/apparmor-utils
parentd3e7561c32de28fbee1a3cdf2f31953a3280485a (diff)
sys-apps/apparmor-utils : add python3.7 compat
Diffstat (limited to 'sys-apps/apparmor-utils')
-rwxr-xr-x[-rw-r--r--]sys-apps/apparmor-utils/Manifest0
-rwxr-xr-x[-rw-r--r--]sys-apps/apparmor-utils/apparmor-utils-2.13.4-r10.ebuild7
2 files changed, 4 insertions, 3 deletions
diff --git a/sys-apps/apparmor-utils/Manifest b/sys-apps/apparmor-utils/Manifest
index ba3818a6..ba3818a6 100644..100755
--- a/sys-apps/apparmor-utils/Manifest
+++ b/sys-apps/apparmor-utils/Manifest
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
index 47a94917..f753e04d 100644..100755
--- 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