1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs eutils
10 MY_RELEASEDATE="20160223"
15 DESCRIPTION="SELinux policy compiler"
16 HOMEPAGE="http://userspace.selinuxproject.org"
18 if [[ ${PV} == 9999 ]] ; then
20 EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
21 S="${WORKDIR}/${MY_P}/${PN}"
23 SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz"
24 KEYWORDS="amd64 ~arm ~arm64 ~mips x86"
25 S="${WORKDIR}/${MY_P}"
32 DEPEND=">=sys-libs/libsepol-${SEPOL_VER}
33 >=sys-libs/libsemanage-${SEMNG_VER}
37 RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}"
44 emake CC="$(tc-getCC)" YACC="bison -y" LIBDIR="\$(PREFIX)/$(get_libdir)"
48 emake DESTDIR="${D}" install
51 dobin "${S}/test/dismod"
52 dobin "${S}/test/dispol"
57 einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy."