/[gentoo-x86]/x11-libs/wxGTK/wxGTK-2.9.4.1.ebuild
Gentoo

Contents of /x11-libs/wxGTK/wxGTK-2.9.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 16 02:54:05 2012 UTC (2 years ago) by dirtyepic
Branch: MAIN
Changes since 1.1: +3 -3 lines
Make gstreamer SLOT explicit. Remove old.

(Portage version: 2.2.0_alpha128/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-2.9.4.1.ebuild,v 1.1 2012/07/28 22:45:58 dirtyepic Exp $
4
5 EAPI="4"
6
7 inherit eutils flag-o-matic
8
9 DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit"
10 HOMEPAGE="http://wxwidgets.org/"
11
12 # we use the wxPython tarballs because they include the full wxGTK sources and
13 # docs, and are released more frequently than wxGTK.
14 SRC_URI="mirror://sourceforge/wxpython/wxPython-src-2.9.4.0.tar.bz2
15 doc? ( mirror://sourceforge/wxpython/wxPython-docs-2.9.4.0.tar.bz2 )
16 mirror://sourceforge/wxpython/wxPython-src-${PV}.patch"
17
18 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"
19 IUSE="X aqua doc debug gnome gstreamer opengl pch sdl tiff"
20
21 RDEPEND="
22 dev-libs/expat
23 sdl? ( media-libs/libsdl )
24 X? (
25 >=dev-libs/glib-2.22:2
26 media-libs/libpng:0
27 sys-libs/zlib
28 virtual/jpeg
29 >=x11-libs/gtk+-2.18:2
30 x11-libs/libSM
31 x11-libs/libXinerama
32 x11-libs/libXxf86vm
33 x11-libs/pango[X]
34 gnome? ( gnome-base/libgnomeprintui:2.2 )
35 gstreamer? (
36 gnome-base/gconf:2
37 media-libs/gstreamer:0.10
38 media-libs/gst-plugins-base:0.10 )
39 opengl? ( virtual/opengl )
40 tiff? ( media-libs/tiff:0 )
41 )
42 aqua? (
43 >=x11-libs/gtk+-2.4[aqua=]
44 virtual/jpeg
45 tiff? ( media-libs/tiff:0 )
46 )"
47
48 DEPEND="${RDEPEND}
49 dev-util/cppunit
50 virtual/pkgconfig
51 X? (
52 x11-proto/xproto
53 x11-proto/xineramaproto
54 x11-proto/xf86vidmodeproto
55 )"
56
57 PDEPEND=">=app-admin/eselect-wxwidgets-1.4"
58
59 SLOT="2.9"
60 LICENSE="wxWinLL-3
61 GPL-2
62 doc? ( wxWinFDL-3 )"
63
64 S="${WORKDIR}/wxPython-src-2.9.4.0"
65
66 src_prepare() {
67 epatch "${FILESDIR}"/${P}-collision.patch
68 epatch "${DISTDIR}"/wxPython-src-${PV}.patch
69 }
70
71 src_configure() {
72 local myconf
73
74 append-flags -fno-strict-aliasing
75
76 # X independent options
77 myconf="--enable-compat26
78 --with-zlib=sys
79 --with-expat=sys
80 $(use_enable pch precomp-headers)
81 $(use_with sdl)"
82
83 # debug in >=2.9
84 # if USE="debug" set max debug level (wxDEBUG_LEVEL=2)
85 # if USE="-debug" use the default (wxDEBUG_LEVEL=1)
86 # do not use --disable-debug
87 # this means we always build debugging features into the library, and
88 # apps can disable these features by building w/ -NDEBUG or wxDEBUG_LEVEL_0.
89 # wxDEBUG_LEVEL=2 enables assertions that have expensive runtime costs.
90 # http://docs.wxwidgets.org/2.9/overview_debugging.html
91 # http://groups.google.com/group/wx-dev/browse_thread/thread/c3c7e78d63d7777f/05dee25410052d9c
92 use debug \
93 && myconf="${myconf} --enable-debug=max"
94
95 # wxGTK options
96 # --enable-graphics_ctx - needed for webkit, editra
97 # --without-gnomevfs - bug #203389
98
99 use X && \
100 myconf="${myconf}
101 --enable-graphics_ctx
102 --enable-gui
103 --with-libpng=sys
104 --with-libxpm=sys
105 --with-libjpeg=sys
106 --without-gnomevfs
107 $(use_enable gstreamer mediactrl)
108 $(use_with opengl)
109 $(use_with gnome gnomeprint)
110 $(use_with !gnome gtkprint)
111 $(use_with tiff libtiff sys)"
112
113 use aqua && \
114 myconf="${myconf}
115 --enable-graphics_ctx
116 --enable-gui
117 --with-libpng=sys
118 --with-libxpm=sys
119 --with-libjpeg=sys
120 --with-mac
121 --with-opengl"
122 # cocoa toolkit seems to be broken
123
124 # wxBase options
125 if use !X && use !aqua ; then
126 myconf="${myconf}
127 --disable-gui"
128 fi
129
130 mkdir "${S}"/wxgtk_build
131 cd "${S}"/wxgtk_build
132
133 ECONF_SOURCE="${S}" econf ${myconf}
134 }
135
136 src_compile() {
137 cd "${S}"/wxgtk_build
138 emake
139 }
140
141 # Currently fails - need to investigate
142 #src_test() {
143 # cd "${S}"/wxgtk_build/tests
144 # emake || die "failed building testsuite"
145 # ./test -d || ewarn "failed running testsuite"
146 #}
147
148 src_install() {
149 cd "${S}"/wxgtk_build
150
151 emake DESTDIR="${D}" install
152
153 cd "${S}"/docs
154 dodoc changes.txt readme.txt
155 newdoc base/readme.txt base_readme.txt
156 newdoc gtk/readme.txt gtk_readme.txt
157
158 if use doc; then
159 dohtml -r "${S}"/docs/doxygen/out/html/*
160 fi
161 }
162
163 pkg_postinst() {
164 has_version app-admin/eselect-wxwidgets \
165 && eselect wxwidgets update
166 }
167
168 pkg_postrm() {
169 has_version app-admin/eselect-wxwidgets \
170 && eselect wxwidgets update
171 }

  ViewVC Help
Powered by ViewVC 1.1.20