1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit multilib toolchain-funcs eutils multilib-minimal
10 MY_RELEASEDATE="20150202"
12 DESCRIPTION="SELinux binary policy representation library"
13 HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
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}"
32 # tests are not meant to be run outside of the
33 # full SELinux userland repo
41 multilib_src_compile() {
43 LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
44 emake AR="$(tc-getAR)" CC="$(tc-getCC)"
47 multilib_src_install() {
48 LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
49 emake DESTDIR="${D}" install