Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/cogl/
Date: Thu, 25 Apr 2019 18:15:03
Message-Id: 1556216091.932e728eca8ce21059fcc165911430a5deaa43e0.pacho@gentoo
1 commit: 932e728eca8ce21059fcc165911430a5deaa43e0
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 25 18:07:28 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 25 18:14:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=932e728e
7
8 media-libs/cogl: Bump to 1.22.4
9
10 Package-Manager: Portage-2.3.64, Repoman-2.3.12
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 media-libs/cogl/Manifest | 1 +
14 media-libs/cogl/cogl-1.22.4.ebuild | 133 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 134 insertions(+)
16
17 diff --git a/media-libs/cogl/Manifest b/media-libs/cogl/Manifest
18 index 4c6116f1308..70342c8a200 100644
19 --- a/media-libs/cogl/Manifest
20 +++ b/media-libs/cogl/Manifest
21 @@ -1 +1,2 @@
22 DIST cogl-1.22.2.tar.xz 1682360 BLAKE2B f5a1543266bd87c6835322d5dbf501ec4f9fec52cc18d73d140323fef2f1b6b2293b5998bc8914b0a8cb514e7fefe5a1500793e1c7d8b5e0a4365fe8ef13233f SHA512 2ec99f5ff22683d12925b9a1f748387b47c4506aaf3c5afec851b3b6fe6b7cdfd211fb7e4359bd7a1d1b7cb3cb7fbd257efbcb7d2941d0f133a60bad1c9645e3
23 +DIST cogl-1.22.4.tar.xz 1723856 BLAKE2B 9e8532e3a0d17662042e2e61e45a7ddab6d3a35c7fbb070426b574292d7d3ed81e42a05cde9ab9a58ecda4eb6d560d0dca6c44b7791bba195e2ab2a33e8c0dc1 SHA512 85f3af49c16dd2e545a3b91c076ac10107a4b9d0dc785cefe489e91eabdd82837f732685f1f0dca1695fc2f8095f42d5f30f145b659eb4295964787f06c1e37a
24
25 diff --git a/media-libs/cogl/cogl-1.22.4.ebuild b/media-libs/cogl/cogl-1.22.4.ebuild
26 new file mode 100644
27 index 00000000000..7061df2b3cd
28 --- /dev/null
29 +++ b/media-libs/cogl/cogl-1.22.4.ebuild
30 @@ -0,0 +1,133 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit gnome2 multilib virtualx
37 +
38 +DESCRIPTION="A library for using 3D graphics hardware to draw pretty pictures"
39 +HOMEPAGE="https://www.cogl3d.org/"
40 +
41 +LICENSE="MIT BSD"
42 +SLOT="1.0/20" # subslot = .so version
43 +
44 +# doc and profile disable for now due to bugs #484750 and #483332
45 +IUSE="debug examples gles2 gstreamer +introspection +kms +opengl +pango test wayland" # doc profile
46 +REQUIRED_USE="
47 + wayland? ( gles2 )
48 + || ( gles2 opengl )
49 +"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
51 +
52 +COMMON_DEPEND="
53 + >=dev-libs/glib-2.32:2
54 + x11-libs/cairo:=
55 + >=x11-libs/gdk-pixbuf-2:2
56 + x11-libs/libX11
57 + >=x11-libs/libXcomposite-0.4
58 + x11-libs/libXdamage
59 + x11-libs/libXext
60 + >=x11-libs/libXfixes-3
61 + >=x11-libs/libXrandr-1.2
62 + virtual/opengl
63 + gles2? ( media-libs/mesa[gles2] )
64 + gstreamer? (
65 + media-libs/gstreamer:1.0
66 + media-libs/gst-plugins-base:1.0 )
67 + introspection? ( >=dev-libs/gobject-introspection-1.34.2:= )
68 + kms? (
69 + media-libs/mesa[gbm]
70 + x11-libs/libdrm:= )
71 + pango? ( >=x11-libs/pango-1.20.0[introspection?] )
72 + wayland? (
73 + >=dev-libs/wayland-1.1.90
74 + media-libs/mesa[egl,wayland] )
75 +"
76 +# before clutter-1.7, cogl was part of clutter
77 +RDEPEND="${COMMON_DEPEND}
78 + !<media-libs/clutter-1.7
79 +"
80 +DEPEND="${COMMON_DEPEND}
81 + dev-util/glib-utils
82 + >=dev-util/gtk-doc-am-1.13
83 + >=sys-devel/gettext-0.19
84 + virtual/pkgconfig
85 + test? (
86 + app-eselect/eselect-opengl
87 + media-libs/mesa[classic] )
88 +"
89 +
90 +# Need classic mesa swrast for tests, llvmpipe causes a test failure
91 +# For some reason GL3 conformance test all fails again...
92 +RESTRICT="test"
93 +
94 +src_prepare() {
95 + # Do not build examples
96 + sed -e "s/^\(SUBDIRS +=.*\)examples\(.*\)$/\1\2/" \
97 + -i Makefile.am Makefile.in || die
98 +
99 + if ! use test ; then
100 + # For some reason the configure switch will not completely disable
101 + # tests being built
102 + sed -e "s/^\(SUBDIRS =.*\)test-fixtures\(.*\)$/\1\2/" \
103 + -e "s/^\(SUBDIRS +=.*\)tests\(.*\)$/\1\2/" \
104 + -e "s/^\(.*am__append.* \)tests\(.*\)$/\1\2/" \
105 + -i Makefile.am Makefile.in || die
106 + fi
107 +
108 + gnome2_src_prepare
109 +}
110 +
111 +src_configure() {
112 + # TODO: think about quartz, sdl
113 + # Prefer gl over gles2 if both are selected
114 + # Profiling needs uprof, which is not available in portage yet, bug #484750
115 + # FIXME: Doesn't provide prebuilt docs, but they can neither be rebuilt, bug #483332
116 + gnome2_src_configure \
117 + --disable-examples-install \
118 + --disable-maintainer-flags \
119 + --enable-cairo \
120 + --enable-deprecated \
121 + --enable-gdk-pixbuf \
122 + --enable-glib \
123 + $(use_enable debug) \
124 + $(use_enable opengl glx) \
125 + $(use_enable opengl gl) \
126 + $(use_enable gles2) \
127 + $(use_enable gles2 cogl-gles2) \
128 + $(use_enable gles2 xlib-egl-platform) \
129 + $(usex gles2 --with-default-driver=$(usex opengl gl gles2)) \
130 + $(use_enable gstreamer cogl-gst) \
131 + $(use_enable introspection) \
132 + $(use_enable kms kms-egl-platform) \
133 + $(use_enable pango cogl-pango) \
134 + $(use_enable test unit-tests) \
135 + $(use_enable wayland wayland-egl-platform) \
136 + $(use_enable wayland wayland-egl-server) \
137 + --disable-profile
138 +# $(use_enable profile)
139 +}
140 +
141 +src_test() {
142 + # Use swrast for tests, llvmpipe is incomplete and "test_sub_texture" fails
143 + # NOTE: recheck if this is needed after every mesa bump
144 + if [[ "$(eselect opengl show)" != "xorg-x11" ]]; then
145 + ewarn "Skipping tests because a binary OpenGL library is enabled. To"
146 + ewarn "run tests for ${PN}, you need to enable the Mesa library:"
147 + ewarn "# eselect opengl set xorg-x11"
148 + return
149 + fi
150 + virtx emake check LIBGL_DRIVERS_PATH="${EROOT}/usr/$(get_libdir)/mesa"
151 +}
152 +
153 +src_install() {
154 + if use examples; then
155 + insinto /usr/share/doc/${PF}/examples
156 + doins examples/{*.c,*.jpg}
157 + fi
158 +
159 + gnome2_src_install
160 +
161 + # Remove silly examples-data directory
162 + rm -rvf "${ED}/usr/share/cogl/examples-data/" || die
163 +}