From 7fddf6030d58e17105487ada46b685070b46fa51 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 22 Aug 2011 14:24:56 -0400 Subject: [PATCH] glproto: import from upstream Gentoo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No local changes made. Needed with newer eselect-opengl. This won't actually get merged until package.keywords gets updated, and that is being done separately for atomicity. BUG=chromium-os:11963 TEST=deleted x86-alex build; built from scratch; checked symlink; checked that the system booted Change-Id: Ie749a222d144478fe6129993365ecddd4c5c637a Reviewed-on: http://gerrit.chromium.org/gerrit/6643 Reviewed-by: Stéphane Marchesin Tested-by: Mike Frysinger --- .../glproto/glproto-1.4.14-r1.ebuild | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/x11-proto/glproto/glproto-1.4.14-r1.ebuild diff --git a/sdk_container/src/third_party/portage-stable/x11-proto/glproto/glproto-1.4.14-r1.ebuild b/sdk_container/src/third_party/portage-stable/x11-proto/glproto/glproto-1.4.14-r1.ebuild new file mode 100644 index 0000000000..caead6aea4 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/x11-proto/glproto/glproto-1.4.14-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-proto/glproto/glproto-1.4.14-r1.ebuild,v 1.1 2011/07/13 18:12:25 chithanh Exp $ + +EAPI=4 +inherit xorg-2 +DESCRIPTION="X.Org GL protocol headers" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +LICENSE="SGI-B-2.0" +IUSE="" + +RDEPEND=">=app-admin/eselect-opengl-1.2.3" +DEPEND="" + +src_install() { + xorg-2_src_install + dynamic_libgl_install +} + +pkg_postinst() { + xorg-2_pkg_postinst + eselect opengl set --ignore-missing --use-old xorg-x11 +} + +dynamic_libgl_install() { + # next section is to setup the dynamic libGL stuff + ebegin "Moving GL files for dynamic switching" + dodir /usr/$(get_libdir)/opengl/xorg-x11/include + local x="" + # glext.h added for #54984 + for x in "${ED}"/usr/include/GL/{glxtokens.h,glxmd.h,glxproto.h}; do + if [[ -f ${x} || -L ${x} ]]; then + mv -f "${x}" "${ED}"/usr/$(get_libdir)/opengl/xorg-x11/include + fi + done + eend 0 +}