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

(-)../../../gentoo/x11-libs/wxGTK/wxGTK-3.0.2.0-r1.ebuild (-54 / +45 lines)
Lines 4-10 Link Here
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-61 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="~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 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
		libnotify? ( x11-libs/libnotify[${MULTILIB_USEDEP}] )
39
		opengl? ( virtual/opengl )
39
		opengl? ( virtual/opengl[${MULTILIB_USEDEP}] )
40
		tiff?   ( media-libs/tiff:0 )
40
		tiff?   ( media-libs/tiff:0[${MULTILIB_USEDEP}] )
41
		webkit? ( net-libs/webkit-gtk:2 )
41
		webkit? ( net-libs/webkit-gtk:2 )
42
		)
42
		)
43
	aqua? (
43
	aqua? (
44
		>=x11-libs/gtk+-2.4[aqua=]
44
		>=x11-libs/gtk+-2.4:2[aqua=,${MULTILIB_USEDEP}]
45
		virtual/jpeg
45
		virtual/jpeg:=[${MULTILIB_USEDEP}]
46
		tiff?   ( media-libs/tiff:0 )
46
		tiff?   ( media-libs/tiff:0[${MULTILIB_USEDEP}] )
47
		)"
47
		)"
48
48
49
DEPEND="${RDEPEND}
49
DEPEND="${RDEPEND}
50
	virtual/pkgconfig
50
	virtual/pkgconfig[${MULTILIB_USEDEP}]
51
	opengl? ( virtual/glu )
51
	opengl? ( virtual/glu[${MULTILIB_USEDEP}] )
52
	X?  (
52
	X?  (
53
		x11-proto/xproto
53
		x11-proto/xproto[${MULTILIB_USEDEP}]
54
		x11-proto/xineramaproto
54
		x11-proto/xineramaproto[${MULTILIB_USEDEP}]
55
		x11-proto/xf86vidmodeproto
55
		x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}]
56
		)"
56
	)"
57
57
58
PDEPEND=">=app-eselect/eselect-wxwidgets-20131230"
58
PDEPEND=">=app-eselect/eselect-wxwidgets-20140423-r3"
59
59
60
LICENSE="wxWinLL-3
60
LICENSE="wxWinLL-3
61
		GPL-2
61
		GPL-2
Lines 65-84 Link Here
65
65
66
src_prepare() {
66
src_prepare() {
67
	epatch "${FILESDIR}"/${PN}-3.0.0.0-collision.patch
67
	epatch "${FILESDIR}"/${PN}-3.0.0.0-collision.patch
68
69
	# https://bugs.gentoo.org/421851
70
	# https://bugs.gentoo.org/499984
71
	# https://bugs.gentoo.org/536004
72
	sed \
73
		-e "/wx_cv_std_libpath=/s:=.*:=$(get_libdir):" \
74
		-e 's:3\.0\.1:3.0.2:g' \
75
		-e 's:^wx_release_number=1$:wx_release_number=2:' \
76
		-i configure || die
77
78
	epatch_user
68
	epatch_user
69
70
	multilib_prepare() {
71
		# https://bugs.gentoo.org/421851
72
		# https://bugs.gentoo.org/499984
73
		# https://bugs.gentoo.org/536004
74
		sed \
75
			-e "/wx_cv_std_libpath=/s:=.*:=$(get_libdir):" \
76
			-e 's:3\.0\.1:3.0.2:g' \
77
			-e 's:^wx_release_number=1$:wx_release_number=2:' \
78
			-i "${BUILD_DIR}"/configure || die
79
	}
80
	multilib_copy_sources
81
	multilib_parallel_foreach_abi multilib_prepare
79
}
82
}
80
83
81
src_configure() {
84
multilib_src_configure() {
82
	local myconf
85
	local myconf
83
86
84
	# X independent options
87
	# X independent options
Lines 111-117 Link Here
111
			--with-libjpeg=sys
114
			--with-libjpeg=sys
112
			--without-gnomevfs
115
			--without-gnomevfs
113
			$(use_enable gstreamer mediactrl)
116
			$(use_enable gstreamer mediactrl)
114
			$(use_enable webkit webview)
117
			$(multilib_native_use_enable webkit webview)
115
			$(use_with libnotify)
118
			$(use_with libnotify)
116
			$(use_with opengl)
119
			$(use_with opengl)
117
			$(use_with tiff libtiff sys)"
120
			$(use_with tiff libtiff sys)"
Lines 133-154 Link Here
133
			--disable-gui"
136
			--disable-gui"
134
	fi
137
	fi
135
138
136
	mkdir "${S}"/wxgtk_build
139
	econf ${myconf}
137
	cd "${S}"/wxgtk_build
138
139
	ECONF_SOURCE="${S}" econf ${myconf}
140
}
140
}
141
141
142
src_compile() {
142
multilib_src_install_all() {
143
	cd "${S}"/wxgtk_build
144
	emake
145
}
146
147
src_install() {
148
	cd "${S}"/wxgtk_build
149
150
	emake DESTDIR="${D}" install
151
152
	cd "${S}"/docs
143
	cd "${S}"/docs
153
	dodoc changes.txt readme.txt
144
	dodoc changes.txt readme.txt
154
	newdoc base/readme.txt base_readme.txt
145
	newdoc base/readme.txt base_readme.txt

Return to bug 510708