From 82ddf78f5f0e91d356715e59a31af1dab13c0285 Mon Sep 17 00:00:00 2001 From: Elder <7101424-Wyndon@users.noreply.gitlab.com> Date: Tue, 15 Sep 2020 19:05:59 +0000 Subject: [PATCH] Update torbrowser-launcher-9999.ebuild --- .../torbrowser-launcher/torbrowser-launcher-9999.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild b/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild index 00f6af5..42d8ebd 100644 --- a/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild +++ b/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild @@ -22,13 +22,14 @@ fi RESTRICT="mirror" LICENSE="MIT" SLOT="0" -IUSE="" +IUSE="apparmor" RDEPEND=" app-crypt/gpgme[python,${PYTHON_USEDEP}] dev-python/PyQt5[${PYTHON_USEDEP},widgets] dev-python/PySocks[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] + apparmor? ( sys-libs/libapparmor ) " PATCHES=( @@ -39,8 +40,10 @@ python_install_all() { distutils-r1_python_install_all # delete apparmor profiles - rm -r "${D}/etc/apparmor.d" || die "Failed to remove apparmor profiles" - rmdir "${D}/etc" || die "Failed to remove empty directory" + if ! use apparmor; then + rm -r "${D}/etc/apparmor.d" || die "Failed to remove apparmor profiles" + rmdir "${D}/etc" || die "Failed to remove empty directory" + fi } pkg_postinst() {