Gentoo Archives: gentoo-commits

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