summaryrefslogtreecommitdiff
blob: cabf08a0d67665757adb713ec8caf565f5831aa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-selinux/python-selinux-2.16-r2.ebuild,v 1.4 2010/04/16 19:44:03 arfrever Exp $

inherit python

DESCRIPTION="Extra python bindings for SELinux functions"
HOMEPAGE="http://www.gentoo.org/proj/en/hardened/selinux/"
LICENSE="GPL-2"
SLOT="0"
SRC_URI="mirror://gentoo/${P}-1.tar.bz2"

KEYWORDS="amd64 x86"
IUSE=""

DEPEND="dev-lang/python
	>=sys-libs/libselinux-1.28-r1"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${PN}

src_compile() {
	emake PYVER="$(python_get_version)"
}

src_install() {
	python_need_rebuild
	make DESTDIR="${D}" PYVER="$(python_get_version)" install
}