Lines 2-10
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/libsepol-2.1.9-r1.ebuild,v 1.2 2013/06/16 18:11:28 swift Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/libsepol-2.1.9-r1.ebuild,v 1.2 2013/06/16 18:11:28 swift Exp $ |
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="4" |
6 |
|
6 |
|
7 |
inherit multilib toolchain-funcs eutils |
7 |
inherit multilib toolchain-funcs eutils multilib-minimal |
8 |
|
8 |
|
9 |
DESCRIPTION="SELinux binary policy representation library" |
9 |
DESCRIPTION="SELinux binary policy representation library" |
10 |
HOMEPAGE="http://userspace.selinuxproject.org" |
10 |
HOMEPAGE="http://userspace.selinuxproject.org" |
Lines 13-19
Link Here
|
13 |
|
13 |
|
14 |
LICENSE="GPL-2" |
14 |
LICENSE="GPL-2" |
15 |
SLOT="0" |
15 |
SLOT="0" |
16 |
KEYWORDS="amd64 x86" |
16 |
KEYWORDS="~amd64 ~x86" |
17 |
IUSE="" |
17 |
IUSE="" |
18 |
|
18 |
|
19 |
DEPEND="" |
19 |
DEPEND="" |
Lines 30-49
Link Here
|
30 |
EPATCH_FORCE="yes" \ |
30 |
EPATCH_FORCE="yes" \ |
31 |
epatch |
31 |
epatch |
32 |
|
32 |
|
33 |
# fix up paths for multilib |
|
|
34 |
sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" src/Makefile \ |
35 |
|| die "Fix for multilib LIBDIR failed." |
36 |
sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" src/Makefile \ |
37 |
|| die "Fix for multilib SHLIBDIR failed." |
38 |
|
39 |
epatch_user |
33 |
epatch_user |
|
|
34 |
multilib_copy_sources |
40 |
} |
35 |
} |
41 |
|
36 |
|
42 |
src_compile() { |
37 |
multilib_src_compile() { |
43 |
tc-export RANLIB; |
38 |
tc-export RANLIB; |
44 |
emake AR="$(tc-getAR)" CC="$(tc-getCC)" || die |
39 |
emake AR="$(tc-getAR)" CC="$(tc-getCC)" |
45 |
} |
40 |
} |
46 |
|
41 |
|
47 |
src_install() { |
42 |
multilib_src_install() { |
48 |
emake DESTDIR="${D}" install || die |
43 |
LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
|
|
44 |
emake DESTDIR="${D}" install |
49 |
} |
45 |
} |