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

Contents of /sys-libs/libsepol/libsepol-2.1.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Dec 30 15:19:13 2012 UTC (22 months, 3 weeks ago) by swift
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stabilize

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

1 swift 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 swift 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/libsepol-2.1.8-r1.ebuild,v 1.1 2012/12/09 19:19:26 swift Exp $
4 swift 1.1
5     EAPI="2"
6    
7     inherit multilib toolchain-funcs eutils
8    
9     DESCRIPTION="SELinux binary policy representation library"
10     HOMEPAGE="http://userspace.selinuxproject.org"
11     SRC_URI="http://userspace.selinuxproject.org/releases/20120924/${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 swift 1.2 KEYWORDS="amd64 x86"
17 swift 1.1 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     # 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
40     }
41    
42     src_compile() {
43     tc-export RANLIB;
44     emake AR="$(tc-getAR)" CC="$(tc-getCC)" || die
45     }
46    
47     src_install() {
48     emake DESTDIR="${D}" install || die
49     }

  ViewVC Help
Powered by ViewVC 1.1.20