Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/wxpython: wxpython-2.6.4.0-r1.ebuild ChangeLog wxpython-2.8.7.1.ebuild wxpython-2.6.4.0-r2.ebuild
Date: Mon, 28 Jul 2008 22:59:06
Message-Id: E1KNbgF-0008Gl-1s@stork.gentoo.org
1 dirtyepic 08/07/28 22:59:03
2
3 Modified: wxpython-2.6.4.0-r1.ebuild ChangeLog
4 wxpython-2.8.7.1.ebuild
5 Added: wxpython-2.6.4.0-r2.ebuild
6 Log:
7 Revision bump.
8 (Portage version: 2.2_rc3/cvs/Linux 2.6.26-gentoo x86_64)
9
10 Revision Changes Path
11 1.16 dev-python/wxpython/wxpython-2.6.4.0-r1.ebuild
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/wxpython-2.6.4.0-r1.ebuild?rev=1.16&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/wxpython-2.6.4.0-r1.ebuild?rev=1.16&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/wxpython-2.6.4.0-r1.ebuild?r1=1.15&r2=1.16
16
17 Index: wxpython-2.6.4.0-r1.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.6.4.0-r1.ebuild,v
20 retrieving revision 1.15
21 retrieving revision 1.16
22 diff -u -r1.15 -r1.16
23 --- wxpython-2.6.4.0-r1.ebuild 28 Jul 2008 21:43:11 -0000 1.15
24 +++ wxpython-2.6.4.0-r1.ebuild 28 Jul 2008 22:59:02 -0000 1.16
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2008 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.6.4.0-r1.ebuild,v 1.15 2008/07/28 21:43:11 dirtyepic Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.6.4.0-r1.ebuild,v 1.16 2008/07/28 22:59:02 dirtyepic Exp $
30
31 EAPI=1
32
33 @@ -95,7 +95,7 @@
34
35 for dir in "${D}"/${site_pkgs}/wx-${SLOT}-gtk2-{ansi,unicode}; do
36 if [[ -d ${dir} ]]; then
37 - cp -R "${D}"/${site_pkgs}/wxaddons/ ${dir}
38 + cp -R "${D}"/${site_pkgs}/wxaddons/ "${dir}"
39 wxaddons_copied=1
40 fi
41 done
42
43
44
45 1.91 dev-python/wxpython/ChangeLog
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/ChangeLog?rev=1.91&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/ChangeLog?rev=1.91&content-type=text/plain
49 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/ChangeLog?r1=1.90&r2=1.91
50
51 Index: ChangeLog
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v
54 retrieving revision 1.90
55 retrieving revision 1.91
56 diff -u -r1.90 -r1.91
57 --- ChangeLog 28 Jul 2008 21:43:11 -0000 1.90
58 +++ ChangeLog 28 Jul 2008 22:59:02 -0000 1.91
59 @@ -1,6 +1,12 @@
60 # ChangeLog for dev-python/wxpython
61 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
62 -# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.90 2008/07/28 21:43:11 dirtyepic Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.91 2008/07/28 22:59:02 dirtyepic Exp $
64 +
65 +*wxpython-2.6.4.0-r2 (28 Jul 2008)
66 +
67 + 28 Jul 2008; Ryan Hill <dirtyepic@g.o> wxpython-2.6.4.0-r1.ebuild,
68 + +wxpython-2.6.4.0-r2.ebuild, wxpython-2.8.7.1.ebuild:
69 + Revision bump.
70
71 28 Jul 2008; Ryan Hill <dirtyepic@g.o> wxpython-2.6.4.0.ebuild,
72 wxpython-2.6.4.0-r1.ebuild, wxpython-2.8.7.1.ebuild,
73
74
75
76 1.13 dev-python/wxpython/wxpython-2.8.7.1.ebuild
77
78 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/wxpython-2.8.7.1.ebuild?rev=1.13&view=markup
79 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/wxpython-2.8.7.1.ebuild?rev=1.13&content-type=text/plain
80 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/wxpython-2.8.7.1.ebuild?r1=1.12&r2=1.13
81
82 Index: wxpython-2.8.7.1.ebuild
83 ===================================================================
84 RCS file: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.8.7.1.ebuild,v
85 retrieving revision 1.12
86 retrieving revision 1.13
87 diff -u -r1.12 -r1.13
88 --- wxpython-2.8.7.1.ebuild 28 Jul 2008 21:43:11 -0000 1.12
89 +++ wxpython-2.8.7.1.ebuild 28 Jul 2008 22:59:02 -0000 1.13
90 @@ -1,6 +1,6 @@
91 # Copyright 1999-2008 Gentoo Foundation
92 # Distributed under the terms of the GNU General Public License v2
93 -# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.8.7.1.ebuild,v 1.12 2008/07/28 21:43:11 dirtyepic Exp $
94 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.8.7.1.ebuild,v 1.13 2008/07/28 22:59:02 dirtyepic Exp $
95
96 EAPI="1"
97 WX_GTK_VER="2.8"
98 @@ -84,7 +84,7 @@
99
100 for dir in "${D}"/${site_pkgs}/wx-${SLOT}-gtk2-{ansi,unicode}; do
101 if [[ -d ${dir} ]]; then
102 - cp -R "${D}"/${site_pkgs}/wxaddons/ ${dir}
103 + cp -R "${D}"/${site_pkgs}/wxaddons/ "${dir}"
104 wxaddons_copied=1
105 fi
106 done
107
108
109
110 1.1 dev-python/wxpython/wxpython-2.6.4.0-r2.ebuild
111
112 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/wxpython-2.6.4.0-r2.ebuild?rev=1.1&view=markup
113 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/wxpython/wxpython-2.6.4.0-r2.ebuild?rev=1.1&content-type=text/plain
114
115 Index: wxpython-2.6.4.0-r2.ebuild
116 ===================================================================
117 # Copyright 1999-2008 Gentoo Foundation
118 # Distributed under the terms of the GNU General Public License v2
119 # $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.6.4.0-r2.ebuild,v 1.1 2008/07/28 22:59:02 dirtyepic Exp $
120
121 EAPI=1
122
123 inherit alternatives eutils multilib python wxwidgets flag-o-matic
124
125 # Note, we don't use distutils.eclass because it doesn't seem to play nice with
126 # need-wxwidgets
127
128 MY_P="${P/wxpython-/wxPython-src-}"
129 DESCRIPTION="A blending of the wxWindows C++ class library with Python"
130 HOMEPAGE="http://www.wxpython.org/"
131 SRC_URI="mirror://sourceforge/wxpython/${MY_P}.tar.bz2"
132
133 LICENSE="wxWinLL-3"
134 SLOT="2.6"
135 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
136 IUSE="opengl unicode"
137
138 RDEPEND=">=dev-lang/python-2.1
139 >=x11-libs/wxGTK-${PV}:2.6
140 >=x11-libs/gtk+-2.0
141 >=x11-libs/pango-1.2
142 >=dev-libs/glib-2.0
143 media-libs/libpng
144 media-libs/jpeg
145 media-libs/tiff
146 >=sys-libs/zlib-1.1.4
147 opengl? ( >=dev-python/pyopengl-2.0.0.44 )"
148
149 DEPEND="${RDEPEND}
150 dev-util/pkgconfig"
151
152 S="${WORKDIR}/${MY_P}/wxPython/"
153
154 src_unpack() {
155 unpack ${A}
156 cd "${S}"
157 sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed"
158 epatch "${FILESDIR}"/scripts-multiver-2.6.1.0.diff
159 }
160
161 src_compile() {
162 local mypyconf
163 WX_GTK_VER="2.6"
164
165 if use unicode; then
166 need-wxwidgets unicode
167 else
168 need-wxwidgets ansi
169 fi
170
171 use opengl && check_wxuse opengl
172
173 append-flags -fno-strict-aliasing
174
175 mypyconf="${mypyconf} WX_CONFIG=${WX_CONFIG}"
176 use opengl \
177 && mypyconf="${mypyconf} BUILD_GLCANVAS=1" \
178 || mypyconf="${mypyconf} BUILD_GLCANVAS=0"
179
180 use unicode \
181 && mypyconf="${mypyconf} UNICODE=1" \
182 || mypyconf="${mypyconf} UNICODE=0"
183
184 mypyconf="${mypyconf} WXPORT=gtk2"
185
186 python setup.py ${mypyconf} build || die "setup.py build failed"
187 }
188
189 src_install() {
190 local mypyconf
191 python_version
192 local site_pkgs=/usr/$(get_libdir)/python${PYVER}/site-packages
193
194 mypyconf="${mypyconf} WX_CONFIG=${WX_CONFIG}"
195 use opengl \
196 && mypyconf="${mypyconf} BUILD_GLCANVAS=1" \
197 || mypyconf="${mypyconf} BUILD_GLCANVAS=0"
198 use unicode \
199 && mypyconf="${mypyconf} UNICODE=1" \
200 || mypyconf="${mypyconf} UNICODE=0"
201
202 mypyconf="${mypyconf} WXPORT=gtk2"
203
204 python setup.py ${mypyconf} install --root="${D}" \
205 --install-purelib ${site_pkgs} || die "setup.py install failed"
206
207 # Collision protection.
208 for file in "${D}"/usr/bin/* "${D}"/${site_pkgs}/wx{version.*,.pth}; do
209 mv "${file}" "${file}-${SLOT}"
210 done
211
212 for dir in "${D}"/${site_pkgs}/wx-${SLOT}-gtk2-{ansi,unicode}; do
213 if [[ -d ${dir} ]]; then
214 cp -R "${D}"/${site_pkgs}/wxaddons/ "${dir}"
215 wxaddons_copied=1
216 fi
217 done
218
219 [[ ${wxaddons_copied} ]] && rm -rf "${D}"/${site_pkgs}/wxaddons/
220 }
221
222 pkg_postinst() {
223 local site_pkgs=/usr/$(get_libdir)/python${PYVER}/site-packages
224
225 python_mod_optimize ${size_pkgs}
226
227 alternatives_auto_makesym \
228 "${site_pkgs}/wx.pth" "${site_pkgs}/wx.pth-[0-9].[0-9]"
229 alternatives_auto_makesym \
230 "${site_pkgs}/wxversion.py" "${site_pkgs}/wxversion.py-[0-9].[0-9]"
231
232 echo
233 elog "Gentoo uses the Multi-version method for SLOT'ing."
234 elog "Developers see this site for instructions on using 2.6 or 2.8"
235 elog "with your apps:"
236 elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls"
237 echo
238 }
239
240 pkg_postrm() {
241 python_mod_cleanup
242
243 local site_pkgs=/usr/$(get_libdir)/python${PYVER}/site-packages
244
245 alternatives_auto_makesym \
246 "${site_pkgs}/wx.pth" "${site_pkgs}/wx.pth-[0-9].[0-9]"
247 alternatives_auto_makesym \
248 "${site_pkgs}/wxversion.py" "${site_pkgs}/wxversion.py-[0-9].[0-9]"
249 }