1 |
dirtyepic 10/05/27 05:20:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: wxpython-2.8.11.0.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
http://wxpython.org/recentchanges.php |
8 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.136 dev-python/wxpython/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wxpython/ChangeLog?rev=1.136&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wxpython/ChangeLog?rev=1.136&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wxpython/ChangeLog?r1=1.135&r2=1.136 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v |
20 |
retrieving revision 1.135 |
21 |
retrieving revision 1.136 |
22 |
diff -u -r1.135 -r1.136 |
23 |
--- ChangeLog 5 Mar 2010 22:30:45 -0000 1.135 |
24 |
+++ ChangeLog 27 May 2010 05:20:41 -0000 1.136 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-python/wxpython |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.135 2010/03/05 22:30:45 dirtyepic Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.136 2010/05/27 05:20:41 dirtyepic Exp $ |
30 |
+ |
31 |
+*wxpython-2.8.11.0 (27 May 2010) |
32 |
+ |
33 |
+ 27 May 2010; Ryan Hill <dirtyepic@g.o> +wxpython-2.8.11.0.ebuild, |
34 |
+ +files/wxpython-2.8.11-drop-editra.patch: |
35 |
+ Version bump. |
36 |
+ http://wxpython.org/recentchanges.php |
37 |
|
38 |
05 Mar 2010; Ryan Hill <dirtyepic@g.o> wxpython-2.6.4.0-r2.ebuild, |
39 |
wxpython-2.8.10.1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-python/wxpython/wxpython-2.8.11.0.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wxpython/wxpython-2.8.11.0.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wxpython/wxpython-2.8.11.0.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: wxpython-2.8.11.0.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.8.11.0.ebuild,v 1.1 2010/05/27 05:20:41 dirtyepic Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
PYTHON_DEPEND="2" |
56 |
WX_GTK_VER="2.8" |
57 |
SUPPORT_PYTHON_ABIS="1" |
58 |
|
59 |
inherit alternatives eutils fdo-mime flag-o-matic multilib python wxwidgets |
60 |
|
61 |
MY_P="${P/wxpython-/wxPython-src-}" |
62 |
|
63 |
DESCRIPTION="A blending of the wxWindows C++ class library with Python" |
64 |
HOMEPAGE="http://www.wxpython.org/" |
65 |
SRC_URI="mirror://sourceforge/wxpython/${MY_P}.tar.bz2 |
66 |
doc? ( mirror://sourceforge/wxpython/wxPython-docs-${PV}.tar.bz2 |
67 |
mirror://sourceforge/wxpython/wxPython-newdocs-2.8.9.2.tar.bz2 ) |
68 |
examples? ( mirror://sourceforge/wxpython/wxPython-demo-${PV}.tar.bz2 )" |
69 |
|
70 |
LICENSE="wxWinLL-3" |
71 |
SLOT="2.8" |
72 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
73 |
IUSE="cairo doc examples opengl" |
74 |
|
75 |
RDEPEND=" |
76 |
dev-python/setuptools |
77 |
>=x11-libs/wxGTK-${PV}:2.8[opengl?,tiff,X] |
78 |
>=x11-libs/gtk+-2.4 |
79 |
>=x11-libs/pango-1.2 |
80 |
>=dev-libs/glib-2.0 |
81 |
media-libs/libpng |
82 |
media-libs/jpeg:0 |
83 |
media-libs/tiff |
84 |
cairo? ( >=dev-python/pycairo-1.8.4 ) |
85 |
opengl? ( >=dev-python/pyopengl-2.0.0.44 )" |
86 |
|
87 |
DEPEND="${RDEPEND} |
88 |
dev-util/pkgconfig" |
89 |
|
90 |
RESTRICT_PYTHON_ABIS="3.*" |
91 |
|
92 |
S="${WORKDIR}/${MY_P}/wxPython" |
93 |
DOC_S="${WORKDIR}/wxPython-${PV}" |
94 |
|
95 |
src_prepare() { |
96 |
sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed" |
97 |
|
98 |
epatch "${FILESDIR}"/${PN}-2.8.9-wxversion-scripts.patch |
99 |
# drop editra - we have it as a separate package now |
100 |
epatch "${FILESDIR}"/${PN}-2.8.11-drop-editra.patch |
101 |
|
102 |
if use doc; then |
103 |
cd "${DOC_S}" |
104 |
epatch "${FILESDIR}"/${PN}-${SLOT}-cache-writable.patch |
105 |
fi |
106 |
|
107 |
if use examples; then |
108 |
cd "${DOC_S}" |
109 |
epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch |
110 |
fi |
111 |
|
112 |
python_copy_sources |
113 |
} |
114 |
|
115 |
src_configure() { |
116 |
need-wxwidgets unicode |
117 |
|
118 |
append-flags -fno-strict-aliasing |
119 |
|
120 |
use opengl \ |
121 |
&& mypyconf="${mypyconf} BUILD_GLCANVAS=1" \ |
122 |
|| mypyconf="${mypyconf} BUILD_GLCANVAS=0" |
123 |
|
124 |
mypyconf="${mypyconf} WX_CONFIG=${WX_CONFIG}" |
125 |
mypyconf="${mypyconf} WXPORT=gtk2 UNICODE=1" |
126 |
} |
127 |
|
128 |
src_compile() { |
129 |
building() { |
130 |
"$(PYTHON)" setup.py ${mypyconf} build |
131 |
} |
132 |
python_execute_function -s building |
133 |
} |
134 |
|
135 |
src_install() { |
136 |
local mypyconf |
137 |
|
138 |
mypyconf="${mypyconf} WX_CONFIG=${WX_CONFIG}" |
139 |
use opengl \ |
140 |
&& mypyconf="${mypyconf} BUILD_GLCANVAS=1" \ |
141 |
|| mypyconf="${mypyconf} BUILD_GLCANVAS=0" |
142 |
|
143 |
mypyconf="${mypyconf} WXPORT=gtk2 UNICODE=1" |
144 |
|
145 |
installation() { |
146 |
"$(PYTHON)" setup.py ${mypyconf} install --root="${D}" --install-purelib $(python_get_sitedir) |
147 |
} |
148 |
python_execute_function -s installation |
149 |
|
150 |
# Collision protection. |
151 |
for file in "${D}"/usr/bin/*; do |
152 |
mv "${file}" "${file}-${SLOT}" |
153 |
done |
154 |
rename_files() { |
155 |
for file in "${D}$(python_get_sitedir)/"wx{version.*,.pth}; do |
156 |
mv "${file}" "${file}-${SLOT}" |
157 |
done |
158 |
} |
159 |
python_execute_function -q rename_files |
160 |
|
161 |
dodoc "${S}"/docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt |
162 |
|
163 |
insinto /usr/share/applications |
164 |
doins "${S}"/distrib/{Py{AlaMode,Crust,Shell},XRCed}.desktop |
165 |
insinto /usr/share/pixmaps |
166 |
newins "${S}"/wx/py/PyCrust_32.png PyCrust.png |
167 |
newins "${S}"/wx/tools/XRCed/XRCed_32.png XRCed.png |
168 |
|
169 |
if use doc; then |
170 |
dodir /usr/share/doc/${PF}/docs |
171 |
cp -R "${DOC_S}"/docs/* "${D}"usr/share/doc/${PF}/docs/ |
172 |
# For some reason newer API docs aren't available so use 2.8.9.2's |
173 |
cp -R "${WORKDIR}"/wxPython-2.8.9.2/docs/* "${D}"usr/share/doc/${PF}/docs/ |
174 |
fi |
175 |
|
176 |
if use examples; then |
177 |
dodir /usr/share/doc/${PF}/demo |
178 |
dodir /usr/share/doc/${PF}/samples |
179 |
cp -R "${DOC_S}"/demo/* "${D}"/usr/share/doc/${PF}/demo/ |
180 |
cp -R "${DOC_S}"/samples/* "${D}"/usr/share/doc/${PF}/samples/ |
181 |
fi |
182 |
} |
183 |
|
184 |
pkg_postinst() { |
185 |
fdo-mime_desktop_database_update |
186 |
|
187 |
create_symlinks() { |
188 |
alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]" |
189 |
alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]" |
190 |
} |
191 |
python_execute_function -q create_symlinks |
192 |
|
193 |
python_mod_optimize wx-${SLOT}-gtk2-unicode wxversion.py |
194 |
|
195 |
echo |
196 |
elog "Gentoo uses the Multi-version method for SLOT'ing." |
197 |
elog "Developers, see this site for instructions on using" |
198 |
elog "2.6 or 2.8 with your apps:" |
199 |
elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls" |
200 |
elog |
201 |
if use doc; then |
202 |
elog "To access the general wxWidgets documentation, run" |
203 |
elog "/usr/share/doc/${PF}/docs/viewdocs.py" |
204 |
elog |
205 |
elog "wxPython documentation is available by pointing a browser" |
206 |
elog "at /usr/share/doc/${PF}/docs/api/index.html" |
207 |
elog |
208 |
fi |
209 |
if use examples; then |
210 |
elog "The demo.py app which contains hundreds of demo modules" |
211 |
elog "with documentation and source code has been installed at" |
212 |
elog "/usr/share/doc/${PF}/demo/demo.py" |
213 |
elog |
214 |
elog "Many more example apps and modules can be found in" |
215 |
elog "/usr/share/doc/${PF}/samples/" |
216 |
fi |
217 |
echo |
218 |
ewarn "Editra is no longer packaged with wxpython in Gentoo." |
219 |
ewarn "You can find it in the tree as app-editors/editra" |
220 |
echo |
221 |
} |
222 |
|
223 |
pkg_postrm() { |
224 |
python_mod_cleanup wx-${SLOT}-gtk2-unicode wxversion.py |
225 |
fdo-mime_desktop_database_update |
226 |
|
227 |
create_symlinks() { |
228 |
alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]" |
229 |
alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]" |
230 |
} |
231 |
python_execute_function -q create_symlinks |
232 |
} |