Gentoo Archives: gentoo-commits

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