Gentoo Archives: gentoo-commits

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