/[gentoo-x86]/sys-libs/libsepol/libsepol-2.1.4-r1.ebuild
Gentoo

Diff of /sys-libs/libsepol/libsepol-2.1.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
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/Attic/libsepol-2.1.4-r1.ebuild,v 1.2 2012/04/29 10:07:40 swift Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/Attic/libsepol-2.1.4-r1.ebuild,v 1.3 2012/10/03 20:34:13 vapier Exp $
4 4
5EAPI="2" 5EAPI="4"
6 6
7inherit multilib toolchain-funcs eutils 7inherit multilib toolchain-funcs eutils
8 8
9DESCRIPTION="SELinux binary policy representation library" 9DESCRIPTION="SELinux binary policy representation library"
10HOMEPAGE="http://userspace.selinuxproject.org" 10HOMEPAGE="http://userspace.selinuxproject.org"
13LICENSE="GPL-2" 13LICENSE="GPL-2"
14SLOT="0" 14SLOT="0"
15KEYWORDS="amd64 x86" 15KEYWORDS="amd64 x86"
16IUSE="" 16IUSE=""
17 17
18DEPEND=""
19RDEPEND=""
20
21# tests are not meant to be run outside of the 18# tests are not meant to be run outside of the
22# full SELinux userland repo 19# full SELinux userland repo
23RESTRICT="test" 20RESTRICT="test"
24 21
25src_prepare() { 22src_prepare() {
26 # fix up paths for multilib 23 # fix up paths for multilib
24 sed -i \
27 sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" src/Makefile \ 25 -e "/^LIBDIR/s/lib/$(get_libdir)/" \
28 || die "Fix for multilib LIBDIR failed."
29 sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" src/Makefile \ 26 -e "/^SHLIBDIR/s/lib/$(get_libdir)/" \
30 || die "Fix for multilib SHLIBDIR failed." 27 -e 's:\<ranlib\>:$(RANLIB):' \
28 src/Makefile || die
31 epatch "${FILESDIR}/libsepol-2.1.4-fix_role_fix_callback.patch" 29 epatch "${FILESDIR}/libsepol-2.1.4-fix_role_fix_callback.patch"
30 tc-export AR CC RANLIB
32} 31}
33
34src_compile() {
35 emake AR="$(tc-getAR)" CC="$(tc-getCC)" || die
36}
37
38src_install() {
39 emake DESTDIR="${D}" install || die
40}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20