Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 510708 | Differences between
and this patch

Collapse All | Expand All

(-)../../../../../portage/x11-libs/wxGTK/wxGTK-2.8.12.1-r1.ebuild (-43 / +41 lines)
Lines 4-10 Link Here
4
4
5
EAPI="5"
5
EAPI="5"
6
6
7
inherit eutils flag-o-matic multilib versionator
7
inherit eutils flag-o-matic versionator multilib-minimal
8
8
9
DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit"
9
DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit"
10
HOMEPAGE="http://wxwidgets.org/"
10
HOMEPAGE="http://wxwidgets.org/"
Lines 16-61 Link Here
16
# docs, and are released more frequently than wxGTK.
16
# docs, and are released more frequently than wxGTK.
17
SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2"
17
SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2"
18
18
19
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
19
KEYWORDS="~amd64 ~x86"
20
IUSE="+X aqua doc debug gnome gstreamer odbc opengl pch sdl tiff"
20
IUSE="+X aqua doc debug gnome gstreamer odbc opengl pch sdl tiff"
21
21
22
SLOT="2.8"
22
SLOT="2.8"
23
23
24
RDEPEND="
24
RDEPEND="
25
	dev-libs/expat
25
	dev-libs/expat[${MULTILIB_USEDEP}]
26
	odbc?   ( dev-db/unixODBC )
26
	odbc?   ( dev-db/unixODBC[${MULTILIB_USEDEP}] )
27
	sdl?    ( media-libs/libsdl )
27
	sdl?    ( media-libs/libsdl[${MULTILIB_USEDEP}] )
28
	X?  (
28
	X?  (
29
		dev-libs/glib:2
29
		dev-libs/glib:2[${MULTILIB_USEDEP}]
30
		media-libs/libpng:0=
30
		media-libs/libpng:0=[${MULTILIB_USEDEP}]
31
		sys-libs/zlib
31
		sys-libs/zlib[${MULTILIB_USEDEP}]
32
		virtual/jpeg
32
		virtual/jpeg[${MULTILIB_USEDEP}]
33
		x11-libs/gtk+:2
33
		x11-libs/gtk+:2[${MULTILIB_USEDEP}]
34
		x11-libs/libSM
34
		x11-libs/libSM[${MULTILIB_USEDEP}]
35
		x11-libs/libXinerama
35
		x11-libs/libXinerama[${MULTILIB_USEDEP}]
36
		x11-libs/libXxf86vm
36
		x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
37
		x11-libs/pango[X]
37
		x11-libs/pango[X,${MULTILIB_USEDEP}]
38
		gnome?  ( gnome-base/libgnomeprintui:2.2 )
38
		gnome?  ( gnome-base/libgnomeprintui:2.2[${MULTILIB_USEDEP}] )
39
		gstreamer? (
39
		gstreamer? (
40
			gnome-base/gconf:2
40
			gnome-base/gconf:2[${MULTILIB_USEDEP}]
41
			media-libs/gstreamer:0.10
41
			media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
42
			media-libs/gst-plugins-base:0.10 )
42
			media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
43
		opengl? ( virtual/opengl )
43
		)
44
		tiff?   ( media-libs/tiff:0 )
44
		opengl? ( virtual/opengl[${MULTILIB_USEDEP}] )
45
		tiff?   ( media-libs/tiff:0[${MULTILIB_USEDEP}] )
45
		)
46
		)
46
	aqua? (
47
	aqua? (
47
		>=x11-libs/gtk+-2.4[aqua=]
48
		>=x11-libs/gtk+-2.4[${MULTILIB_USEDEP},aqua=]
48
		virtual/jpeg
49
		virtual/jpeg[${MULTILIB_USEDEP}]
49
		tiff?   ( media-libs/tiff:0 )
50
		tiff?   ( media-libs/tiff:0[${MULTILIB_USEDEP}] )
50
		)"
51
		)"
51
52
52
DEPEND="${RDEPEND}
53
DEPEND="${RDEPEND}
53
		virtual/pkgconfig
54
		virtual/pkgconfig[${MULTILIB_USEDEP}]
54
		opengl? ( virtual/glu )
55
		opengl? ( virtual/glu[${MULTILIB_USEDEP}] )
55
		X?  (
56
		X?  (
56
			x11-proto/xproto
57
			x11-proto/xproto[${MULTILIB_USEDEP}]
57
			x11-proto/xineramaproto
58
			x11-proto/xineramaproto[${MULTILIB_USEDEP}]
58
			x11-proto/xf86vidmodeproto
59
			x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}]
59
			)"
60
			)"
60
61
61
PDEPEND=">=app-admin/eselect-wxwidgets-0.7"
62
PDEPEND=">=app-admin/eselect-wxwidgets-0.7"
Lines 84-90 Link Here
84
	epatch_user
85
	epatch_user
85
}
86
}
86
87
87
src_configure() {
88
multilib_src_configure() {
88
	local myconf
89
	local myconf
89
90
90
	append-flags -fno-strict-aliasing
91
	append-flags -fno-strict-aliasing
Lines 135-149 Link Here
135
			--disable-gui"
136
			--disable-gui"
136
	fi
137
	fi
137
138
138
	mkdir "${S}"/wxgtk_build
139
	cd "${S}"/wxgtk_build
140
141
	ECONF_SOURCE="${S}" econf ${myconf}
139
	ECONF_SOURCE="${S}" econf ${myconf}
142
}
140
}
143
141
144
src_compile() {
142
multilib_src_compile() {
145
	cd "${S}"/wxgtk_build
146
147
	emake
143
	emake
148
144
149
	if [[ -d contrib/src ]]; then
145
	if [[ -d contrib/src ]]; then
Lines 152-167 Link Here
152
	fi
148
	fi
153
}
149
}
154
150
155
src_install() {
151
multilib_src_install() {
156
	cd "${S}"/wxgtk_build
152
	default
157
158
	emake DESTDIR="${D}" install
159
153
160
	if [[ -d contrib/src ]]; then
154
	if [[ -d contrib/src ]]; then
161
		cd contrib/src
155
		cd contrib/src
162
		emake DESTDIR="${D}" install
156
		emake DESTDIR="${D}" install
163
	fi
157
	fi
164
158
159
	if multilib_is_native_abi; then
160
		# Stray windows locale file, causes collisions
161
		local wxmsw="${ED}usr/share/locale/it/LC_MESSAGES/wxmsw.mo"
162
		[[ -e ${wxmsw} ]] && rm "${wxmsw}"
163
	fi
164
}
165
166
multilib_src_install_all() {
165
	cd "${S}"/docs
167
	cd "${S}"/docs
166
	dodoc changes.txt readme.txt todo30.txt
168
	dodoc changes.txt readme.txt todo30.txt
167
	newdoc base/readme.txt base_readme.txt
169
	newdoc base/readme.txt base_readme.txt
Lines 170-179 Link Here
170
	if use doc; then
172
	if use doc; then
171
		dohtml -r "${S}"/docs/html/*
173
		dohtml -r "${S}"/docs/html/*
172
	fi
174
	fi
173
174
	# Stray windows locale file, causes collisions
175
	local wxmsw="${ED}usr/share/locale/it/LC_MESSAGES/wxmsw.mo"
176
	[[ -e ${wxmsw} ]] && rm "${wxmsw}"
177
}
175
}
178
176
179
pkg_postinst() {
177
pkg_postinst() {

Return to bug 510708