diff options
author | Donnie Berkholz <spyderous@gentoo.org> | 2005-08-10 05:59:56 +0000 |
---|---|---|
committer | Donnie Berkholz <spyderous@gentoo.org> | 2005-08-10 05:59:56 +0000 |
commit | d2713c8af5c3d298f317ee7af01e2381cebc5093 (patch) | |
tree | 314b68cf1dd7f71453c6c9ee4bfe2517b75d9de0 /x11-proto | |
parent | Stop cleaning out /usr/lib/opengl/xorg-x11, now that two other packages also ... (diff) | |
download | gentoo-2-d2713c8af5c3d298f317ee7af01e2381cebc5093.tar.gz gentoo-2-d2713c8af5c3d298f317ee7af01e2381cebc5093.tar.bz2 gentoo-2-d2713c8af5c3d298f317ee7af01e2381cebc5093.zip |
Add pkg_postinst() to run opengl-update so mesa will build.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'x11-proto')
-rw-r--r-- | x11-proto/glproto/ChangeLog | 5 | ||||
-rw-r--r-- | x11-proto/glproto/glproto-1.4.ebuild | 15 |
2 files changed, 18 insertions, 2 deletions
diff --git a/x11-proto/glproto/ChangeLog b/x11-proto/glproto/ChangeLog index 03425c8923e5..132eb3f9a50d 100644 --- a/x11-proto/glproto/ChangeLog +++ b/x11-proto/glproto/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for x11-proto/glproto # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-proto/glproto/ChangeLog,v 1.3 2005/08/10 05:35:09 spyderous Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-proto/glproto/ChangeLog,v 1.4 2005/08/10 05:59:56 spyderous Exp $ + + 10 Aug 2005; Donnie Berkholz <spyderous@gentoo.org>; glproto-1.4.ebuild: + Add pkg_postinst() to run opengl-update so mesa will build. 10 Aug 2005; Donnie Berkholz <spyderous@gentoo.org>; glproto-1.4.ebuild: Make compatible with opengl-update. Reported by Georgi Georgiev diff --git a/x11-proto/glproto/glproto-1.4.ebuild b/x11-proto/glproto/glproto-1.4.ebuild index 41b40dd7314a..c28aa8f397da 100644 --- a/x11-proto/glproto/glproto-1.4.ebuild +++ b/x11-proto/glproto/glproto-1.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-proto/glproto/glproto-1.4.ebuild,v 1.3 2005/08/10 05:35:09 spyderous Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-proto/glproto/glproto-1.4.ebuild,v 1.4 2005/08/10 05:59:56 spyderous Exp $ # Must be before x-modular eclass is inherited #SNAPSHOT="yes" @@ -25,6 +25,10 @@ src_install() { dynamic_libgl_install } +pkg_postinst() { + switch_opengl_implem +} + dynamic_libgl_install() { # next section is to setup the dynamic libGL stuff ebegin "Moving GL files for dynamic switching" @@ -40,3 +44,12 @@ dynamic_libgl_install() { done eend 0 } + +switch_opengl_implem() { + # Switch to the xorg implementation. + # Use new opengl-update that will not reset user selected + # OpenGL interface ... + echo + local opengl_implem="$(${ROOT}/usr/sbin/opengl-update --get-implementation)" + ${ROOT}/usr/sbin/opengl-update --use-old ${OPENGL_DIR} +} |