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 dev-python/python-xlib: ChangeLog python-xlib-0.15_rc1.ebuild python-xlib-0.14.ebuild
Date: Fri, 28 May 2010 22:01:08
Message-Id: 20100528220102.EDBAF2CF37@corvid.gentoo.org
1 arfrever 10/05/28 22:01:02
2
3 Modified: ChangeLog python-xlib-0.15_rc1.ebuild
4 python-xlib-0.14.ebuild
5 Log:
6 Set SUPPORT_PYTHON_ABIS.
7 (Portage version: HEAD/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.33 dev-python/python-xlib/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-xlib/ChangeLog?rev=1.33&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-xlib/ChangeLog?rev=1.33&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-xlib/ChangeLog?r1=1.32&r2=1.33
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/python-xlib/ChangeLog,v
19 retrieving revision 1.32
20 retrieving revision 1.33
21 diff -u -r1.32 -r1.33
22 --- ChangeLog 1 Jan 2010 21:15:24 -0000 1.32
23 +++ ChangeLog 28 May 2010 22:01:02 -0000 1.33
24 @@ -1,6 +1,10 @@
25 # ChangeLog for dev-python/python-xlib
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/ChangeLog,v 1.32 2010/01/01 21:15:24 djc Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/ChangeLog,v 1.33 2010/05/28 22:01:02 arfrever Exp $
29 +
30 + 28 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + python-xlib-0.14.ebuild, python-xlib-0.15_rc1.ebuild:
32 + Set SUPPORT_PYTHON_ABIS.
33
34 *python-xlib-0.15_rc1 (01 Jan 2010)
35
36
37
38
39 1.2 dev-python/python-xlib/python-xlib-0.15_rc1.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-xlib/python-xlib-0.15_rc1.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-xlib/python-xlib-0.15_rc1.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-xlib/python-xlib-0.15_rc1.ebuild?r1=1.1&r2=1.2
44
45 Index: python-xlib-0.15_rc1.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/dev-python/python-xlib/python-xlib-0.15_rc1.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- python-xlib-0.15_rc1.ebuild 1 Jan 2010 21:15:24 -0000 1.1
52 +++ python-xlib-0.15_rc1.ebuild 28 May 2010 22:01:02 -0000 1.2
53 @@ -1,44 +1,62 @@
54 # Copyright 1999-2010 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/python-xlib-0.15_rc1.ebuild,v 1.1 2010/01/01 21:15:24 djc Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/python-xlib-0.15_rc1.ebuild,v 1.2 2010/05/28 22:01:02 arfrever Exp $
58 +
59 +EAPI="3"
60 +PYTHON_DEPEND="2"
61 +SUPPORT_PYTHON_ABIS="1"
62
63 inherit distutils
64
65 -MY_P=${P/_/}
66 -S=${WORKDIR}/${MY_P}
67 +MY_P="${P/_/}"
68 +S="${WORKDIR}/${MY_P}"
69
70 DESCRIPTION="A fully functional X client library for Python, written in Python"
71 HOMEPAGE="http://python-xlib.sourceforge.net/"
72 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
73 +
74 LICENSE="GPL-2"
75 SLOT="0"
76 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
77 IUSE="doc"
78 -DEPEND="${RDEPEND}
79 - doc? ( virtual/latex-base
80 - >=sys-apps/texinfo-4.8-r2 )"
81 +
82 +DEPEND="doc? (
83 + virtual/latex-base
84 + >=sys-apps/texinfo-4.8-r2
85 + )"
86 +RDEPEND=""
87 +RESTRICT_PYTHON_ABIS="3.*"
88
89 PYTHON_MODNAME="Xlib"
90
91 src_compile() {
92 distutils_src_compile
93 +
94 if use doc; then
95 cd doc
96 - VARTEXFONTS="${T}"/fonts emake || die "make docs failed"
97 + einfo "Generation of documentation"
98 + VARTEXFONTS="${T}"/fonts emake || die "Generation of documentation failed"
99 fi
100 }
101
102 +src_test() {
103 + cd test
104 + testing() {
105 + local return_status="0" test
106 + for test in *.py; do
107 + echo "Running ${test}..."
108 + PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" "${test}" || return_status="1"
109 + done
110 + return "${return_status}"
111 + }
112 + python_execute_function testing
113 +}
114 +
115 src_install () {
116 distutils_src_install
117 +
118 if use doc; then
119 dohtml -r doc/html/
120 dodoc doc/ps/python-xlib.ps
121 fi
122 }
123 -
124 -src_test() {
125 - distutils_python_version
126 - for pytest in $(ls test/*py); do
127 - PYTHONPATH=. "${python}" ${pytest} || die "test failed"
128 - done
129 -}
130
131
132
133 1.8 dev-python/python-xlib/python-xlib-0.14.ebuild
134
135 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-xlib/python-xlib-0.14.ebuild?rev=1.8&view=markup
136 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-xlib/python-xlib-0.14.ebuild?rev=1.8&content-type=text/plain
137 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-xlib/python-xlib-0.14.ebuild?r1=1.7&r2=1.8
138
139 Index: python-xlib-0.14.ebuild
140 ===================================================================
141 RCS file: /var/cvsroot/gentoo-x86/dev-python/python-xlib/python-xlib-0.14.ebuild,v
142 retrieving revision 1.7
143 retrieving revision 1.8
144 diff -u -r1.7 -r1.8
145 --- python-xlib-0.14.ebuild 14 Nov 2009 16:35:31 -0000 1.7
146 +++ python-xlib-0.14.ebuild 28 May 2010 22:01:02 -0000 1.8
147 @@ -1,41 +1,59 @@
148 -# Copyright 1999-2009 Gentoo Foundation
149 +# Copyright 1999-2010 Gentoo Foundation
150 # Distributed under the terms of the GNU General Public License v2
151 -# $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/python-xlib-0.14.ebuild,v 1.7 2009/11/14 16:35:31 armin76 Exp $
152 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-xlib/python-xlib-0.14.ebuild,v 1.8 2010/05/28 22:01:02 arfrever Exp $
153 +
154 +EAPI="3"
155 +PYTHON_DEPEND="2"
156 +SUPPORT_PYTHON_ABIS="1"
157
158 inherit distutils
159
160 DESCRIPTION="A fully functional X client library for Python, written in Python"
161 HOMEPAGE="http://python-xlib.sourceforge.net/"
162 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
163 +
164 LICENSE="GPL-2"
165 SLOT="0"
166 KEYWORDS="alpha amd64 ~arm ia64 ppc ~ppc64 x86"
167 IUSE="doc"
168 -DEPEND="${RDEPEND}
169 - doc? ( virtual/latex-base
170 - >=sys-apps/texinfo-4.8-r2 )"
171 +
172 +DEPEND="doc? (
173 + virtual/latex-base
174 + >=sys-apps/texinfo-4.8-r2
175 + )"
176 +RDEPEND=""
177 +RESTRICT_PYTHON_ABIS="3.*"
178
179 PYTHON_MODNAME="Xlib"
180
181 src_compile() {
182 distutils_src_compile
183 +
184 if use doc; then
185 cd doc
186 - VARTEXFONTS="${T}"/fonts emake || die "make docs failed"
187 + einfo "Generation of documentation"
188 + VARTEXFONTS="${T}"/fonts emake || die "Generation of documentation failed"
189 fi
190 }
191
192 +src_test() {
193 + cd test
194 + testing() {
195 + local return_status="0" test
196 + for test in *.py; do
197 + echo "Running ${test}..."
198 + PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" "${test}" || return_status="1"
199 + done
200 + return "${return_status}"
201 + }
202 + python_execute_function testing
203 +}
204 +
205 src_install () {
206 distutils_src_install
207 +
208 if use doc; then
209 dohtml -r doc/html/
210 dodoc doc/ps/python-xlib.ps
211 fi
212 }
213 -
214 -src_test() {
215 - distutils_python_version
216 - for pytest in $(ls test/*py); do
217 - PYTHONPATH=. "${python}" ${pytest} || die "test failed"
218 - done
219 -}