Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/mgorny:master commit in: app-portage/install-mask/, dev-python/pymountboot/, app-portage/eclean-kernel/, ...
Date: Wed, 02 May 2012 14:22:02
Message-Id: 1335968473.e6bf9736dc4587603656f03958fa7b2643bb352d.mgorny@gentoo
1 commit: e6bf9736dc4587603656f03958fa7b2643bb352d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 11 07:27:24 2012 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 2 14:21:13 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=e6bf9736
7
8 Migrate to python-distutils-ng.
9
10 ---
11 app-portage/diffmask/diffmask-9999.ebuild | 13 +++++++------
12 .../eclean-kernel/eclean-kernel-9999.ebuild | 15 +++++++--------
13 app-portage/flaggie/flaggie-9999.ebuild | 16 +++++-----------
14 app-portage/install-mask/install-mask-9999.ebuild | 11 +++--------
15 .../smart-live-rebuild-9999.ebuild | 20 +++++++++-----------
16 dev-python/pymountboot/pymountboot-9999.ebuild | 9 +++------
17 6 files changed, 34 insertions(+), 50 deletions(-)
18
19 diff --git a/app-portage/diffmask/diffmask-9999.ebuild b/app-portage/diffmask/diffmask-9999.ebuild
20 index 7caee1a..ca74c1c 100644
21 --- a/app-portage/diffmask/diffmask-9999.ebuild
22 +++ b/app-portage/diffmask/diffmask-9999.ebuild
23 @@ -3,11 +3,9 @@
24 # $Header: $
25
26 EAPI=4
27 -PYTHON_DEPEND="2:2.6"
28 -SUPPORT_PYTHON_ABIS=1
29 -RESTRICT_PYTHON_ABIS="2.4 2.5 3.*"
30 +PYTHON_COMPAT='python2_6 python2_7'
31
32 -inherit base distutils
33 +inherit base python-distutils-ng
34
35 #if LIVE
36 EGIT_REPO_URI="git://github.com/mgorny/${PN}.git
37 @@ -31,7 +29,10 @@ KEYWORDS=
38 SRC_URI=
39 #endif
40
41 -src_prepare() {
42 +python_prepare_all() {
43 base_src_prepare
44 - distutils_src_prepare
45 +}
46 +
47 +python_install_all() {
48 + dodoc README
49 }
50
51 diff --git a/app-portage/eclean-kernel/eclean-kernel-9999.ebuild b/app-portage/eclean-kernel/eclean-kernel-9999.ebuild
52 index 3963f84..43863fb 100644
53 --- a/app-portage/eclean-kernel/eclean-kernel-9999.ebuild
54 +++ b/app-portage/eclean-kernel/eclean-kernel-9999.ebuild
55 @@ -3,11 +3,9 @@
56 # $Header: $
57
58 EAPI=4
59 -PYTHON_DEPEND='2:2.6'
60 -SUPPORT_PYTHON_ABIS=1
61 -RESTRICT_PYTHON_ABIS='2.4 2.5 3.*'
62
63 -inherit base distutils
64 +PYTHON_COMPAT='python2_6 python2_7'
65 +inherit base python-distutils-ng
66
67 #if LIVE
68 EGIT_REPO_URI="git://github.com/mgorny/${PN}.git
69 @@ -26,14 +24,15 @@ IUSE=""
70
71 PDEPEND="kernel_linux? ( dev-python/pymountboot )"
72
73 -PYTHON_MODNAME=ecleankernel
74 -
75 #if LIVE
76 KEYWORDS=
77 SRC_URI=
78 #endif
79
80 -src_prepare() {
81 +python_prepare_all() {
82 base_src_prepare
83 - distutils_src_prepare
84 +}
85 +
86 +python_install_all() {
87 + dodoc README
88 }
89
90 diff --git a/app-portage/flaggie/flaggie-9999.ebuild b/app-portage/flaggie/flaggie-9999.ebuild
91 index 33a730e..1c3bc22 100644
92 --- a/app-portage/flaggie/flaggie-9999.ebuild
93 +++ b/app-portage/flaggie/flaggie-9999.ebuild
94 @@ -3,11 +3,9 @@
95 # $Header: $
96
97 EAPI=4
98 -PYTHON_DEPEND="2:2.6"
99 -SUPPORT_PYTHON_ABIS=1
100 -RESTRICT_PYTHON_ABIS="2.4 2.5 3.*"
101 +PYTHON_COMPAT='python2_6 python2_7'
102
103 -inherit base bash-completion-r1 distutils
104 +inherit base bash-completion-r1 python-distutils-ng
105
106 #if LIVE
107 EGIT_REPO_URI="git://github.com/mgorny/${PN}.git
108 @@ -32,20 +30,16 @@ KEYWORDS=
109 SRC_URI=
110 #endif
111
112 -src_prepare() {
113 +python_prepare_all() {
114 base_src_prepare
115 - distutils_src_prepare
116 }
117
118 -src_install() {
119 - distutils_src_install
120 -
121 +python_install_all() {
122 + dodoc README
123 newbashcomp contrib/bash-completion/${PN}.bash-completion ${PN}
124 }
125
126 pkg_postinst() {
127 - distutils_pkg_postinst
128 -
129 ewarn "Please denote that flaggie creates backups of your package.* files"
130 ewarn "before performing each change through appending a single '~'."
131 ewarn "If you'd like to keep your own backup of them, please use another"
132
133 diff --git a/app-portage/install-mask/install-mask-9999.ebuild b/app-portage/install-mask/install-mask-9999.ebuild
134 index d83d532..b176470 100644
135 --- a/app-portage/install-mask/install-mask-9999.ebuild
136 +++ b/app-portage/install-mask/install-mask-9999.ebuild
137 @@ -3,11 +3,9 @@
138 # $Header: $
139
140 EAPI=4
141 -PYTHON_DEPEND='2:2.6'
142 -SUPPORT_PYTHON_ABIS=1
143 -RESTRICT_PYTHON_ABIS='2.4 2.5 3.*'
144 +PYTHON_COMPAT='python2_6 python2_7'
145
146 -inherit base distutils
147 +inherit base python-distutils-ng
148
149 #if LIVE
150 EGIT_REPO_URI="git://github.com/mgorny/${PN}.git
151 @@ -27,14 +25,11 @@ IUSE=""
152 RDEPEND="app-portage/flaggie
153 dev-python/lxml"
154
155 -PYTHON_MODNAME=installmask
156 -
157 #if LIVE
158 KEYWORDS=
159 SRC_URI=
160 #endif
161
162 -src_prepare() {
163 +python_prepare_all() {
164 base_src_prepare
165 - distutils_src_prepare
166 }
167
168 diff --git a/app-portage/smart-live-rebuild/smart-live-rebuild-9999.ebuild b/app-portage/smart-live-rebuild/smart-live-rebuild-9999.ebuild
169 index 7f36166..972b549 100644
170 --- a/app-portage/smart-live-rebuild/smart-live-rebuild-9999.ebuild
171 +++ b/app-portage/smart-live-rebuild/smart-live-rebuild-9999.ebuild
172 @@ -4,12 +4,9 @@
173
174 EAPI=4
175
176 -PYTHON_DEPEND='2:2.6'
177 -SUPPORT_PYTHON_ABIS=1
178 -RESTRICT_PYTHON_ABIS='2.4 2.5 3.*'
179 -DISTUTILS_SRC_TEST=setup.py
180 +PYTHON_COMPAT='python2_6 python2_7'
181
182 -inherit base distutils
183 +inherit base python-distutils-ng
184
185 #if LIVE
186 EGIT_REPO_URI="https://bitbucket.org/mgorny/${PN}.git"
187 @@ -28,20 +25,21 @@ IUSE=""
188 RDEPEND=">=app-portage/gentoopm-0.2.1
189 !sys-apps/portage[python3]"
190
191 -PYTHON_MODNAME=smartliverebuild
192 -
193 #if LIVE
194 KEYWORDS=
195 SRC_URI=
196 #endif
197
198 -src_prepare() {
199 +python_prepare_all() {
200 base_src_prepare
201 - distutils_src_prepare
202 }
203
204 -src_install() {
205 - distutils_src_install
206 +python_test() {
207 + "${PYTHON}" setup.py test || die
208 +}
209 +
210 +python_install_all() {
211 + dodoc README
212
213 insinto /etc/portage
214 newins smart-live-rebuild.conf{.example,}
215
216 diff --git a/dev-python/pymountboot/pymountboot-9999.ebuild b/dev-python/pymountboot/pymountboot-9999.ebuild
217 index 593b23f..cbeecea 100644
218 --- a/dev-python/pymountboot/pymountboot-9999.ebuild
219 +++ b/dev-python/pymountboot/pymountboot-9999.ebuild
220 @@ -3,11 +3,9 @@
221 # $Header: $
222
223 EAPI=4
224 -PYTHON_DEPEND='2:2.6'
225 -SUPPORT_PYTHON_ABIS=1
226 -RESTRICT_PYTHON_ABIS='2.4 2.5 3.*'
227 +PYTHON_COMPAT='python2_6 python2_7'
228
229 -inherit base distutils
230 +inherit base python-distutils-ng
231
232 #if LIVE
233 EGIT_REPO_URI="git://github.com/mgorny/${PN}.git
234 @@ -32,7 +30,6 @@ KEYWORDS=
235 SRC_URI=
236 #endif
237
238 -src_prepare() {
239 +python_prepare_all() {
240 base_src_prepare
241 - distutils_src_prepare
242 }