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.8.6.1.ebuild
Date: Thu, 29 Nov 2007 01:48:39
Message-Id: E1IxYVy-00008F-JI@stork.gentoo.org
1 dirtyepic 07/11/29 01:48:30
2
3 Modified: ChangeLog
4 Added: wxGTK-2.8.6.1.ebuild
5 Log:
6 Add 2.8.6.1 for testing.
7 (Portage version: 2.1.4_rc3)
8
9 Revision Changes Path
10 1.163 x11-libs/wxGTK/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/ChangeLog?rev=1.163&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/ChangeLog?rev=1.163&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/ChangeLog?r1=1.162&r2=1.163
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v
19 retrieving revision 1.162
20 retrieving revision 1.163
21 diff -u -r1.162 -r1.163
22 --- ChangeLog 24 Nov 2007 16:14:18 -0000 1.162
23 +++ ChangeLog 29 Nov 2007 01:48:29 -0000 1.163
24 @@ -1,6 +1,13 @@
25 # ChangeLog for x11-libs/wxGTK
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v 1.162 2007/11/24 16:14:18 dirtyepic Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v 1.163 2007/11/29 01:48:29 dirtyepic Exp $
29 +
30 +*wxGTK-2.8.6.1 (29 Nov 2007)
31 +
32 + 29 Nov 2007; Ryan Hill <dirtyepic@g.o>
33 + +files/wxGTK-2.8.4-collision.patch,
34 + +files/wxGTK-2.8.6-extralibs-media.patch, +wxGTK-2.8.6.1.ebuild:
35 + Add 2.8.6.1 for testing.
36
37 24 Nov 2007; Ryan Hill <dirtyepic@g.o> wxGTK-2.6.4.0-r2.ebuild:
38 Make --disable-precomp-headers the default since it also cuts 1/3 off the
39
40
41
42 1.1 x11-libs/wxGTK/wxGTK-2.8.6.1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/wxGTK-2.8.6.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/wxGTK-2.8.6.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: wxGTK-2.8.6.1.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.8.6.1.ebuild,v 1.1 2007/11/29 01:48:30 dirtyepic Exp $
52
53 EAPI=1
54
55 inherit eutils versionator flag-o-matic
56
57 DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit."
58 HOMEPAGE="http://wxwidgets.org/"
59
60 BASE_PV="$(get_version_component_range 1-3)"
61 BASE_P="${PN}-${BASE_PV}"
62
63 # we use the wxPython tarballs because they include the full wxGTK sources and
64 # are released more frequently than wxGTK.
65 SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2
66 doc? ( mirror://sourceforge/wxwindows/wxWidgets-${BASE_PV}-HTML.zip )"
67
68 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
69 IUSE="X doc debug gnome gstreamer odbc opengl sdl"
70
71 RDEPEND="
72 dev-libs/expat
73 odbc? ( dev-db/unixODBC )
74 sdl? ( media-libs/libsdl )
75 X? (
76 x11-libs/gtk+:2
77 dev-libs/glib:2
78 media-libs/jpeg
79 media-libs/tiff
80 x11-libs/libSM
81 x11-libs/libXinerama
82 x11-libs/libXxf86vm
83 gnome? (
84 gnome-base/libgnomeprintui
85 gnome-base/gnome-vfs
86 )
87 gstreamer? ( media-libs/gstreamer:0.10 )
88 opengl? ( virtual/opengl )
89 )"
90
91 DEPEND="${RDEPEND}
92 dev-util/pkgconfig
93 app-admin/eselect-wxwidgets
94 X? (
95 x11-proto/xproto
96 x11-proto/xineramaproto
97 x11-proto/xf86vidmodeproto
98 )"
99
100 SLOT="2.8"
101 LICENSE="wxWinLL-3
102 GPL-2
103 odbc? ( LGPL-2 )
104 doc? ( wxWinFDL-3 )"
105
106 S="${WORKDIR}/wxPython-src-${PV}"
107 HTML_S="${WORKDIR}/wxWidgets-${BASE_PV}"
108
109 src_unpack() {
110 unpack ${A}
111 cd "${S}"
112
113 # General patches
114
115 epatch "${FILESDIR}"/${PN}-2.6.3-unicode-odbc.patch
116 epatch "${FILESDIR}"/${PN}-2.8.4-collision.patch
117
118 # Patches specific to this Version
119
120 epatch "${FILESDIR}"/${PN}-2.8.6-extralibs-media.patch
121 }
122
123 src_compile() {
124 local myconf
125
126 append-flags -fno-strict-aliasing
127
128 # configure notes:
129 # --disable-precomp-headers saves us about 800MiB of disk space and 1/3
130 # compile time
131
132 # X independent options
133 myconf="--enable-compat26
134 --enable-shared
135 --enable-unicode
136 --with-regex=builtin
137 --with-zlib=sys
138 --with-expat
139 --disable-precomp-headers
140 $(use_enable debug)
141 $(use_with sdl)
142 $(use_with odbc)"
143
144 # wxGTK options
145 use X && \
146 myconf="${myconf}
147 --enable-gui
148 --with-libpng
149 --with-libxpm
150 --with-libjpeg
151 --with-libtiff
152 $(use_enable gstreamer mediactrl)
153 $(use_enable opengl)
154 $(use_with opengl)
155 $(use_with gnome gnomeprint)
156 $(use_with gnome gnomevfs)"
157
158 # wxBase options
159 use X || \
160 myconf="${myconf}
161 --disable-gui"
162
163 mkdir "${S}"/wxgtk_build
164 cd "${S}"/wxgtk_build
165
166 ECONF_SOURCE="${S}" econf ${myconf} || die "configure failed."
167
168 emake || die "make failed."
169
170 if [[ -d contrib/src ]]; then
171 cd contrib/src
172 emake || die "make contrib failed."
173 fi
174 }
175
176 src_install() {
177 cd "${S}"/wxgtk_build
178
179 emake DESTDIR="${D}" install || die "install failed."
180
181 if [[ -d contrib/src ]]; then
182 cd contrib/src
183 emake DESTDIR="${D}" install || die "install contrib failed."
184 fi
185
186 if use doc; then
187 dohtml -r "${HTML_S}"/docs/html/*
188 fi
189
190 # We don't want this
191 rm "${D}"usr/share/locale/it/LC_MESSAGES/wxmsw.mo
192 }
193
194 pkg_postinst() {
195 if [[ ! -e /var/lib/wxwidgets/current \
196 || $(grep 'WXCONFIG="none"' /var/lib/wxwidgets/current) ]]; then
197 local wxchar wxtoolkit wxdebug
198 [[ ${SLOT} == 2.6 ]] && wxchar=ansi || wxchar=unicode
199 use X && wxtoolkit=gtk2 || wxtoolkit=base
200 use debug && wxdebug=debug || wxdebug=release
201
202 eselect wxwidgets set ${wxtoolkit}-${wxchar}-${wxdebug}-${SLOT}
203 else
204 eselect wxwidgets update
205 fi
206 }
207
208 pkg_postrm() {
209 eselect wxwidgets update
210 }
211
212
213
214 --
215 gentoo-commits@g.o mailing list