1 |
arfrever 11/02/06 19:26:38 |
2 |
|
3 |
Modified: ChangeLog libselinux-2.0.94.ebuild |
4 |
Log: |
5 |
Add "python" USE flag. |
6 |
|
7 |
(Portage version: 2.2.0_alpha20/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.69 sys-libs/libselinux/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.69&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.69&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.68&r2=1.69 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v |
19 |
retrieving revision 1.68 |
20 |
retrieving revision 1.69 |
21 |
diff -u -r1.68 -r1.69 |
22 |
--- ChangeLog 5 Feb 2011 22:07:40 -0000 1.68 |
23 |
+++ ChangeLog 6 Feb 2011 19:26:38 -0000 1.69 |
24 |
@@ -1,6 +1,10 @@ |
25 |
# ChangeLog for sys-libs/libselinux |
26 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.68 2011/02/05 22:07:40 arfrever Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.69 2011/02/06 19:26:38 arfrever Exp $ |
29 |
+ |
30 |
+ 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
31 |
+ libselinux-2.0.94.ebuild: |
32 |
+ Add "python" USE flag. |
33 |
|
34 |
05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
35 |
libselinux-2.0.94.ebuild: |
36 |
|
37 |
|
38 |
|
39 |
1.4 sys-libs/libselinux/libselinux-2.0.94.ebuild |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild?rev=1.4&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild?rev=1.4&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild?r1=1.3&r2=1.4 |
44 |
|
45 |
Index: libselinux-2.0.94.ebuild |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild,v |
48 |
retrieving revision 1.3 |
49 |
retrieving revision 1.4 |
50 |
diff -u -r1.3 -r1.4 |
51 |
--- libselinux-2.0.94.ebuild 6 Feb 2011 14:58:44 -0000 1.3 |
52 |
+++ libselinux-2.0.94.ebuild 6 Feb 2011 19:26:38 -0000 1.4 |
53 |
@@ -1,9 +1,9 @@ |
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/libselinux/libselinux-2.0.94.ebuild,v 1.3 2011/02/06 14:58:44 arfrever Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.0.94.ebuild,v 1.4 2011/02/06 19:26:38 arfrever Exp $ |
58 |
|
59 |
EAPI="2" |
60 |
-PYTHON_DEPEND="2" |
61 |
+PYTHON_DEPEND="python? 2" |
62 |
SUPPORT_PYTHON_ABIS="1" |
63 |
RESTRICT_PYTHON_ABIS="3.* *-jython" |
64 |
|
65 |
@@ -18,14 +18,18 @@ |
66 |
LICENSE="public-domain" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~x86" |
69 |
-IUSE="ruby" |
70 |
- |
71 |
-DEPEND=">=sys-libs/libsepol-${SEPOL_VER} |
72 |
- dev-lang/swig |
73 |
- ruby? ( dev-lang/ruby )" |
74 |
+IUSE="python ruby" |
75 |
|
76 |
RDEPEND=">=sys-libs/libsepol-${SEPOL_VER} |
77 |
ruby? ( dev-lang/ruby )" |
78 |
+DEPEND="${RDEPEND} |
79 |
+ ruby? ( dev-lang/swig )" |
80 |
+ |
81 |
+pkg_setup() { |
82 |
+ if use python; then |
83 |
+ python_pkg_setup |
84 |
+ fi |
85 |
+} |
86 |
|
87 |
src_prepare() { |
88 |
# fix up paths for multilib |
89 |
@@ -38,11 +42,13 @@ |
90 |
src_compile() { |
91 |
emake AR="$(tc-getAR)" CC="$(tc-getCC)" LDFLAGS="-fPIC ${LDFLAGS}" all || die |
92 |
|
93 |
- python_copy_sources src |
94 |
- building() { |
95 |
- emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" LDFLAGS="-fPIC ${LDFLAGS}" pywrap |
96 |
- } |
97 |
- python_execute_function -s --source-dir src building |
98 |
+ if use python; then |
99 |
+ python_copy_sources src |
100 |
+ building() { |
101 |
+ emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" LDFLAGS="-fPIC ${LDFLAGS}" pywrap |
102 |
+ } |
103 |
+ python_execute_function -s --source-dir src building |
104 |
+ fi |
105 |
|
106 |
if use ruby; then |
107 |
emake CC="$(tc-getCC)" rubywrap || die |
108 |
@@ -52,10 +58,12 @@ |
109 |
src_install() { |
110 |
emake DESTDIR="${D}" install || die |
111 |
|
112 |
- installation() { |
113 |
- emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" install-pywrap |
114 |
- } |
115 |
- python_execute_function -s --source-dir src installation |
116 |
+ if use python; then |
117 |
+ installation() { |
118 |
+ emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" install-pywrap |
119 |
+ } |
120 |
+ python_execute_function -s --source-dir src installation |
121 |
+ fi |
122 |
|
123 |
if use ruby; then |
124 |
emake DESTDIR="${D}" install-rubywrap || die |
125 |
@@ -63,9 +71,13 @@ |
126 |
} |
127 |
|
128 |
pkg_postinst() { |
129 |
- python_mod_optimize selinux |
130 |
+ if use python; then |
131 |
+ python_mod_optimize selinux |
132 |
+ fi |
133 |
} |
134 |
|
135 |
pkg_postrm() { |
136 |
- python_mod_cleanup selinux |
137 |
+ if use python; then |
138 |
+ python_mod_cleanup selinux |
139 |
+ fi |
140 |
} |