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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Jun 26 04:57:47 2012 UTC (2 years, 1 month ago) by floppym
Branch: MAIN
Changes since 1.1: +3 -3 lines
Set PYTHON_DEPEND="*". Restrict pypy. Thanks Arfrever.

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

1 swift 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 floppym 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/sepolgen-1.1.5-r2.ebuild,v 1.1 2012/06/25 20:07:58 swift Exp $
4 swift 1.1
5     EAPI="3"
6 floppym 1.2 PYTHON_DEPEND="*"
7 swift 1.1 SUPPORT_PYTHON_ABIS="1"
8 floppym 1.2 RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
9 swift 1.1
10     inherit python eutils
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     http://dev.gentoo.org/~swift/patches/sepolgen/sepolgen-1.1.5-gentoo-r2.tar.gz"
16    
17     LICENSE="GPL-2"
18     SLOT="0"
19     KEYWORDS="~amd64 ~x86"
20     IUSE=""
21    
22     DEPEND=">=sys-libs/libselinux-2.0[python]
23     app-admin/setools[python]"
24     RDEPEND="${DEPEND}"
25    
26     src_prepare() {
27     # fix up default paths to not be RH specific
28     sed -i -e 's:/usr/share/selinux/devel:/usr/share/selinux/strict:' \
29     "${S}/src/sepolgen/defaults.py" || die
30     sed -i -e 's:/usr/share/selinux/devel:/usr/share/selinux/strict/include:' \
31     "${S}/src/sepolgen/module.py" || die
32    
33     EPATCH_MULTI_MSG="Applying sepolgen patches ... " \
34     EPATCH_SUFFIX="patch" \
35     EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \
36     EPATCH_FORCE="yes" \
37     epatch
38     }
39    
40     src_compile() {
41     :
42     }
43    
44     src_test() {
45     if has_version sec-policy/selinux-base-policy; then
46     python_src_test
47     else
48     ewarn "Sepolgen requires sec-policy/selinux-base-policy to run tests."
49     fi
50     }
51    
52     src_install() {
53     installation() {
54     emake DESTDIR="${D}" PYTHONLIBDIR="$(python_get_sitedir)" install
55     }
56     python_execute_function installation
57     }
58    
59     pkg_postinst() {
60     python_mod_optimize sepolgen
61     }
62    
63     pkg_postrm() {
64     python_mod_cleanup sepolgen
65     }

  ViewVC Help
Powered by ViewVC 1.1.20