/[gentoo-x86]/dev-python/sepolgen/sepolgen-1.1.5.ebuild
Gentoo

Contents of /dev-python/sepolgen/sepolgen-1.1.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Jun 26 05:00:43 2012 UTC (21 months, 3 weeks ago) by floppym
Branch: MAIN
Changes since 1.3: +2 -2 lines
Restrict pypy.

(Portage version: 2.2.0_alpha113/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/sepolgen-1.1.5.ebuild,v 1.3 2012/04/29 10:08:34 swift Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
9
10 inherit python
11
12 DESCRIPTION="SELinux policy generation library"
13 HOMEPAGE="http://userspace.selinuxproject.org"
14 SRC_URI="http://userspace.selinuxproject.org/releases/20120216/${P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 x86"
19 IUSE=""
20
21 DEPEND=">=sys-libs/libselinux-2.0[python]
22 app-admin/setools[python]"
23 RDEPEND="${DEPEND}"
24
25 src_prepare() {
26 # fix up default paths to not be RH specific
27 sed -i -e 's:/usr/share/selinux/devel:/usr/share/selinux/strict:' \
28 "${S}/src/sepolgen/defaults.py" || die
29 sed -i -e 's:/usr/share/selinux/devel:/usr/share/selinux/strict/include:' \
30 "${S}/src/sepolgen/module.py" || die
31 }
32
33 src_compile() {
34 :
35 }
36
37 src_test() {
38 if has_version sec-policy/selinux-base-policy; then
39 python_src_test
40 else
41 ewarn "Sepolgen requires sec-policy/selinux-base-policy to run tests."
42 fi
43 }
44
45 src_install() {
46 installation() {
47 emake DESTDIR="${D}" PYTHONLIBDIR="$(python_get_sitedir)" install
48 }
49 python_execute_function installation
50 }
51
52 pkg_postinst() {
53 python_mod_optimize sepolgen
54 }
55
56 pkg_postrm() {
57 python_mod_cleanup sepolgen
58 }

  ViewVC Help
Powered by ViewVC 1.1.20