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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Sep 16 17:07:18 2012 UTC (2 years, 1 month ago) by dirtyepic
Branch: MAIN
Changes since 1.4: +3 -3 lines
SLOT gstreamer deps.

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

  ViewVC Help
Powered by ViewVC 1.1.20