diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2005-08-17 21:42:20 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2005-08-17 21:42:20 +0000 |
commit | f37282cdf9b67be21e20bef2df12c6cdb413c35b (patch) | |
tree | 2124dc4a39ed7a5aa00cccf9a57374fbec6c3b5b /app-admin/eselect-opengl | |
parent | New cdrtools development version. Added a patch for scsi scanning. (diff) | |
download | historical-f37282cdf9b67be21e20bef2df12c6cdb413c35b.tar.gz historical-f37282cdf9b67be21e20bef2df12c6cdb413c35b.tar.bz2 historical-f37282cdf9b67be21e20bef2df12c6cdb413c35b.zip |
Added eselect opengl module which will be a replacement for opengl-update.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'app-admin/eselect-opengl')
-rw-r--r-- | app-admin/eselect-opengl/ChangeLog | 10 | ||||
-rw-r--r-- | app-admin/eselect-opengl/Manifest | 14 | ||||
-rw-r--r-- | app-admin/eselect-opengl/eselect-opengl-1.0.0.ebuild | 92 | ||||
-rw-r--r-- | app-admin/eselect-opengl/files/digest-eselect-opengl-1.0.0 | 3 | ||||
-rw-r--r-- | app-admin/eselect-opengl/metadata.xml | 10 |
5 files changed, 129 insertions, 0 deletions
diff --git a/app-admin/eselect-opengl/ChangeLog b/app-admin/eselect-opengl/ChangeLog new file mode 100644 index 000000000000..98a276db3f2a --- /dev/null +++ b/app-admin/eselect-opengl/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-admin/eselect-opengl +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opengl/ChangeLog,v 1.1 2005/08/17 21:42:20 eradicator Exp $ + +*eselect-opengl-1.0.0 (17 Aug 2005) + + 17 Aug 2005; Jeremy Huddleston <eradicator@gentoo.org> +metadata.xml, + +eselect-opengl-1.0.0.ebuild: + Added eselect opengl module which will be a replacement for opengl-update. + diff --git a/app-admin/eselect-opengl/Manifest b/app-admin/eselect-opengl/Manifest new file mode 100644 index 000000000000..9296b7da77ff --- /dev/null +++ b/app-admin/eselect-opengl/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 69eeef9cee49974bcaae3cb9ddce8abd metadata.xml 366 +MD5 4f9cd35a2f9eb800a6dece1060792d36 ChangeLog 444 +MD5 dea845482886f53b604596aac0ddd5db eselect-opengl-1.0.0.ebuild 2691 +MD5 a40a114acd750bcc1d2423153aa80193 files/digest-eselect-opengl-1.0.0 183 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.2 (GNU/Linux) + +iD8DBQFDA69JArHZZzCEUG0RAlHoAJ45r/R6wiIqn36LICIy3uhKfsEFuQCfRCLg +GJSP3pjaeHveqQxNMstNWUw= +=+dKe +-----END PGP SIGNATURE----- diff --git a/app-admin/eselect-opengl/eselect-opengl-1.0.0.ebuild b/app-admin/eselect-opengl/eselect-opengl-1.0.0.ebuild new file mode 100644 index 000000000000..b86dfeb92f59 --- /dev/null +++ b/app-admin/eselect-opengl/eselect-opengl-1.0.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2005 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.0.ebuild,v 1.1 2005/08/17 21:42:20 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="http://dev.gentoo.org/~eradicator/opengl/glext.h-${GLEXT}.bz2 + http://dev.gentoo.org/~eradicator/opengl/glxext.h-${GLXEXT}.bz2 + http://dev.gentoo.org/~eradicator/opengl/opengl.eselect-${PV}.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="" +RESTRICT="multilib-pkg-force" + +DEPEND="app-arch/bzip2" +RDEPEND="app-admin/eselect" + +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 + + # MULTILIB-CLEANUP: Fix this when FEATURES=multilib-pkg is in portage + local MLTEST=$(type dyn_unpack) + if has_multilib_profile && [ "${MLTEST/set_abi}" = "${MLTEST}" ]; then + OABI="${ABI}" + for ABI in $(get_install_abis); do + # Install default glext.h + insinto /usr/$(get_libdir)/opengl/global/include + doins ${WORKDIR}/glext.h || die + doins ${WORKDIR}/glxext.h || die + done + ABI="${OABI}" + unset OABI + else + # Install default glext.h + insinto /usr/$(get_libdir)/opengl/global/include + doins ${WORKDIR}/glext.h || die + doins ${WORKDIR}/glxext.h || die + fi +} diff --git a/app-admin/eselect-opengl/files/digest-eselect-opengl-1.0.0 b/app-admin/eselect-opengl/files/digest-eselect-opengl-1.0.0 new file mode 100644 index 000000000000..704bca8a075b --- /dev/null +++ b/app-admin/eselect-opengl/files/digest-eselect-opengl-1.0.0 @@ -0,0 +1,3 @@ +MD5 507d51b4e824b6a94f28c0e5d6793598 glext.h-29.bz2 33215 +MD5 2a8cc2e018a4fd8699d614718e61843e glxext.h-11.bz2 5900 +MD5 d0e9885a311d83a32801cc987a154a8f opengl.eselect-1.0.0.bz2 3166 diff --git a/app-admin/eselect-opengl/metadata.xml b/app-admin/eselect-opengl/metadata.xml new file mode 100644 index 000000000000..3de82b6a5e85 --- /dev/null +++ b/app-admin/eselect-opengl/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>x11-drivers</herd> +<maintainer> + <email>eradicator@gentoo.org</email> + <name>Jeremy Huddleston</name> +</maintainer> +<longdescription>Utility to switch opengl implementations between various providers.</longdescription> +</pkgmetadata> |