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

Collapse All | Expand All

(-)/usr/portage/media-libs/cogl/cogl-1.22.2.ebuild (-30 / +9 lines)
Lines 3-9 Link Here
3
3
4
EAPI=6
4
EAPI=6
5
5
6
inherit gnome2 multilib virtualx
6
inherit gnome2 multilib
7
7
8
DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures"
8
DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures"
9
HOMEPAGE="https://www.cogl3d.org/"
9
HOMEPAGE="https://www.cogl3d.org/"
Lines 12-18 Link Here
12
SLOT="1.0/20" # subslot = .so version
12
SLOT="1.0/20" # subslot = .so version
13
13
14
# doc and profile disable for now due to bugs #484750 and #483332
14
# doc and profile disable for now due to bugs #484750 and #483332
15
IUSE="debug examples gles2 gstreamer +introspection +kms +opengl +pango test wayland" # doc profile
15
IUSE="debug examples gles2 gstreamer +introspection +kms libglvnd +opengl +pango wayland" # doc profile
16
REQUIRED_USE="
16
REQUIRED_USE="
17
	wayland? ( gles2 )
17
	wayland? ( gles2 )
18
	|| ( gles2 opengl )
18
	|| ( gles2 opengl )
Lines 52-79 Link Here
52
	>=dev-util/gtk-doc-am-1.13
52
	>=dev-util/gtk-doc-am-1.13
53
	>=sys-devel/gettext-0.19
53
	>=sys-devel/gettext-0.19
54
	virtual/pkgconfig
54
	virtual/pkgconfig
55
	test? (
56
		app-eselect/eselect-opengl
57
		media-libs/mesa[classic] )
58
"
55
"
59
56
60
# Need classic mesa swrast for tests, llvmpipe causes a test failure
61
# For some reason GL3 conformance test all fails again...
62
RESTRICT="test"
63
64
src_prepare() {
57
src_prepare() {
65
	# Do not build examples
58
	# Do not build examples
66
	sed -e "s/^\(SUBDIRS +=.*\)examples\(.*\)$/\1\2/" \
59
	sed -e "s/^\(SUBDIRS +=.*\)examples\(.*\)$/\1\2/" \
67
		-i Makefile.am Makefile.in || die
60
		-i Makefile.am Makefile.in || die
68
61
69
	if ! use test ; then
62
	# For some reason the configure switch will not completely disable
70
		# For some reason the configure switch will not completely disable
63
	# tests being built
71
		# tests being built
64
	sed -e "s/^\(SUBDIRS =.*\)test-fixtures\(.*\)$/\1\2/" \
72
		sed -e "s/^\(SUBDIRS =.*\)test-fixtures\(.*\)$/\1\2/" \
65
		-e "s/^\(SUBDIRS +=.*\)tests\(.*\)$/\1\2/" \
73
			-e "s/^\(SUBDIRS +=.*\)tests\(.*\)$/\1\2/" \
66
		-e "s/^\(.*am__append.* \)tests\(.*\)$/\1\2/" \
74
			-e "s/^\(.*am__append.* \)tests\(.*\)$/\1\2/" \
67
		-i Makefile.am Makefile.in || die
75
			-i Makefile.am Makefile.in || die
76
	fi
77
68
78
	gnome2_src_prepare
69
	gnome2_src_prepare
79
}
70
}
Lines 101-125 Link Here
101
		$(use_enable introspection) \
92
		$(use_enable introspection) \
102
		$(use_enable kms kms-egl-platform) \
93
		$(use_enable kms kms-egl-platform) \
103
		$(use_enable pango cogl-pango) \
94
		$(use_enable pango cogl-pango) \
104
		$(use_enable test unit-tests) \
95
		--disable-unit-tests \
105
		$(use_enable wayland wayland-egl-platform) \
96
		$(use_enable wayland wayland-egl-platform) \
106
		$(use_enable wayland wayland-egl-server) \
97
		$(use_enable wayland wayland-egl-server) \
107
		--disable-profile
98
		--disable-profile
108
#		$(use_enable profile)
99
#		$(use_enable profile)
109
}
100
}
110
101
111
src_test() {
112
	# Use swrast for tests, llvmpipe is incomplete and "test_sub_texture" fails
113
	# NOTE: recheck if this is needed after every mesa bump
114
	if [[ "$(eselect opengl show)" != "xorg-x11" ]]; then
115
		ewarn "Skipping tests because a binary OpenGL library is enabled. To"
116
		ewarn "run tests for ${PN}, you need to enable the Mesa library:"
117
		ewarn "# eselect opengl set xorg-x11"
118
		return
119
	fi
120
	virtx emake check LIBGL_DRIVERS_PATH="${EROOT}/usr/$(get_libdir)/mesa"
121
}
122
123
src_install() {
102
src_install() {
124
	if use examples; then
103
	if use examples; then
125
		insinto /usr/share/doc/${PF}/examples
104
		insinto /usr/share/doc/${PF}/examples

Return to bug 692206