summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2006-05-03 08:49:23 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2006-05-03 08:49:23 +0000
commitbf34355e281d618c238587dd5051e9ac8465e7ad (patch)
tree6f0cc8b258df439e2a714490127aeb528aa42117 /x11-base
parentRemoving old opengl-update from all archs which have eselect-opengl stable. (diff)
downloadgentoo-2-bf34355e281d618c238587dd5051e9ac8465e7ad.tar.gz
gentoo-2-bf34355e281d618c238587dd5051e9ac8465e7ad.tar.bz2
gentoo-2-bf34355e281d618c238587dd5051e9ac8465e7ad.zip
Removing old opengl-update from all archs which have eselect-opengl stable.
(Portage version: 2.1_pre10-r2) (Signed Manifest commit)
Diffstat (limited to 'x11-base')
-rw-r--r--x11-base/opengl-update/Manifest50
-rw-r--r--x11-base/opengl-update/files/digest-opengl-update-2.2.12
-rw-r--r--x11-base/opengl-update/files/opengl-update-2.2.1382
-rw-r--r--x11-base/opengl-update/opengl-update-2.2.1.ebuild92
4 files changed, 42 insertions, 484 deletions
diff --git a/x11-base/opengl-update/Manifest b/x11-base/opengl-update/Manifest
index dabf59f1a68c..70165be8e01f 100644
--- a/x11-base/opengl-update/Manifest
+++ b/x11-base/opengl-update/Manifest
@@ -1,12 +1,46 @@
-MD5 dfc0567d8e4a28783803f4d75a3209ca ChangeLog 21489
-MD5 219a292f64caeaa46b333eecde2197f2 files/digest-opengl-update-2.2.1 116
-MD5 d6b4a7de2926d22a6b52f4d129ce3e7f files/digest-opengl-update-2.2.4 116
-MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-opengl-update-3.0.0 0
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX glxext.h-inttypes.patch 671 RMD160 d0a9be8619ecf1e9698c3ad3fe4b97481622e8c3 SHA1 0491c8381e2cb9cfa6e96aa17c6017f3908aa8d9 SHA256 90406c8e30114b4c1c4a2d0abd50b1929f69ca4e67b8539e6e80a071cda45b92 size 671
MD5 600714175bf22abf40ed067b3dcb600d files/glxext.h-inttypes.patch 671
-MD5 78f2778d5b41874016deb3135122b189 files/opengl-update-2.2.1 9849
+RMD160 d0a9be8619ecf1e9698c3ad3fe4b97481622e8c3 files/glxext.h-inttypes.patch 671
+SHA256 90406c8e30114b4c1c4a2d0abd50b1929f69ca4e67b8539e6e80a071cda45b92 files/glxext.h-inttypes.patch 671
+AUX opengl-update-2.2.4 9865 RMD160 880efc14a9e57ac0b36148cc77c2d4746c0079aa SHA1 803088c10a45cb914a6603ea0b24ec9e380b4b29 SHA256 8dfa8e5a602ab5d43cf8813a66832cfc8b4141e54eb9267f226676006b332b52 size 9865
MD5 23b30f7c0b9e658f78d0068999e68a80 files/opengl-update-2.2.4 9865
+RMD160 880efc14a9e57ac0b36148cc77c2d4746c0079aa files/opengl-update-2.2.4 9865
+SHA256 8dfa8e5a602ab5d43cf8813a66832cfc8b4141e54eb9267f226676006b332b52 files/opengl-update-2.2.4 9865
+AUX opengl-update-3.0.0 4204 RMD160 5976c32e6f0e06ef067d7ac332f06652d2d6d9f9 SHA1 1c80e39f0904018a58d0a194e60c66f3256a9255 SHA256 5fe66447542e9ee002ea1e24bd1f21c07a4bfc7ee01f5a6d1e59b83f901842c2 size 4204
MD5 763717ca92a7b90da3ad6726770d2b77 files/opengl-update-3.0.0 4204
-MD5 69eeef9cee49974bcaae3cb9ddce8abd metadata.xml 366
-MD5 cc6d5a9012e3845a786b9105aead75e9 opengl-update-2.2.1.ebuild 2660
-MD5 ab39b781ac420927386fa5b4d33fecd1 opengl-update-2.2.4.ebuild 2569
+RMD160 5976c32e6f0e06ef067d7ac332f06652d2d6d9f9 files/opengl-update-3.0.0 4204
+SHA256 5fe66447542e9ee002ea1e24bd1f21c07a4bfc7ee01f5a6d1e59b83f901842c2 files/opengl-update-3.0.0 4204
+DIST glext.h-29.bz2 33215 RMD160 b21868b31524c2309658d65682b4528823126ae5 SHA256 d28e3bdb2f9ffb9f62e0f04d8eab99aa01b846bb206c984a0f0e9f20d53f78f0 size 33215
+DIST glxext.h-11.bz2 5900 RMD160 ba3fb091982d272d6aafbddd6f4991d7b8290efe SHA256 b9ac4265313fda0bbd051b1bec803733f307c040ac9bd02a4c536302375415e0 size 5900
+EBUILD opengl-update-2.2.4.ebuild 2518 RMD160 1bb9cedc2f5dc912141d5e95b1f254de321f4c9f SHA1 a81ea750a62545e2657668cd7ab1998e06e3a466 SHA256 1201d69f00c1f1f08ef6661cc66ca6ca107c92565450fc4dfa0a1fdfa24f86d5 size 2518
+MD5 fc55a9669b011f698f1d5c8445f6a75e opengl-update-2.2.4.ebuild 2518
+RMD160 1bb9cedc2f5dc912141d5e95b1f254de321f4c9f opengl-update-2.2.4.ebuild 2518
+SHA256 1201d69f00c1f1f08ef6661cc66ca6ca107c92565450fc4dfa0a1fdfa24f86d5 opengl-update-2.2.4.ebuild 2518
+EBUILD opengl-update-3.0.0.ebuild 742 RMD160 7253ce0b483061e5401909401a5a8c3063cc90bf SHA1 300b17f7d897131c711a55f683ad7290ad20f50c SHA256 894546543714624b2e575f5cf8620940441ebcab05e1ccd1568b08790ad96292 size 742
MD5 ef8a172f87a458c8695eb9fce26b3971 opengl-update-3.0.0.ebuild 742
+RMD160 7253ce0b483061e5401909401a5a8c3063cc90bf opengl-update-3.0.0.ebuild 742
+SHA256 894546543714624b2e575f5cf8620940441ebcab05e1ccd1568b08790ad96292 opengl-update-3.0.0.ebuild 742
+MISC ChangeLog 21719 RMD160 c2ed31b3ab0e8a248086097720d88764c7a5f337 SHA1 aadbec96f753f9e13ce59418fa11d319667d1fa1 SHA256 b56e13a8b5d1e6d18e7b768f1c63e881b20bb817120991c1bf0fea7ad12f4268 size 21719
+MD5 dee23f895c2bc1fd4012f38f5c76e0c4 ChangeLog 21719
+RMD160 c2ed31b3ab0e8a248086097720d88764c7a5f337 ChangeLog 21719
+SHA256 b56e13a8b5d1e6d18e7b768f1c63e881b20bb817120991c1bf0fea7ad12f4268 ChangeLog 21719
+MISC metadata.xml 366 RMD160 1e4b0bac744189f46350b440bf36112272a69baa SHA1 52b8b9b7d1cbcd2bcf4d988aaaf7bf744244fd77 SHA256 19c4ff0460724296bd0a9bc7e6c385de2b46b0cbd7b1384dab7f656811861445 size 366
+MD5 69eeef9cee49974bcaae3cb9ddce8abd metadata.xml 366
+RMD160 1e4b0bac744189f46350b440bf36112272a69baa metadata.xml 366
+SHA256 19c4ff0460724296bd0a9bc7e6c385de2b46b0cbd7b1384dab7f656811861445 metadata.xml 366
+MD5 6102846843472eae8f6f1666f3799dd7 files/digest-opengl-update-2.2.4 440
+RMD160 e78dd0a7b59452602ddd4f4228e0cc76d94c42d5 files/digest-opengl-update-2.2.4 440
+SHA256 78e8af4c482a5b8299ddb64ce34cdb5a1a1e1d20bb3603d09348855dcd90d507 files/digest-opengl-update-2.2.4 440
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-opengl-update-3.0.0 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-opengl-update-3.0.0 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-opengl-update-3.0.0 1
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.3 (GNU/Linux)
+
+iD8DBQFEWG6TOpjtAl+gMRURArTOAJ9iaxvGbB5ZsmX1s/69CYOWafzBNQCeJBQg
+jXFzDLfTxAqXuWsp7Ihz+II=
+=lDqj
+-----END PGP SIGNATURE-----
diff --git a/x11-base/opengl-update/files/digest-opengl-update-2.2.1 b/x11-base/opengl-update/files/digest-opengl-update-2.2.1
deleted file mode 100644
index f25de9a2425e..000000000000
--- a/x11-base/opengl-update/files/digest-opengl-update-2.2.1
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 aba5f492425adddd083c941735b8e3c1 glext.h-27.bz2 33156
-MD5 3260a509b23a3519b8df335a4e8f5e1d glxext.h-10.bz2 5895
diff --git a/x11-base/opengl-update/files/opengl-update-2.2.1 b/x11-base/opengl-update/files/opengl-update-2.2.1
deleted file mode 100644
index 28ca4d5e8313..000000000000
--- a/x11-base/opengl-update/files/opengl-update-2.2.1
+++ /dev/null
@@ -1,382 +0,0 @@
-#!/bin/bash
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/opengl-update/files/opengl-update-2.2.1,v 1.3 2005/05/31 18:59:42 wolf31o2 Exp $
-# Author: Martin Schlemmer <azarah@gentoo.org>
-# Further modifications by Donnie Berkholz <spyderous@gentoo.org>
-# Further modifications based off submissions to bug #54984 <cyfred@gentoo.org>
-# Further modifications by Jeremy Huddleston <eradicator@gentoo.org>
-
-. /etc/init.d/functions.sh
-
-hasq() {
- local x
-
- local me=${1}
- shift
-
- for x in "${@}"; do
- if [[ "${x}" == "${me}" ]]; then
- return 0
- fi
- done
- return 1
-}
-
-check_user() {
- if [[ $(id -u) -ne 0 ]]; then
- eerror "${0}: Must be run as root."
- exit 1
- fi
-}
-
-check_version() {
- # Don't die if we're booting from CD, since we probably lack portageq
- for opt in $(</proc/cmdline); do
- case ${opt} in
- cdroot) local cdroot="true" ;;
- esac
- done
-
- if [[ -z "${cdroot}" ]]; then
- if ! portageq has_version / '>=x11-base/xorg-x11-6.8.0-r4'; then
- eerror "This version requires >=x11-base/xorg-x11-6.8.0-r4"
- exit 1
- fi
- fi
-}
-
-get_current_implem() {
- local implem
- if [[ -f ${ENV_D} ]]; then
- source ${ENV_D}
- if [[ -n "${OPENGL_PROFILE}" ]]; then
- implem="${OPENGL_PROFILE}"
- elif [[ -n "${LDPATH}" ]]; then
- implem="${LDPATH%%:*}"
- implem="${implem##*opengl/}"
- implem="${implem%/lib*}"
- fi
- unset LDPATH
- unset OPENGL_PROFILE
- fi
-
- echo ${implem}
-}
-
-get_implementations() {
- local implems
- for dir in ${PREFIX}/lib{,32,64}/opengl/*; do
- if [[ -d "${dir}" && ${dir##*/} != "global" ]] && ! hasq ${dir##*/} ${implems}; then
- implems=${implems:+${implems} }${dir##*/}
- fi
- done
- echo ${implems}
-}
-
-print_version() {
- echo "opengl-update ${VERSION}"
-}
-
-print_usage() {
- # Get grammar right in message
- local IS_ARE IMPLEM_PLURAL
- if [[ $(echo ${AVAIL_IMPLEMS} | wc -w) -eq 1 ]]; then
- IS_ARE="is"
- IMPLEM_PLURAL=""
- else
- IS_ARE="are"
- IMPLEM_PLURAL="s"
- fi
-
- print_version
-
- cat << FOO
-Usage: ${0##*/} [<options>] <GL implementation>
- Set the opengl implementation.
- Valid options:
- --use-old: If an implementation is already set, use that one.
- --prefix=<val>: Set the source prefix (default: /usr)
- --dst-prefix=<val>: Set the destination prefix (default: /usr)
- --impl-headers: Use headers provided by this implementation to
- override golbal ones provided by opengl-update.
-
-Usage: ${0##*/} --get-implementation
- Print the current implementaion
-
-Notes:
- --impl-headers was default in <opengl-update-2.2.
-
- This utility switches between OpenGL implementations. There ${IS_ARE}
- $(echo ${AVAIL_IMPLEMS} | wc -w) available implementation${IMPLEM_PLURAL}: ${AVAIL_IMPLEMS}
-
-Examples:
- ${0##*/} xorg-x11
- This will setup things to use libGL.so from X.org.
-
- ${0##*/} nvidia
- This will setup things to use libGL.so from the nVidia drivers.
-
-FOO
- exit 1
-}
-
-parse_options() {
- local opt
- while [[ ${#} -gt 0 ]]; do
- opt=${1}
- shift
- case ${opt} in
- --use-old)
- if [[ -n "${ACTION}" ]]; then
- ACTION="error"
- eerror "Invalid usage."
- else
- if [[ -n "${CURRENT_GL_IMPLEM}" ]] && hasq ${CURRENT_GL_IMPLEM} ${AVAIL_IMPLEMS}; then
- ACTION="old-implementation"
- fi
- fi
- ;;
- --get-implementation)
- if [[ -n "${ACTION}" ]]; then
- ACTION="error"
- eerror "Invalid usage."
- else
- ACTION="get-implementation"
- fi
- ;;
- --prefix=*)
- PREFIX=${opt#*=}
- AVAIL_IMPLEMS=$(get_implementations)
- ;;
- --dst-prefix=*)
- DST_PREFIX=${opt#*=}
- ;;
- --impl-headers)
- USE_PROFILE_HEADERS="yes"
- ;;
- --help|-h|-?)
- ACION="usage"
- ;;
- --version)
- ACTION="version"
- ;;
- *)
- if hasq ${opt} ${AVAIL_IMPLEMS}; then
- if [[ "${ACTION}" != "old-implementation" ]]; then
- if [[ -n "${ACTION}" ]]; then
- ACTION="error"
- eerror "Invalid usage."
- else
- ACTION="set-implementation"
- NEW_GL_IMPLEM="${opt}"
- fi
- fi
- else
- eerror "Unrecognized option: ${opt}"
- ACTION="error"
- fi
- ;;
- esac
- done
-}
-
-set-new-implementation() {
- local GL_IMPLEM=${1}
- local GL_LOCAL
-
- check_version
- check_user
-
- # Set a sane umask... bug #83115
- umask 022
-
- if ! hasq ${GL_IMPLEM} ${AVAIL_IMPLEMS}; then
- eerror "Invalid profile selected."
- exit 1
- fi
-
- ebegin "Switching to ${GL_IMPLEM} OpenGL interface"
- rm -f ${ENV_D} &> /dev/null
-
- LIBDIRS="lib32 lib lib64"
- for LIBDIR in ${LIBDIRS}; do
- # Special case handling of lib32 because it can be a symlink to
- # emul libs
- if [[ "${LIBDIR}" = "lib32" ]]; then
- [[ -d "${PREFIX}/${LIBDIR}/opengl" ]] || continue
- else
- [[ -d "${PREFIX}/${LIBDIR}/opengl" && ! -h "${PREFIX}/${LIBDIR}" ]] || continue
- fi
-
- # Fallback on xorg-x11 if we don't have this implementation for this LIBDIR.
- if [[ ! -d ${PREFIX}/${LIBDIR}/opengl/"${GL_IMPLEM}" ]]; then
- GL_LOCAL="xorg-x11"
- else
- GL_LOCAL="${GL_IMPLEM}"
- fi
-
- mkdir -p ${DST_PREFIX}/${LIBDIR}
- pushd ${DST_PREFIX}/${LIBDIR} &> /dev/null
- # First remove old symlinks
- for file in libGL{,core}.{a,so,la} ; do
- [[ -h ${file} ]] && rm -f ${file}
- done
-
- # Note that we don't do .so*, just .so on purpose. The
- # loader knows to look in the profile dir, and the
- # linked just needs the .so
- for file in ${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/lib/libGL{,core}.{so,a,la}; do
- [[ -f "${file}" ]] || continue
- [[ -f "${file##*/}" ]] && rm -f ${file##*/}
-
- # Fix libtool archives (#48297)
- if [[ "${file%.la}" != "${file}" ]]; then
- sed "s:${PREFIX}/[^/]*/opengl/[^/]*/lib:${DST_PREFIX}/${LIBDIR}:g" ${file} > ${file##*/}
- else
- ln -s ${file}
- fi
- done
- popd &> /dev/null
-
- if [[ -e "${PREFIX}/${LIBDIR}/${LIBDIR}/opengl/${GL_LOCAL}/lib/tls" ]]; then
- mkdir -p ${DST_PREFIX}/${LIBDIR}/tls
- pushd ${DST_PREFIX}/${LIBDIR}/tls &> /dev/null
- # First remove old symlinks
- for file in libGL{,core}.{a,so,la} ; do
- [[ -h ${file} ]] && rm -f ${file}
- done
-
- for file in ${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/lib/tls/libGL{,core}.{so,a,la}; do
- [[ -f "${file}" ]] || continue
- [[ -f "${file##*/}" ]] && rm -f ${file##*/}
-
- # Fix libtool archives (#48297)
- if [ "${file%.la}" != "${file}" ]; then
- sed "s:${PREFIX}/[^/]*/opengl/[^/]*/lib:${DST_PREFIX}/${LIBDIR}:g" ${file} > ${file##*/}
- else
- ln -s ${file}
- fi
- done
- popd &> /dev/null
- fi
-
- if [[ -e "${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/extensions" ]]; then
- mkdir -p ${DST_PREFIX}/${LIBDIR}/modules/extensions
- pushd ${DST_PREFIX}/${LIBDIR}/modules/extensions &> /dev/null
- # First remove old symlinks
- for file in libglx.so libglx.a; do
- [[ -h ${file} ]] && rm -f ${file}
- done
-
- for file in ${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/extensions/*.{so,a,la}; do
- [[ -f "${file}" ]] || continue
- [[ -f "${file##*/}" ]] && rm -f ${file##*/}
-
- # Fix libtool archives (#48297)
- if [[ "${file%.la}" != "${file}" ]]; then
- sed "s:${PREFIX}/[^/]*/opengl/[^/]*/lib:${DST_PREFIX}/${LIBDIR}:g" ${file} > ${file##*/}
- else
- ln -s ${file}
- fi
- done
- popd &> /dev/null
- fi
-
- # Setup the includes
- mkdir -p ${DST_PREFIX}/include/GL
- pushd ${DST_PREFIX}/include/GL &> /dev/null
- for file in gl.h glx.h glxtokens.h glext.h glxext.h glxmd.h glxproto.h; do
- # IMPORTANT
- # It is preferable currently to use the standard glext.h file
- # however if an OpenGL provider must use a self produced glext.h
- # then it should be installed to ${GL_IMPLEM}/include and the user
- # can add the --impl-headers option to select it.
-
- if [[ ${USE_PROFILE_HEADERS} == "yes" ]] ; then
- # Check the profile first.
- if [[ -e ${PREFIX}/${LIBDIR}/opengl/${GL_IMPLEM}/include/${file} ]]; then
- [[ -f "${file}" || ( -L "${file}" && ! -e "${file}" ) ]] && rm -f ${file}
- ln -s ${PREFIX}/${LIBDIR}/opengl/${GL_IMPLEM}/include/${file}
- fi
- fi
-
- if [[ -e ${PREFIX}/${LIBDIR}/opengl/global/include/${file} ]]; then
- [[ -f "${file}" || ( -L "${file}" && ! -e "${file}" ) ]] && rm -f ${file}
- ln -s ${PREFIX}/${LIBDIR}/opengl/global/include/${file}
- elif [[ -e ${PREFIX}/${LIBDIR}/opengl/${GL_IMPLEM}/include/${file} ]]; then
- [[ -f "${file}" || ( -L "${file}" && ! -e "${file}" ) ]] && rm -f ${file}
- ln -s ${PREFIX}/${LIBDIR}/opengl/${GL_IMPLEM}/include/${file}
- elif [[ -e ${PREFIX}/${LIBDIR}/opengl/xorg-x11/include/${file} ]]; then
- [[ -f "${file}" || ( -L "${file}" && ! -e "${file}" ) ]] && rm -f ${file}
- ln -s ${PREFIX}/${LIBDIR}/opengl/xorg-x11/include/${file}
- fi
- done
- popd &> /dev/null
-
- # Setup the $LDPATH
- ldpath="${ldpath:+${ldpath}:}${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/lib"
-
- done
-
- echo "LDPATH=\"${ldpath}\"" > ${ENV_D}
- echo "OPENGL_PROFILE=\"${GL_IMPLEM}\"" >> ${ENV_D}
-
- env-update
-
- eend 0
-}
-
-## START PROGRAM ##
-
-ENV_D="/etc/env.d/03opengl"
-NEW_GL_IMPLEM=""
-ACTION=""
-PREFIX="/usr"
-DST_PREFIX="/usr"
-AVAIL_IMPLEMS=$(get_implementations)
-CURRENT_GL_IMPLEM=$(get_current_implem)
-USE_PROFILE_HEADERS="no"
-VERSION="2.2.1"
-
-parse_options ${@}
-
-case ${ACTION} in
- get-implementation)
- if [[ -n "${CURRENT_GL_IMPLEM}" ]]; then
- echo ${CURRENT_GL_IMPLEM}
- exit 0
- else
- exit 2
- fi
- ;;
- old-implementation)
- set-new-implementation ${CURRENT_GL_IMPLEM}
- exit $?
- ;;
- set-implementation)
- if [[ -n "${NEW_GL_IMPLEM}" ]]; then
- set-new-implementation ${NEW_GL_IMPLEM}
- exit $?
- else
- print_usage
- exit 1
- fi
- ;;
- version)
- print_version
- exit 0
- ;;
- usage)
- print_usage
- exit 0
- ;;
- error)
- print_usage
- exit 1
- ;;
- *)
- print_usage
- exit 1
- ;;
-esac
diff --git a/x11-base/opengl-update/opengl-update-2.2.1.ebuild b/x11-base/opengl-update/opengl-update-2.2.1.ebuild
deleted file mode 100644
index eafff00e6683..000000000000
--- a/x11-base/opengl-update/opengl-update-2.2.1.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/opengl-update/opengl-update-2.2.1.ebuild,v 1.11 2006/01/07 08:03:13 vapier Exp $
-
-inherit multilib toolchain-funcs eutils
-
-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="27"
-GLXEXT="10"
-
-SRC_URI="http://dev.gentoo.org/~eradicator/opengl/glext.h-${GLEXT}.bz2
- http://dev.gentoo.org/~eradicator/opengl/glxext.h-${GLXEXT}.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
-IUSE=""
-RESTRICT="multilib-pkg-force"
-
-DEPEND="virtual/libc
- app-arch/bzip2"
-
-S="${WORKDIR}"
-
-src_unpack() {
- unpack ${A}
-
- mv glext.h-${GLEXT} glext.h
- mv glxext.h-${GLXEXT} glxext.h
-
- # Bugs #81199, #81472
- epatch ${FILESDIR}/glxext.h-inttypes.patch
-}
-
-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="$(opengl-update --get-implementation)"
- if [[ -n "${impl}" ]] ; then
- opengl-update "${impl}"
- fi
-}
-
-src_install() {
- newsbin ${FILESDIR}/opengl-update-${PV} opengl-update || die
-
- # 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
-}