2019-02-09 21:58:25 +03:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2015-06-10 11:13:54 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-08-08 09:25:00 +03:00
|
|
|
EAPI="6"
|
2015-06-10 11:13:54 +03:00
|
|
|
|
2016-08-08 09:25:00 +03:00
|
|
|
inherit multilib toolchain-funcs multilib-minimal
|
2015-06-10 11:13:54 +03:00
|
|
|
|
|
|
|
MY_P="${P//_/-}"
|
2019-04-01 08:47:26 +03:00
|
|
|
MY_RELEASEDATE="20190315"
|
2015-06-10 11:13:54 +03:00
|
|
|
|
|
|
|
DESCRIPTION="SELinux binary policy representation library"
|
|
|
|
HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
|
|
|
|
|
|
|
|
if [[ ${PV} == 9999 ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
|
|
|
|
S="${WORKDIR}/${MY_P}/${PN}"
|
|
|
|
else
|
2019-02-09 21:58:25 +03:00
|
|
|
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_RELEASEDATE}/${MY_P}.tar.gz"
|
2016-02-19 09:07:28 +03:00
|
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
|
2015-06-10 11:13:54 +03:00
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND=""
|
|
|
|
|
2016-08-08 09:25:00 +03:00
|
|
|
# tests are not meant to be run outside of the full SELinux userland repo
|
2015-06-10 11:13:54 +03:00
|
|
|
RESTRICT="test"
|
|
|
|
|
|
|
|
src_prepare() {
|
2016-08-08 09:25:00 +03:00
|
|
|
eapply_user
|
2015-06-10 11:13:54 +03:00
|
|
|
multilib_copy_sources
|
|
|
|
}
|
|
|
|
|
|
|
|
multilib_src_compile() {
|
2018-04-27 20:48:59 +03:00
|
|
|
tc-export CC AR RANLIB
|
|
|
|
emake \
|
|
|
|
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
|
|
|
SHLIBDIR="/$(get_libdir)"
|
2015-06-10 11:13:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
multilib_src_install() {
|
2018-04-27 20:48:59 +03:00
|
|
|
emake DESTDIR="${D}" \
|
|
|
|
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
|
|
|
SHLIBDIR="/$(get_libdir)" \
|
|
|
|
install
|
2015-06-10 11:13:54 +03:00
|
|
|
}
|