Gentoo Archives: gentoo-commits

From: "Sebastian Pipping (sping)" <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/wxGTK: ChangeLog wxGTK-3.0.2.0-r1.ebuild
Date: Mon, 02 Feb 2015 16:26:21
Message-Id: 20150202162617.8075210E7B@oystercatcher.gentoo.org
1 sping 15/02/02 16:26:17
2
3 Modified: ChangeLog
4 Added: wxGTK-3.0.2.0-r1.ebuild
5 Log:
6 x11-libs/wxGTK: 3.0.2.0-r1 (bug #536004)
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x401A1600)
9
10 Revision Changes Path
11 1.317 x11-libs/wxGTK/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/wxGTK/ChangeLog?rev=1.317&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/wxGTK/ChangeLog?rev=1.317&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/wxGTK/ChangeLog?r1=1.316&r2=1.317
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v
20 retrieving revision 1.316
21 retrieving revision 1.317
22 diff -u -r1.316 -r1.317
23 --- ChangeLog 31 Dec 2014 17:37:49 -0000 1.316
24 +++ ChangeLog 2 Feb 2015 16:26:17 -0000 1.317
25 @@ -1,6 +1,11 @@
26 # ChangeLog for x11-libs/wxGTK
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v 1.316 2014/12/31 17:37:49 floppym Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v 1.317 2015/02/02 16:26:17 sping Exp $
31 +
32 +*wxGTK-3.0.2.0-r1 (02 Feb 2015)
33 +
34 + 02 Feb 2015; Sebastian Pipping <sping@g.o> +wxGTK-3.0.2.0-r1.ebuild:
35 + Stop 3.0.2 from pretending to be 3.0.1 (bug #536004)
36
37 *wxGTK-3.0.2.0 (31 Dec 2014)
38
39
40
41
42 1.1 x11-libs/wxGTK/wxGTK-3.0.2.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/wxGTK/wxGTK-3.0.2.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/wxGTK/wxGTK-3.0.2.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: wxGTK-3.0.2.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-3.0.2.0-r1.ebuild,v 1.1 2015/02/02 16:26:17 sping Exp $
52
53 EAPI="5"
54
55 inherit eutils flag-o-matic
56
57 DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit"
58 HOMEPAGE="http://wxwidgets.org/"
59
60 # we use the wxPython tarballs because they include the full wxGTK sources and
61 # docs, and are released more frequently than wxGTK.
62 SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2
63 doc? ( mirror://sourceforge/wxpython/wxPython-docs-${PV}.tar.bz2 )"
64
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
66 IUSE="+X aqua doc debug gstreamer libnotify opengl sdl tiff webkit"
67
68 SLOT="3.0"
69
70 RDEPEND="
71 dev-libs/expat
72 sdl? ( media-libs/libsdl )
73 X? (
74 >=dev-libs/glib-2.22:2
75 media-libs/libpng:0=
76 sys-libs/zlib
77 virtual/jpeg
78 >=x11-libs/gtk+-2.18:2
79 x11-libs/gdk-pixbuf
80 x11-libs/libSM
81 x11-libs/libXxf86vm
82 x11-libs/pango[X]
83 gstreamer? (
84 media-libs/gstreamer:0.10
85 media-libs/gst-plugins-base:0.10 )
86 libnotify? ( x11-libs/libnotify )
87 opengl? ( virtual/opengl )
88 tiff? ( media-libs/tiff:0 )
89 webkit? ( net-libs/webkit-gtk:2 )
90 )
91 aqua? (
92 >=x11-libs/gtk+-2.4[aqua=]
93 virtual/jpeg
94 tiff? ( media-libs/tiff:0 )
95 )"
96
97 DEPEND="${RDEPEND}
98 virtual/pkgconfig
99 opengl? ( virtual/glu )
100 X? (
101 x11-proto/xproto
102 x11-proto/xineramaproto
103 x11-proto/xf86vidmodeproto
104 )"
105
106 PDEPEND=">=app-admin/eselect-wxwidgets-20131230"
107
108 LICENSE="wxWinLL-3
109 GPL-2
110 doc? ( wxWinFDL-3 )"
111
112 S="${WORKDIR}/wxPython-src-${PV}"
113
114 src_prepare() {
115 epatch "${FILESDIR}"/${PN}-3.0.0.0-collision.patch
116
117 # https://bugs.gentoo.org/421851
118 # https://bugs.gentoo.org/499984
119 # https://bugs.gentoo.org/536004
120 sed \
121 -e "/wx_cv_std_libpath=/s:=.*:=$(get_libdir):" \
122 -e 's:3\.0\.1:3.0.2:g' \
123 -e 's:^wx_release_number=1$:wx_release_number=2:' \
124 -i configure || die
125
126 epatch_user
127 }
128
129 src_configure() {
130 local myconf
131
132 # X independent options
133 myconf="
134 --with-zlib=sys
135 --with-expat=sys
136 --enable-compat28
137 $(use_with sdl)"
138
139 # debug in >=2.9
140 # there is no longer separate debug libraries (gtk2ud)
141 # wxDEBUG_LEVEL=1 is the default and we will leave it enabled
142 # wxDEBUG_LEVEL=2 enables assertions that have expensive runtime costs.
143 # apps can disable these features by building w/ -NDEBUG or wxDEBUG_LEVEL_0.
144 # http://docs.wxwidgets.org/3.0/overview_debugging.html
145 # http://groups.google.com/group/wx-dev/browse_thread/thread/c3c7e78d63d7777f/05dee25410052d9c
146 use debug \
147 && myconf="${myconf} --enable-debug=max"
148
149 # wxGTK options
150 # --enable-graphics_ctx - needed for webkit, editra
151 # --without-gnomevfs - bug #203389
152 use X && \
153 myconf="${myconf}
154 --enable-graphics_ctx
155 --with-gtkprint
156 --enable-gui
157 --with-libpng=sys
158 --with-libxpm=sys
159 --with-libjpeg=sys
160 --without-gnomevfs
161 $(use_enable gstreamer mediactrl)
162 $(use_enable webkit webview)
163 $(use_with libnotify)
164 $(use_with opengl)
165 $(use_with tiff libtiff sys)"
166
167 use aqua && \
168 myconf="${myconf}
169 --enable-graphics_ctx
170 --enable-gui
171 --with-libpng=sys
172 --with-libxpm=sys
173 --with-libjpeg=sys
174 --with-mac
175 --with-opengl"
176 # cocoa toolkit seems to be broken
177
178 # wxBase options
179 if use !X && use !aqua ; then
180 myconf="${myconf}
181 --disable-gui"
182 fi
183
184 mkdir "${S}"/wxgtk_build
185 cd "${S}"/wxgtk_build
186
187 ECONF_SOURCE="${S}" econf ${myconf}
188 }
189
190 src_compile() {
191 cd "${S}"/wxgtk_build
192 emake
193 }
194
195 src_install() {
196 cd "${S}"/wxgtk_build
197
198 emake DESTDIR="${D}" install
199
200 cd "${S}"/docs
201 dodoc changes.txt readme.txt
202 newdoc base/readme.txt base_readme.txt
203 newdoc gtk/readme.txt gtk_readme.txt
204
205 if use doc; then
206 dohtml -r "${S}"/docs/doxygen/out/html/*
207 fi
208
209 # Stray windows locale file, causes collisions
210 local wxmsw="${ED}usr/share/locale/it/LC_MESSAGES/wxmsw.mo"
211 [[ -e ${wxmsw} ]] && rm "${wxmsw}"
212 }
213
214 pkg_postinst() {
215 has_version app-admin/eselect-wxwidgets \
216 && eselect wxwidgets update
217 }
218
219 pkg_postrm() {
220 has_version app-admin/eselect-wxwidgets \
221 && eselect wxwidgets update
222 }