1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs eutils
12 DESCRIPTION="SELinux policy compiler"
13 HOMEPAGE="http://userspace.selinuxproject.org"
14 SRC_URI="http://userspace.selinuxproject.org/releases/20131030/${P}.tar.gz"
21 DEPEND=">=sys-libs/libsepol-${SEPOL_VER}
22 >=sys-libs/libsemanage-${SEMNG_VER}
26 RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}"
29 emake CC="$(tc-getCC)" YACC="bison -y" || die
37 emake DESTDIR="${D}" install || die
40 dobin "${S}/test/dismod"
41 dobin "${S}/test/dispol"
46 einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy."