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