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