/[gentoo-x86]/sys-libs/libsepol/libsepol-2.1.9-r3.ebuild
Gentoo

Contents of /sys-libs/libsepol/libsepol-2.1.9-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Aug 23 07:26:05 2013 UTC (11 months, 4 weeks ago) by swift
Branch: MAIN
Fix bug #481782 - Put right library paths in libsepol.pc file to get proper pkg-config --libs output

(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0xCDBA2FDB)

1 # Copyright 1999-2013 Gentoo Foundation
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-r2.ebuild,v 1.1 2013/08/15 18:22:22 swift Exp $
4
5 EAPI="4"
6
7 inherit multilib toolchain-funcs eutils multilib-minimal
8
9 DESCRIPTION="SELinux binary policy representation library"
10 HOMEPAGE="http://userspace.selinuxproject.org"
11 SRC_URI="http://userspace.selinuxproject.org/releases/20130423/${P}.tar.gz
12 http://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${P}-r1.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE=""
18
19 DEPEND=""
20 RDEPEND=""
21
22 # tests are not meant to be run outside of the
23 # full SELinux userland repo
24 RESTRICT="test"
25
26 src_prepare() {
27 EPATCH_MULTI_MSG="Applying libsepol patches ... " \
28 EPATCH_SUFFIX="patch" \
29 EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \
30 EPATCH_FORCE="yes" \
31 epatch
32
33 epatch_user
34 multilib_copy_sources
35 }
36
37 multilib_src_compile() {
38 tc-export RANLIB;
39 LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
40 emake AR="$(tc-getAR)" CC="$(tc-getCC)"
41 }
42
43 multilib_src_install() {
44 LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
45 emake DESTDIR="${D}" install
46 }

  ViewVC Help
Powered by ViewVC 1.1.20