diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2007-10-27 23:06:01 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2007-10-27 23:06:01 +0000 |
commit | b70c54a00825b5c37e6fd609ca1ee9c46de650b8 (patch) | |
tree | ecba31c4db088d07ad70e18a2c84542b07f54c14 /app-admin/eselect-opengl | |
parent | add ~sparc, ~pcc and ~alpha (diff) | |
download | gentoo-2-b70c54a00825b5c37e6fd609ca1ee9c46de650b8.tar.gz gentoo-2-b70c54a00825b5c37e6fd609ca1ee9c46de650b8.tar.bz2 gentoo-2-b70c54a00825b5c37e6fd609ca1ee9c46de650b8.zip |
Cleaned out old cruft which supported the 2004.3 amd64 profile. Improved support for cleaning up after switching away from newer nvidia drivers. In -* to allow time for the file to hit mirrors.
(Portage version: 2.1.3.16)
Diffstat (limited to 'app-admin/eselect-opengl')
-rw-r--r-- | app-admin/eselect-opengl/ChangeLog | 9 | ||||
-rw-r--r-- | app-admin/eselect-opengl/eselect-opengl-1.0.6.ebuild | 81 | ||||
-rw-r--r-- | app-admin/eselect-opengl/files/digest-eselect-opengl-1.0.6 | 9 |
3 files changed, 98 insertions, 1 deletions
diff --git a/app-admin/eselect-opengl/ChangeLog b/app-admin/eselect-opengl/ChangeLog index 3f606469203c..2fe61b9d47c5 100644 --- a/app-admin/eselect-opengl/ChangeLog +++ b/app-admin/eselect-opengl/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-admin/eselect-opengl # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opengl/ChangeLog,v 1.31 2007/10/27 22:23:47 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opengl/ChangeLog,v 1.32 2007/10/27 23:06:01 eradicator Exp $ + +*eselect-opengl-1.0.6 (27 Oct 2007) + + 27 Oct 2007; Jeremy Huddleston <eradicator@gentoo.org> + +eselect-opengl-1.0.6.ebuild: + Cleaned out old cruft which supported the 2004.3 amd64 profile. Improved + support for cleaning up after switching away from newer nvidia drivers. 27 Oct 2007; Jeremy Huddleston <eradicator@gentoo.org> -eselect-opengl-1.0.3.ebuild, -eselect-opengl-1.0.4.ebuild: diff --git a/app-admin/eselect-opengl/eselect-opengl-1.0.6.ebuild b/app-admin/eselect-opengl/eselect-opengl-1.0.6.ebuild new file mode 100644 index 000000000000..7df11988da57 --- /dev/null +++ b/app-admin/eselect-opengl/eselect-opengl-1.0.6.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opengl/eselect-opengl-1.0.6.ebuild,v 1.1 2007/10/27 23:06:01 eradicator Exp $ + +inherit multilib + +DESCRIPTION="Utility to change the OpenGL interface being used" +HOMEPAGE="http://www.gentoo.org/" + +# Source: +# http://oss.sgi.com/projects/ogl-sample/ABI/glext.h +# http://oss.sgi.com/projects/ogl-sample/ABI/glxext.h + +GLEXT="29" +GLXEXT="11" + +SRC_URI="mirror://gentoo/glext.h-${GLEXT}.bz2 + mirror://gentoo/glxext.h-${GLXEXT}.bz2 + mirror://gentoo/opengl.eselect-${PV}.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-*" +#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="" +EMULTILIB_PKG="true" + +DEPEND="app-arch/bzip2" +RDEPEND=">=app-admin/eselect-1.0.5" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + + mv opengl.eselect-${PV} opengl.eselect + mv glext.h-${GLEXT} glext.h + mv glxext.h-${GLXEXT} glxext.h +} + +pkg_preinst() { + # It needs to be before 04multilib + [[ -f "${ROOT}/etc/env.d/09opengl" ]] && mv ${ROOT}/etc/env.d/09opengl ${ROOT}/etc/env.d/03opengl + + OABI="${ABI}" + for ABI in $(get_install_abis); do + if [[ -e "${ROOT}/usr/$(get_libdir)/opengl/xorg-x11/lib/libMesaGL.so" ]] + then + einfo "Removing libMesaGL.so from xorg-x11 profile. See bug #47598." + rm -f ${ROOT}/usr/$(get_libdir)/opengl/xorg-x11/lib/libMesaGL.so + fi + if [[ -e "${ROOT}/usr/$(get_libdir)/libMesaGL.so" ]] + then + einfo "Removing libMesaGL.so from /usr/$(get_libdir). See bug #47598." + rm -f ${ROOT}/usr/$(get_libdir)/libMesaGL.so + fi + + for f in ${ROOT}/usr/$(get_libdir)/libGL.so.* ${ROOT}/usr/$(get_libdir)/libGLcore.so.* ${ROOT}/usr/$(get_libdir)/libnvidia-tls* ${ROOT}/usr/$(get_libdir)/tls/libnvidia-tls* ; do + [[ -e ${f} ]] && rm -f ${f} + done + done + ABI="${OABI}" + unset OABI +} + +pkg_postinst() { + local impl="$(eselect opengl show)" + if [[ -n "${impl}" ]] ; then + eselect opengl set "${impl}" + fi +} + +src_install() { + insinto /usr/share/eselect/modules + doins opengl.eselect + + # Install default glext.h + insinto /usr/$(get_libdir)/opengl/global/include + doins ${WORKDIR}/glext.h || die + doins ${WORKDIR}/glxext.h || die +} diff --git a/app-admin/eselect-opengl/files/digest-eselect-opengl-1.0.6 b/app-admin/eselect-opengl/files/digest-eselect-opengl-1.0.6 new file mode 100644 index 000000000000..65f323f18a80 --- /dev/null +++ b/app-admin/eselect-opengl/files/digest-eselect-opengl-1.0.6 @@ -0,0 +1,9 @@ +MD5 507d51b4e824b6a94f28c0e5d6793598 glext.h-29.bz2 33215 +RMD160 b21868b31524c2309658d65682b4528823126ae5 glext.h-29.bz2 33215 +SHA256 d28e3bdb2f9ffb9f62e0f04d8eab99aa01b846bb206c984a0f0e9f20d53f78f0 glext.h-29.bz2 33215 +MD5 2a8cc2e018a4fd8699d614718e61843e glxext.h-11.bz2 5900 +RMD160 ba3fb091982d272d6aafbddd6f4991d7b8290efe glxext.h-11.bz2 5900 +SHA256 b9ac4265313fda0bbd051b1bec803733f307c040ac9bd02a4c536302375415e0 glxext.h-11.bz2 5900 +MD5 ce0c5e10283e8836c99299f496e56acb opengl.eselect-1.0.6.bz2 3295 +RMD160 79ab635aeae9001cb4427db6532b17284b36d95e opengl.eselect-1.0.6.bz2 3295 +SHA256 50dfb50b9a4479524f34bcf0d421ec216dbab2c50def31fe208c186efe3d1b31 opengl.eselect-1.0.6.bz2 3295 |