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: Sun, 06 Feb 2011 16:09:51
Message-Id: 20110206160941.425FE20054@flycatcher.gentoo.org
1 arfrever 11/02/06 16:09:41
2
3 Modified: ChangeLog libsemanage-2.0.45.ebuild
4 Log:
5 Add "python" and "ruby" USE flags.
6
7 (Portage version: 2.2.0_alpha20/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.32 sys-libs/libsemanage/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.32&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.32&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.31&r2=1.32
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v
19 retrieving revision 1.31
20 retrieving revision 1.32
21 diff -u -r1.31 -r1.32
22 --- ChangeLog 5 Feb 2011 23:02:24 -0000 1.31
23 +++ ChangeLog 6 Feb 2011 16:09:41 -0000 1.32
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.31 2011/02/05 23:02:24 arfrever Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.32 2011/02/06 16:09:41 arfrever Exp $
29 +
30 + 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + libsemanage-2.0.45.ebuild:
32 + Add "python" and "ruby" USE flags.
33
34 05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
35 libsemanage-2.0.45.ebuild:
36
37
38
39 1.4 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.4&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild?rev=1.4&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild?r1=1.3&r2=1.4
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.3
49 retrieving revision 1.4
50 diff -u -r1.3 -r1.4
51 --- libsemanage-2.0.45.ebuild 6 Feb 2011 14:57:34 -0000 1.3
52 +++ libsemanage-2.0.45.ebuild 6 Feb 2011 16:09:41 -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/libsemanage/libsemanage-2.0.45.ebuild,v 1.3 2011/02/06 14:57:34 arfrever Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild,v 1.4 2011/02/06 16:09:41 arfrever Exp $
58
59 EAPI="2"
60 -PYTHON_DEPEND="*"
61 +PYTHON_DEPEND="python? *"
62 SUPPORT_PYTHON_ABIS="1"
63 RESTRICT_PYTHON_ABIS="*-jython"
64
65 @@ -19,13 +19,14 @@
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 -IUSE=""
70 +IUSE="python ruby"
71
72 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
73 >=sys-libs/libselinux-${SELNX_VER}
74 - dev-libs/ustr"
75 + dev-libs/ustr
76 + ruby? ( dev-lang/ruby )"
77 DEPEND="${RDEPEND}
78 - dev-lang/swig"
79 + ruby? ( dev-lang/swig )"
80
81 # tests are not meant to be run outside of the
82 # full SELinux userland repo
83 @@ -59,11 +60,17 @@
84 src_compile() {
85 emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
86
87 - python_copy_sources src
88 - building() {
89 - emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" pywrap
90 - }
91 - python_execute_function -s --source-dir src building
92 + if use python; then
93 + python_copy_sources src
94 + building() {
95 + emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" pywrap
96 + }
97 + python_execute_function -s --source-dir src building
98 + fi
99 +
100 + if use ruby; then
101 + emake -C src CC="$(tc-getCC)" rubywrap || die
102 + fi
103 }
104
105 src_install() {
106 @@ -74,20 +81,33 @@
107 install || die
108 dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die
109
110 - installation() {
111 - emake \
112 + if use python; then
113 + installation() {
114 + emake \
115 + DESTDIR="${D}" \
116 + PYLIBVER="python$(python_get_version)" \
117 + LIBDIR="${D}usr/$(get_libdir)" \
118 + install-pywrap
119 + }
120 + python_execute_function -s --source-dir src installation
121 + fi
122 +
123 + if use ruby; then
124 + emake -C src \
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 + install-rubywrap || die
132 + fi
133 }
134
135 pkg_postinst() {
136 - python_mod_optimize semanage.py
137 + if use python; then
138 + python_mod_optimize semanage.py
139 + fi
140 }
141
142 pkg_postrm() {
143 - python_mod_cleanup semanage.py
144 + if use python; then
145 + python_mod_cleanup semanage.py
146 + fi
147 }