public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexandre Rostovtsev" <tetromino@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: media-libs/cogl/
Date: Sat, 15 Sep 2012 07:53:25 +0000 (UTC)	[thread overview]
Message-ID: <1347691313.ad2ffd3109f9ba4d95cf374a87b269db47c810f1.tetromino@gentoo> (raw)

commit:     ad2ffd3109f9ba4d95cf374a87b269db47c810f1
Author:     Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 15 06:41:53 2012 +0000
Commit:     Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
CommitDate: Sat Sep 15 06:41:53 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=ad2ffd31

media-libs/cogl: add 1.11.4

---
 media-libs/cogl/cogl-9999.ebuild |   47 ++++++++++++++++++++++++++-----------
 1 files changed, 33 insertions(+), 14 deletions(-)

diff --git a/media-libs/cogl/cogl-9999.ebuild b/media-libs/cogl/cogl-9999.ebuild
index 694082f..c5243a5 100644
--- a/media-libs/cogl/cogl-9999.ebuild
+++ b/media-libs/cogl/cogl-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
@@ -6,7 +6,7 @@ EAPI="4"
 CLUTTER_LA_PUNT="yes"
 
 # Inherit gnome2 after clutter to download sources from gnome.org
-inherit clutter gnome2 virtualx
+inherit clutter gnome2 multilib virtualx
 if [[ ${PV} = 9999 ]]; then
 	inherit gnome2-live
 fi
@@ -16,15 +16,15 @@ HOMEPAGE="http://www.clutter-project.org/"
 
 LICENSE="LGPL-2.1"
 SLOT="1.0"
-IUSE="doc examples +introspection +pango"
+IUSE="doc examples +introspection +opengl gles2 +pango"
 if [[ ${PV} = 9999 ]]; then
 	KEYWORDS=""
 else
-	KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+	KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~x86"
 fi
 
 # XXX: need uprof for optional profiling support
-COMMON_DEPEND=">=dev-libs/glib-2.26.0:2
+COMMON_DEPEND=">=dev-libs/glib-2.28.0:2
 	x11-libs/cairo
 	>=x11-libs/gdk-pixbuf-2:2
 	x11-libs/libdrm
@@ -33,7 +33,9 @@ COMMON_DEPEND=">=dev-libs/glib-2.26.0:2
 	x11-libs/libXdamage
 	x11-libs/libXext
 	>=x11-libs/libXfixes-3
+	virtual/glu
 	virtual/opengl
+	gles2? ( media-libs/mesa[gles2] )
 
 	introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
 	pango? ( >=x11-libs/pango-1.20.0[introspection?] )"
@@ -44,31 +46,48 @@ DEPEND="${COMMON_DEPEND}
 	sys-devel/gettext
 	virtual/pkgconfig
 	doc? ( app-text/docbook-xml-dtd:4.1.2
-		>=dev-util/gtk-doc-1.13 )"
-
-# XXX: at least when using nvidia-drivers, tests fail under Xemake/Xvfb, no
-# matter whether "eselect opengl" is set to nvidia or xorg-x11.
-RESTRICT="test"
+		>=dev-util/gtk-doc-1.13 )
+	test? (	app-admin/eselect-opengl
+		media-libs/mesa[classic] )"
+# Need classic mesa swrast for tests, llvmpipe causes a test failure
 
 pkg_setup() {
 	DOCS="NEWS README"
 	EXAMPLES="examples/{*.c,*.jpg}"
-	# XXX: think about gles, quartz, wayland
+	# XXX: think about kms-egl, gles, quartz, sdl, wayland
 	G2CONF="${G2CONF}
+		--disable-examples-install
 		--disable-profile
 		--disable-maintainer-flags
 		--enable-cairo
 		--enable-gdk-pixbuf
-		--enable-gl
-		--enable-glx
+		$(use_enable opengl glx)
+		$(use_enable opengl gl)
+		$(use_enable gles2)
+		$(use_enable gles2 cogl-gles2)
+		$(use_enable gles2 xlib-egl-platform)
+		--enable-glib
+		--enable-deprecated
 		$(use_enable introspection)
 		$(use_enable pango cogl-pango)"
+	use gles2 && G2CONF="${G2CONF} --with-default-driver=gles2"
 }
 
 src_test() {
-	Xemake check
+	# Use swrast for tests, llvmpipe is incomplete and "test_sub_texture" fails
+	# NOTE: recheck if this is needed after every mesa bump
+	if [[ "$(eselect opengl show)" != "xorg-x11" ]]; then
+		ewarn "Skipping tests because a binary OpenGL library is enabled. To"
+		ewarn "run tests for ${PN}, you need to enable the Mesa library:"
+		ewarn "# eselect opengl set xorg-x11"
+		return
+	fi
+	LIBGL_DRIVERS_PATH="${EROOT}/usr/$(get_libdir)/mesa" Xemake check
 }
 
 src_install() {
 	clutter_src_install
+
+	# Remove silly examples-data directory
+	rm -rvf "${ED}/usr/share/cogl/examples-data/" || die
 }


             reply	other threads:[~2012-09-15  7:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-15  7:53 Alexandre Rostovtsev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-01-12 14:00 [gentoo-commits] proj/gnome:master commit in: media-libs/cogl/ Dennis Lamm
2016-01-30 17:33 Priit Laes
2015-09-13 22:03 Ole Reifschneider
2015-06-09  9:16 Gilles Dartiguelongue
2015-04-18  9:00 Ole Reifschneider
2014-12-26 21:47 Gilles Dartiguelongue
2014-12-08 21:57 Gilles Dartiguelongue
2014-12-07 23:08 Gilles Dartiguelongue
2014-11-03 23:24 Gilles Dartiguelongue
2014-10-12 23:19 Gilles Dartiguelongue
2014-04-15 22:05 Gilles Dartiguelongue
2013-12-19 23:40 Gilles Dartiguelongue
2013-03-15  7:38 Priit Laes
2013-01-19 21:38 Alexandre Rostovtsev
2012-12-19  0:39 Alexandre Rostovtsev
2012-10-27 19:40 Gilles Dartiguelongue
2012-09-16  7:44 Alexandre Rostovtsev
2011-10-29 19:41 Alexandre Restovtsev
2011-10-18  7:37 Alexandre Restovtsev
2011-10-01  4:39 Alexandre Restovtsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1347691313.ad2ffd3109f9ba4d95cf374a87b269db47c810f1.tetromino@gentoo \
    --to=tetromino@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox