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.9.1.ebuild
Date: Tue, 14 Oct 2008 05:54:06
Message-Id: E1Kpcr3-0007lD-Qo@stork.gentoo.org
1 dirtyepic 08/10/14 05:54:01
2
3 Modified: ChangeLog
4 Added: wxGTK-2.8.9.1.ebuild
5 Log:
6 Version bump. EAPI 2.
7 (Portage version: 2.2_rc12/cvs/Linux 2.6.26-gentoo-r1 x86_64)
8
9 Revision Changes Path
10 1.196 x11-libs/wxGTK/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/ChangeLog?rev=1.196&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/ChangeLog?rev=1.196&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/ChangeLog?r1=1.195&r2=1.196
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v
19 retrieving revision 1.195
20 retrieving revision 1.196
21 diff -u -r1.195 -r1.196
22 --- ChangeLog 30 Jul 2008 04:53:23 -0000 1.195
23 +++ ChangeLog 14 Oct 2008 05:54:01 -0000 1.196
24 @@ -1,6 +1,11 @@
25 # ChangeLog for x11-libs/wxGTK
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v 1.195 2008/07/30 04:53:23 dirtyepic Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/ChangeLog,v 1.196 2008/10/14 05:54:01 dirtyepic Exp $
29 +
30 +*wxGTK-2.8.9.1 (14 Oct 2008)
31 +
32 + 14 Oct 2008; Ryan Hill <dirtyepic@g.o> +wxGTK-2.8.9.1.ebuild:
33 + Version bump. EAPI 2.
34
35 30 Jul 2008; Ryan Hill <dirtyepic@g.o> metadata.xml:
36 Add USE flag descriptions to metadata.xml.
37
38
39
40 1.1 x11-libs/wxGTK/wxGTK-2.8.9.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/wxGTK-2.8.9.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/wxGTK/wxGTK-2.8.9.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: wxGTK-2.8.9.1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-2.8.9.1.ebuild,v 1.1 2008/10/14 05:54:01 dirtyepic Exp $
50
51 EAPI="2"
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 # docs, and are released more frequently than wxGTK.
63 SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2"
64
65 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
66 IUSE="X doc debug gnome gstreamer odbc opengl pch sdl"
67
68 RDEPEND="
69 dev-libs/expat
70 odbc? ( dev-db/unixODBC )
71 sdl? ( media-libs/libsdl )
72 X? (
73 >=x11-libs/gtk+-2.4
74 >=dev-libs/glib-2.4
75 media-libs/jpeg
76 media-libs/tiff
77 x11-libs/libSM
78 x11-libs/libXinerama
79 x11-libs/libXxf86vm
80 gnome? ( gnome-base/libgnomeprintui )
81 gstreamer? ( >=media-libs/gstreamer-0.10 )
82 opengl? ( virtual/opengl )
83 )"
84
85 DEPEND="${RDEPEND}
86 dev-util/pkgconfig
87 X? (
88 x11-proto/xproto
89 x11-proto/xineramaproto
90 x11-proto/xf86vidmodeproto
91 )"
92
93 PDEPEND=">=app-admin/eselect-wxwidgets-0.7"
94
95 SLOT="2.8"
96 LICENSE="wxWinLL-3
97 GPL-2
98 odbc? ( LGPL-2 )
99 doc? ( wxWinFDL-3 )"
100
101 S="${WORKDIR}/wxPython-src-${PV}"
102
103 src_prepare() {
104 epatch "${FILESDIR}"/${PN}-2.6.3-unicode-odbc.patch
105 epatch "${FILESDIR}"/${PN}-2.8.8-collision.patch
106 epatch "${FILESDIR}"/${PN}-2.8.6-wxrc_link_fix.patch
107 epatch "${FILESDIR}"/${PN}-2.8.7-mmedia.patch # Bug #174874
108 }
109
110 src_configure() {
111 local myconf
112
113 append-flags -fno-strict-aliasing
114
115 # X independent options
116 myconf="--enable-compat26
117 --enable-shared
118 --enable-unicode
119 --with-regex=builtin
120 --with-zlib=sys
121 --with-expat
122 $(use_enable debug)
123 $(use_enable pch precomp-headers)
124 $(use_with sdl)
125 $(use_with odbc)"
126
127 # wxGTK options
128 # --enable-graphics_ctx - needed for webkit, editra
129 # --without-gnomevfs - bug #203389
130
131 use X && \
132 myconf="${myconf}
133 --enable-graphics_ctx
134 --enable-gui
135 --with-libpng
136 --with-libxpm
137 --with-libjpeg
138 --with-libtiff
139 $(use_enable gstreamer mediactrl)
140 $(use_enable opengl)
141 $(use_with opengl)
142 $(use_with gnome gnomeprint)
143 --without-gnomevfs"
144
145 # wxBase options
146 use X || \
147 myconf="${myconf}
148 --disable-gui"
149
150 mkdir "${S}"/wxgtk_build
151 cd "${S}"/wxgtk_build
152
153 ECONF_SOURCE="${S}" econf ${myconf} || die "configure failed."
154 }
155
156 src_compile() {
157 cd "${S}"/wxgtk_build
158
159 emake || die "make failed."
160
161 if [[ -d contrib/src ]]; then
162 cd contrib/src
163 emake || die "make contrib failed."
164 fi
165 }
166
167 src_install() {
168 cd "${S}"/wxgtk_build
169
170 emake DESTDIR="${D}" install || die "install failed."
171
172 if [[ -d contrib/src ]]; then
173 cd contrib/src
174 emake DESTDIR="${D}" install || die "install contrib failed."
175 fi
176
177 cd "${S}"/docs
178 dodoc changes.txt readme.txt todo30.txt
179 newdoc base/readme.txt base_readme.txt
180 newdoc gtk/readme.txt gtk_readme.txt
181
182 if use doc; then
183 dohtml -r "${S}"/docs/html/*
184 fi
185
186 # We don't want this
187 rm "${D}"usr/share/locale/it/LC_MESSAGES/wxmsw.mo
188 }
189
190 pkg_postinst() {
191 has_version app-admin/eselect-wxwidgets \
192 && eselect wxwidgets update
193 }
194
195 pkg_postrm() {
196 has_version app-admin/eselect-wxwidgets \
197 && eselect wxwidgets update
198 }