1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 MY_RELEASEDATE="20170804"
15 if [[ ${PV} == *9999 ]] ; then
17 EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
18 S="${WORKDIR}/${MY_P}/${PN}"
20 SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz"
21 KEYWORDS="amd64 ~arm ~arm64 ~mips x86"
22 S="${WORKDIR}/${MY_P}"
25 DESCRIPTION="SELinux policy module utilities"
26 HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
31 DEPEND=">=sys-libs/libsepol-${SEPOL_VER}:="
34 !<sys-apps/policycoreutils-2.7_pre"
39 sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
45 LIBDIR="\$(PREFIX)/$(get_libdir)"
49 emake DESTDIR="${D}" \
50 LIBDIR="\$(PREFIX)/$(get_libdir)" \
51 LIBSEPOLA="/usr/$(get_libdir)/libsepol.a" \