1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit bash-completion-r1 linux-info
8 DESCRIPTION="Unprivileged sandboxing tool, namespaces-powered chroot-like solution"
9 HOMEPAGE="https://github.com/containers/bubblewrap/"
10 SRC_URI="https://github.com/containers/${PN}/releases/download/v${PV}/${P}.tar.xz"
14 KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 x86"
20 selinux? ( >=sys-libs/libselinux-2.1.9 )
23 app-text/docbook-xml-dtd:4.3
24 app-text/docbook-xsl-stylesheets
29 # tests require root priviledge
32 "${FILESDIR}/bubblewrap-0.3.1-selinux-configure.patch" # bug 674312
36 if [[ ${MERGE_TYPE} != buildonly ]]; then
37 CONFIG_CHECK="~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS"
44 $(use_enable selinux) \
46 "--with-bash-completion-dir=$(get_bashcompdir)" \
47 "--with-priv-mode=$(usex suid setuid none)"