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-3.0.0.0.ebuild (-47 / +46 lines)
Lines 1-10 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-3.0.0.0.ebuild,v 1.4 2014/05/23 08:21:26 rhill Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-3.0.0.0.ebuild,v 1.3 2014/01/27 17:35:05 dirtyepic Exp $
4
4
5
EAPI="5"
5
EAPI="5"
6
6
7
inherit eutils flag-o-matic
7
inherit eutils flag-o-matic 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 14-58 Link Here
14
SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2
14
SRC_URI="mirror://sourceforge/wxpython/wxPython-src-${PV}.tar.bz2
15
	doc? ( mirror://sourceforge/wxpython/wxPython-docs-${PV}.tar.bz2 )"
15
	doc? ( mirror://sourceforge/wxpython/wxPython-docs-${PV}.tar.bz2 )"
16
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"
17
KEYWORDS="~amd64 ~x86"
18
IUSE="+X aqua doc debug gstreamer libnotify opengl sdl tiff webkit"
18
IUSE="+X aqua doc debug gstreamer libnotify opengl sdl tiff webkit"
19
19
20
SLOT="3.0"
20
SLOT="3.0"
21
21
22
RDEPEND="
22
RDEPEND="
23
	dev-libs/expat
23
	dev-libs/expat[${MULTILIB_USEDEP}]
24
	sdl?    ( media-libs/libsdl )
24
	sdl?    ( media-libs/libsdl[${MULTILIB_USEDEP}] )
25
	X?  (
25
	X?  (
26
		>=dev-libs/glib-2.22:2
26
		>=dev-libs/glib-2.22:2[${MULTILIB_USEDEP}]
27
		media-libs/libpng:0=
27
		media-libs/libpng:0=[${MULTILIB_USEDEP}]
28
		sys-libs/zlib
28
		sys-libs/zlib[${MULTILIB_USEDEP}]
29
		virtual/jpeg
29
		virtual/jpeg[${MULTILIB_USEDEP}]
30
		>=x11-libs/gtk+-2.18:2
30
		>=x11-libs/gtk+-2.18:2[${MULTILIB_USEDEP}]
31
		x11-libs/gdk-pixbuf
31
		x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}]
32
		x11-libs/libSM
32
		x11-libs/libSM[${MULTILIB_USEDEP}]
33
		x11-libs/libXxf86vm
33
		x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
34
		x11-libs/pango[X]
34
		x11-libs/pango[X,${MULTILIB_USEDEP}]
35
		gstreamer? (
35
		gstreamer? (
36
			media-libs/gstreamer:0.10
36
			media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
37
			media-libs/gst-plugins-base:0.10 )
37
			media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
38
		libnotify? ( x11-libs/libnotify )
38
		)
39
		opengl? ( virtual/opengl )
39
		libnotify? (
40
		tiff?   ( media-libs/tiff:0 )
40
			x11-libs/libnotify
41
		webkit? ( net-libs/webkit-gtk:2 )
41
			amd64? (
42
				app-emulation/emul-linux-x86-gtklibs
43
			)
44
		)
45
		opengl? ( virtual/opengl[${MULTILIB_USEDEP}] )
46
		tiff?   ( media-libs/tiff:0[${MULTILIB_USEDEP}] )
47
		webkit? ( net-libs/webkit-gtk:2[${MULTILIB_USEDEP}] )
42
		)
48
		)
43
	aqua? (
49
	aqua? (
44
		>=x11-libs/gtk+-2.4[aqua=]
50
		>=x11-libs/gtk+-2.4[${MULTILIB_USEDEP},aqua=]
45
		virtual/jpeg
51
		virtual/jpeg[${MULTILIB_USEDEP}]
46
		tiff?   ( media-libs/tiff:0 )
52
		tiff?   ( media-libs/tiff:0[${MULTILIB_USEDEP}] )
47
		)"
53
		)"
48
54
49
DEPEND="${RDEPEND}
55
DEPEND="${RDEPEND}
50
	virtual/pkgconfig
56
	virtual/pkgconfig[${MULTILIB_USEDEP}]
51
	opengl? ( virtual/glu )
57
	opengl? ( virtual/glu[${MULTILIB_USEDEP}] )
52
	X?  (
58
	X?  (
53
		x11-proto/xproto
59
		x11-proto/xproto[${MULTILIB_USEDEP}]
54
		x11-proto/xineramaproto
60
		x11-proto/xineramaproto[${MULTILIB_USEDEP}]
55
		x11-proto/xf86vidmodeproto
61
		x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}]
56
		)"
62
		)"
57
63
58
PDEPEND=">=app-admin/eselect-wxwidgets-20131230"
64
PDEPEND=">=app-admin/eselect-wxwidgets-20131230"
Lines 65-79 Link Here
65
71
66
src_prepare() {
72
src_prepare() {
67
	epatch "${FILESDIR}"/${P}-collision.patch
73
	epatch "${FILESDIR}"/${P}-collision.patch
68
69
	# https://bugs.gentoo.org/421851
70
	# https://bugs.gentoo.org/499984
71
	sed -i -e "/wx_cv_std_libpath=/s:=.*:=$(get_libdir):" configure || die
72
73
	epatch_user
74
	epatch_user
74
}
75
}
75
76
76
src_configure() {
77
multilib_src_configure() {
77
	local myconf
78
	local myconf
78
79
79
	# X independent options
80
	# X independent options
Lines 128-149 Link Here
128
			--disable-gui"
129
			--disable-gui"
129
	fi
130
	fi
130
131
131
	mkdir "${S}"/wxgtk_build
132
	cd "${S}"/wxgtk_build
133
134
	ECONF_SOURCE="${S}" econf ${myconf}
132
	ECONF_SOURCE="${S}" econf ${myconf}
135
}
133
}
136
134
137
src_compile() {
135
multilib_src_compile() {
138
	cd "${S}"/wxgtk_build
136
	default
139
	emake
140
}
137
}
141
138
142
src_install() {
139
multilib_src_install() {
143
	cd "${S}"/wxgtk_build
140
	default
144
141
145
	emake DESTDIR="${D}" install
142
	if multilib_is_native_abi; then
143
		# Stray windows locale file, causes collisions
144
		local wxmsw="${ED}usr/share/locale/it/LC_MESSAGES/wxmsw.mo"
145
		[[ -e ${wxmsw} ]] && rm "${wxmsw}"
146
	fi 
147
}
146
148
149
multilib_src_install_all() {
147
	cd "${S}"/docs
150
	cd "${S}"/docs
148
	dodoc changes.txt readme.txt
151
	dodoc changes.txt readme.txt
149
	newdoc base/readme.txt base_readme.txt
152
	newdoc base/readme.txt base_readme.txt
Lines 152-161 Link Here
152
	if use doc; then
155
	if use doc; then
153
		dohtml -r "${S}"/docs/doxygen/out/html/*
156
		dohtml -r "${S}"/docs/doxygen/out/html/*
154
	fi
157
	fi
155
156
	# Stray windows locale file, causes collisions
157
	local wxmsw="${ED}usr/share/locale/it/LC_MESSAGES/wxmsw.mo"
158
	[[ -e ${wxmsw} ]] && rm "${wxmsw}"
159
}
158
}
160
159
161
pkg_postinst() {
160
pkg_postinst() {

Return to bug 510708