Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libsemanage: ChangeLog libsemanage-2.0.45.ebuild
Date: Sat, 05 Feb 2011 23:02:39
Message-Id: 20110205230224.1B51720054@flycatcher.gentoo.org
1 arfrever 11/02/05 23:02:24
2
3 Modified: ChangeLog libsemanage-2.0.45.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS (bug #353764). Respect AR and CC.
6
7 (Portage version: 2.2.0_alpha20/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.31 sys-libs/libsemanage/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.31&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.31&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.30&r2=1.31
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v
19 retrieving revision 1.30
20 retrieving revision 1.31
21 diff -u -r1.30 -r1.31
22 --- ChangeLog 5 Feb 2011 11:15:49 -0000 1.30
23 +++ ChangeLog 5 Feb 2011 23:02:24 -0000 1.31
24 @@ -1,6 +1,10 @@
25 # ChangeLog for sys-libs/libsemanage
26 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.30 2011/02/05 11:15:49 blueness Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.31 2011/02/05 23:02:24 arfrever Exp $
29 +
30 + 05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + libsemanage-2.0.45.ebuild:
32 + Set SUPPORT_PYTHON_ABIS (bug #353764). Respect AR and CC.
33
34 *libsemanage-2.0.45 (05 Feb 2011)
35
36
37
38
39 1.2 sys-libs/libsemanage/libsemanage-2.0.45.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild?r1=1.1&r2=1.2
44
45 Index: libsemanage-2.0.45.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- libsemanage-2.0.45.ebuild 5 Feb 2011 11:15:49 -0000 1.1
52 +++ libsemanage-2.0.45.ebuild 5 Feb 2011 23:02:24 -0000 1.2
53 @@ -1,10 +1,13 @@
54 # Copyright 1999-2011 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild,v 1.1 2011/02/05 11:15:49 blueness Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild,v 1.2 2011/02/05 23:02:24 arfrever Exp $
58
59 -IUSE=""
60 +EAPI="2"
61 +PYTHON_DEPEND="*"
62 +SUPPORT_PYTHON_ABIS="1"
63 +RESTRICT_PYTHON_ABIS="*-jython"
64
65 -inherit eutils multilib python toolchain-funcs
66 +inherit multilib python toolchain-funcs
67
68 SEPOL_VER="2.0.41"
69 SELNX_VER="2.0.94"
70 @@ -12,9 +15,12 @@
71 DESCRIPTION="SELinux kernel and policy management library"
72 HOMEPAGE="http://userspace.selinuxproject.org"
73 SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${P}.tar.gz"
74 +
75 LICENSE="GPL-2"
76 SLOT="0"
77 KEYWORDS="~amd64 ~x86"
78 +IUSE=""
79 +
80 DEPEND=">=sys-libs/libsepol-${SEPOL_VER}
81 >=sys-libs/libselinux-${SELNX_VER}
82 dev-libs/ustr"
83 @@ -24,10 +30,7 @@
84 # full SELinux userland repo
85 RESTRICT="test"
86
87 -src_unpack() {
88 - unpack ${A}
89 - cd "${S}"
90 -
91 +src_prepare() {
92 echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf"
93 echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
94 echo "# or debugging of policy." >> "${S}/src/semanage.conf"
95 @@ -53,22 +56,37 @@
96 }
97
98 src_compile() {
99 - emake PYLIBVER="python$(python_get_version)" all || die
100 - emake PYLIBVER="python$(python_get_version)" pywrap || die
101 + emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
102 +
103 + python_copy_sources src
104 + building() {
105 + emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" pywrap
106 + }
107 + python_execute_function -s --source-dir src building
108 }
109
110 src_install() {
111 - python_need_rebuild
112 - make DESTDIR="${D}" PYLIBVER="python$(python_get_version)" \
113 - LIBDIR="${D}/usr/$(get_libdir)/" \
114 - SHLIBDIR="${D}/$(get_libdir)/" install install-pywrap
115 - dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so"
116 + emake \
117 + DESTDIR="${D}" \
118 + LIBDIR="${D}usr/$(get_libdir)" \
119 + SHLIBDIR="${D}$(get_libdir)" \
120 + install || die
121 + dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die
122 +
123 + installation() {
124 + emake \
125 + DESTDIR="${D}" \
126 + PYLIBVER="python$(python_get_version)" \
127 + LIBDIR="${D}usr/$(get_libdir)" \
128 + install-pywrap
129 + }
130 + python_execute_function -s --source-dir src installation
131 }
132
133 pkg_postinst() {
134 - python_mod_optimize $(python_get_sitedir)
135 + python_mod_optimize semanage.py
136 }
137
138 pkg_postrm() {
139 - python_mod_cleanup $(python_get_sitedir)
140 + python_mod_cleanup semanage.py
141 }