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: ChangeLog wxpython-3.0.0.0.ebuild
Date: Mon, 30 Dec 2013 09:28:48
Message-Id: 20131230092844.A7ACA2004E@flycatcher.gentoo.org
1 dirtyepic 13/12/30 09:28:44
2
3 Modified: ChangeLog
4 Added: wxpython-3.0.0.0.ebuild
5 Log:
6 Version bump (bug #485184).
7
8 Signed-off-by: Ryan Hill <dirtyepic@g.o>
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 957A8463)
10
11 Revision Changes Path
12 1.195 dev-python/wxpython/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wxpython/ChangeLog?rev=1.195&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wxpython/ChangeLog?rev=1.195&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wxpython/ChangeLog?r1=1.194&r2=1.195
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v
21 retrieving revision 1.194
22 retrieving revision 1.195
23 diff -u -r1.194 -r1.195
24 --- ChangeLog 12 Dec 2013 12:57:30 -0000 1.194
25 +++ ChangeLog 30 Dec 2013 09:28:44 -0000 1.195
26 @@ -1,6 +1,13 @@
27 # ChangeLog for dev-python/wxpython
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.194 2013/12/12 12:57:30 jlec Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.195 2013/12/30 09:28:44 dirtyepic Exp $
31 +
32 +*wxpython-3.0.0.0 (30 Dec 2013)
33 +
34 + 30 Dec 2013; Ryan Hill <dirtyepic@g.o> +wxpython-3.0.0.0.ebuild,
35 + +files/wxpython-3.0.0.0-wxversion-scripts.patch,
36 + +files/wxpython-3.0-wxversion-demo.patch:
37 + Version bump (bug #485184).
38
39 12 Dec 2013; Justin Lecher <jlec@g.o> wxpython-2.8.12.1.ebuild,
40 wxpython-2.8.12.1-r1.ebuild, wxpython-2.8.12.1-r2.ebuild,
41
42
43
44 1.1 dev-python/wxpython/wxpython-3.0.0.0.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wxpython/wxpython-3.0.0.0.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wxpython/wxpython-3.0.0.0.ebuild?rev=1.1&content-type=text/plain
48
49 Index: wxpython-3.0.0.0.ebuild
50 ===================================================================
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-3.0.0.0.ebuild,v 1.1 2013/12/30 09:28:44 dirtyepic Exp $
54
55 EAPI=5
56
57 PYTHON_COMPAT=( python{2_6,2_7} )
58 WX_GTK_VER="3.0"
59
60 inherit alternatives distutils-r1 eutils fdo-mime flag-o-matic wxwidgets
61
62 MY_PN="wxPython-src"
63
64 DESCRIPTION="A blending of the wxWindows C++ class library with Python"
65 HOMEPAGE="http://www.wxpython.org/"
66 SRC_URI="
67 mirror://sourceforge/wxpython/${MY_PN}-${PV}.tar.bz2
68 examples? ( mirror://sourceforge/wxpython/wxPython-demo-${PV}.tar.bz2 )"
69
70 LICENSE="wxWinLL-3"
71 SLOT="3.0"
72 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
73 IUSE="cairo examples opengl"
74
75 RDEPEND="
76 dev-lang/python-exec:2[${PYTHON_USEDEP}]
77 >=x11-libs/wxGTK-${PV}:${WX_GTK_VER}=[opengl?,tiff,X]
78 dev-libs/glib:2
79 dev-python/setuptools[${PYTHON_USEDEP}]
80 media-libs/libpng:0=
81 media-libs/tiff:0
82 virtual/jpeg
83 x11-libs/gtk+:2
84 x11-libs/pango[X]
85 cairo? ( >=dev-python/pycairo-1.8.4[${PYTHON_USEDEP}] )
86 opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )"
87
88 DEPEND="${RDEPEND}
89 virtual/pkgconfig"
90
91 S="${WORKDIR}/${MY_PN}-${PV}/wxPython"
92 DOC_S="${WORKDIR}/wxPython-${PV}"
93
94 # The hacky build system seems to be broken with out-of-source builds,
95 # and installs 'wx' package globally.
96 DISTUTILS_IN_SOURCE_BUILD=1
97
98 python_prepare_all() {
99 sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed"
100
101 if use examples; then
102 cd "${DOC_S}"
103 epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch
104 fi
105
106 cd "${S}"
107 local PATCHES=(
108 "${FILESDIR}"/${P}-wxversion-scripts.patch
109 # drop editra - we have it as a separate package now
110 "${FILESDIR}"/${PN}-2.8.11-drop-editra.patch
111 "${FILESDIR}"/${PN}-2.8-no-preservatives-added.patch
112 # fix handling egg_info command
113 "${FILESDIR}"/${PN}-2.8.12.1-disable-egging-mode.patch
114 )
115
116 distutils-r1_python_prepare_all
117 }
118
119 src_configure() {
120 need-wxwidgets unicode
121
122 mydistutilsargs=(
123 WX_CONFIG="${WX_CONFIG}"
124 WXPORT=gtk2
125 UNICODE=1
126 BUILD_GLCANVAS=$(usex opengl 1 0)
127 )
128 }
129
130 python_compile() {
131 # We need to have separate libdirs due to hackery, bug #455332.
132 distutils-r1_python_compile \
133 build --build-purelib "${BUILD_DIR}"/lib.common
134 }
135
136 python_install() {
137 distutils-r1_python_install \
138 build --build-purelib "${BUILD_DIR}"/lib.common
139
140 # adjust the filenames for wxPython slots.
141 local file
142 for file in "${D}$(python_get_sitedir)"/wx{version.*,.pth}; do
143 mv "${file}" "${file}-${SLOT}" || die
144 done
145 cd "${ED}"usr/lib/python-exec/"${EPYTHON}" || die
146 for file in *; do
147 mv "${file}" "${file}-${SLOT}" || die
148
149 # wrappers are common to all impls, so a parallel run may
150 # move it for us. ln+rm is more failure-proof.
151 ln -fs ../lib/python-exec/python-exec2 "${ED}usr/bin/${file}-${SLOT}" || die
152 rm -f "${ED}usr/bin/${file}"
153 done
154 }
155
156 python_install_all() {
157 dodoc docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt
158
159 for x in {Py{AlaMode,Crust,Shell},XRCed}; do
160 newmenu distrib/${x}.desktop ${x}-${SLOT}.desktop
161 done
162 newicon wx/py/PyCrust_32.png PyCrust-${SLOT}.png
163 newicon wx/py/PySlices_32.png PySlices-${SLOT}.png
164 newicon wx/tools/XRCed/XRCed_32.png XRCed-${SLOT}.png
165
166 if use examples; then
167 docinto demo
168 dodoc -r "${DOC_S}"/demo/.
169 docinto samples
170 dodoc -r "${DOC_S}"/samples/.
171
172 [[ -e ${docdir}/samples/embedded/embedded ]] \
173 && rm -f "${docdir}"/samples/embedded/embedded
174
175 docompress -x /usr/share/doc/${PF}/{demo,samples}
176 fi
177 distutils-r1_python_install_all
178 }
179
180 pkg_postinst() {
181 fdo-mime_desktop_database_update
182
183 create_symlinks() {
184 alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
185 alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
186 }
187 python_foreach_impl create_symlinks
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 "it with your apps:"
193 elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls"
194 if use examples; then
195 echo
196 elog "The demo.py app which contains demo modules with"
197 elog "documentation and source code has been installed at"
198 elog "/usr/share/doc/${PF}/demo/demo.py"
199 echo
200 elog "More example apps and modules can be found in"
201 elog "/usr/share/doc/${PF}/samples/"
202 fi
203 }
204
205 pkg_postrm() {
206 fdo-mime_desktop_database_update
207
208 update_symlinks() {
209 alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
210 alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
211 }
212 python_foreach_impl update_symlinks
213 }