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-2.6.4.0-r1.ebuild wxGTK-2.6.4.0.ebuild
Date: Sat, 27 Oct 2007 00:28:51
Message-Id: E1IlZXd-0002L1-JD@stork.gentoo.org
1 dirtyepic 07/10/27 00:28:41
2
3 Modified: ChangeLog
4 Added: wxGTK-2.6.4.0-r1.ebuild
5 Removed: wxGTK-2.6.4.0.ebuild
6 Log:
7 Revision bump to push out various minor fixes. Target for stabilization.
8 (Portage version: 2.1.3.16)
9
10 Revision Changes Path
11 1.152 x11-libs/wxGTK/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/ChangeLog?rev=1.152&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/ChangeLog?rev=1.152&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/ChangeLog?r1=1.151&r2=1.152
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v
20 retrieving revision 1.151
21 retrieving revision 1.152
22 diff -u -r1.151 -r1.152
23 --- ChangeLog 25 Oct 2007 13:11:54 -0000 1.151
24 +++ ChangeLog 27 Oct 2007 00:28:41 -0000 1.152
25 @@ -1,6 +1,12 @@
26 # ChangeLog for x11-libs/wxGTK
27 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v 1.151 2007/10/25 13:11:54 dirtyepic Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v 1.152 2007/10/27 00:28:41 dirtyepic Exp $
30 +
31 +*wxGTK-2.6.4.0-r1 (27 Oct 2007)
32 +
33 + 27 Oct 2007; Ryan Hill <dirtyepic@g.o> -wxGTK-2.6.4.0.ebuild,
34 + +wxGTK-2.6.4.0-r1.ebuild:
35 + Revision bump to push out various minor fixes. Target for stabilization.
36
37 25 Oct 2007; Ryan Hill <dirtyepic@g.o>
38 files/wxGTK-2.6.4-collision.patch:
39
40
41
42 1.1 x11-libs/wxGTK/wxGTK-2.6.4.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/wxGTK-2.6.4.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/wxGTK-2.6.4.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: wxGTK-2.6.4.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-2.6.4.0-r1.ebuild,v 1.1 2007/10/27 00:28:41 dirtyepic Exp $
52
53 inherit eutils versionator flag-o-matic
54
55 DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit."
56 HOMEPAGE="http://wxwidgets.org/"
57
58 BASE_PV="$(get_version_component_range 1-3)"
59 BASE_P="${PN}-${BASE_PV}"
60
61 # we use the wxPython tarballs because they include the full wxGTK sources and
62 # are released more frequently than wxGTK.
63 SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2
64 doc? ( mirror://sourceforge/wxwindows/wxWidgets-${BASE_PV}-HTML.tar.gz )"
65
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
67 IUSE="X doc debug gnome joystick odbc opengl sdl unicode"
68
69 DEPEND="
70 dev-libs/expat
71 odbc? ( dev-db/unixODBC )
72 sdl? ( media-libs/libsdl )
73 X? (
74 >=x11-libs/gtk+-2.0
75 >=dev-libs/glib-2.0
76 media-libs/jpeg
77 media-libs/tiff
78 x11-libs/libSM
79 x11-libs/libXinerama
80 x11-libs/libXxf86vm
81 gnome? ( gnome-base/libgnomeprintui )
82 opengl? ( virtual/opengl )
83 )"
84
85 SLOT="2.6"
86 LICENSE="wxWinLL-3
87 GPL-2
88 odbc? ( LGPL-2 )
89 doc? ( wxWinFDL-3 )"
90
91 S="${WORKDIR}/wxPython-src-${PV}"
92 HTML_S="${WORKDIR}/wxWidgets-${BASE_PV}"
93
94 src_unpack() {
95 unpack ${A}
96 cd "${S}"
97
98 # General Patches
99
100 epatch "${FILESDIR}"/${PN}-2.6.3-unicode-odbc.patch
101 epatch "${FILESDIR}"/${BASE_P}-collision.patch
102
103 # Patches Specific to this version
104
105 epatch "${FILESDIR}"/${P}-wxrc_link_fix.patch
106 epatch "${FILESDIR}"/${P}-g_free.patch
107
108 # Reverse apply patch in wxPython tarball that breaks ABI
109 EPATCH_SINGLE_MSG="Reversing listctrl-ongetitemcolumnimage.patch ..." \
110 EPATCH_OPTS="-R" epatch "${S}"/patches/listctrl-ongetitemcolumnimage.patch
111
112 # wxBase has an automagic sdl dependency. short circuit it here.
113 # http://bugs.gentoo.org/show_bug.cgi?id=91574
114 use sdl || sed -i -e 's:$wxUSE_LIBSDL" != "no":$wxUSE_LIBSDL" = "yes":' configure
115 }
116
117 src_compile() {
118 local myconf
119
120 append-flags -fno-strict-aliasing
121
122 # X independent options
123 myconf="--enable-shared
124 --disable-optimise
125 --disable-rpath
126 --enable-compat24
127 --with-regex=builtin
128 --with-zlib=sys
129 --with-expat
130 $(use_enable joystick)
131 $(use_with sdl)
132 $(use_with odbc)"
133
134 # wxGTK only
135 use X && \
136 myconf="${myconf}
137 --enable-gui
138 --with-libpng
139 --with-libxpm
140 --with-libjpeg
141 --with-libtiff
142 $(use_enable opengl)
143 $(use_with opengl)
144 $(use_with gnome gnomeprint)"
145
146 # wxBase only
147 use X || \
148 myconf="${myconf}
149 --disable-gui"
150
151 # in 2.6 we always build ansi
152 # everything else is controlled by USE
153 if ! use debug; then
154 build_wx ansi
155 else
156 build_wx ansi-debug
157 fi
158
159 if use unicode; then
160 if ! use debug; then
161 build_wx unicode
162 else
163 build_wx unicode-debug
164 fi
165 fi
166 }
167
168 src_install() {
169 # Note - the last version to be installed becomes the default, so install
170 # unicode after ansi.
171 install_wx ansi
172 install_wx ansi-debug
173 install_wx unicode
174 install_wx unicode-debug
175
176 dodoc "${S}"/docs/changes.txt
177 dodoc "${S}"/docs/gtk/readme.txt
178
179 if use doc; then
180 dohtml -r "${HTML_S}"/docs/html/*
181 fi
182
183 # I don't know what this is, but it's causing a collision.
184 rm "${D}"/usr/share/locale/it/LC_MESSAGES/wxmsw.mo
185
186 # This is temporary until we have the wx-config wrapper
187 dosym /usr/bin/wx-config-2.6 /usr/bin/wx-config
188 }
189
190 build_wx() {
191 local build_wx_conf
192
193 case "$1" in
194 ansi)
195 build_wx_conf="${build_wx_conf}
196 --disable-unicode"
197 ;;
198
199 ansi-debug)
200 build_wx_conf="${build_wx_conf}
201 --disable-unicode
202 --enable-debug_flag"
203 ;;
204
205 unicode)
206 build_wx_conf="${build_wx_conf}
207 --enable-unicode"
208 ;;
209
210 unicode-debug)
211 build_wx_conf="${build_wx_conf}
212 --enable-unicode
213 --enable-debug_flag"
214 ;;
215
216 *)
217 eerror "wxlib.class: build_wx called with invalid argument(s)."
218 die "wxlib.class: build_wx called with invalid argument(s)."
219 ;;
220 esac
221
222 mkdir -p build_$1
223 pushd build_$1
224
225 ECONF_SOURCE="${S}" econf \
226 ${myconf} \
227 ${build_wx_conf} \
228 || die "Failed to configure $1."
229
230 emake || die "Failed to make $1."
231
232 if [[ -e contrib/src ]]; then
233 cd contrib/src
234 emake || die "Failed to make $1 contrib."
235 fi
236
237 popd
238 }
239
240 install_wx() {
241 if [[ -d build_$1 ]]; then
242 pushd build_$1
243 emake DESTDIR="${D}" install || die "Failed to install $1."
244 if [[ -e contrib/src ]]; then
245 cd contrib/src
246 emake DESTDIR="${D}" install || die "Failed to install $1 contrib."
247 fi
248 popd
249 fi
250 }
251
252
253
254 --
255 gentoo-commits@g.o mailing list