app-eselect/eselect-opengl: tree clean.

Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
This commit is contained in:
Piotr Karbowski
2020-09-12 22:38:20 +02:00
parent 09c9e4c4ae
commit 89f9953622
4 changed files with 0 additions and 86 deletions

View File

@@ -1 +0,0 @@
DIST opengl.eselect-1.3.1.xz 2588 BLAKE2B 5be8bd3efc510a3e55a666136e0f4e8a3214b347981db1413f84268e788a4d708b83eeccddc75766dd4cc29cf99b6930062b274a6ecf79c5c5f8a5817c7af32f SHA512 052a804e96d8e8afe8b588fdc8996aad21675ea05e3e668c33293df4b9523dde8be083e4a7909a22ec83260c9735694fe4e8aa7e5d8a3736a8e243f29368e532

View File

@@ -1,68 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils multilib
DESCRIPTION="Utility to switch between OpenGL implementations"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
# Source:
# http://www.opengl.org/registry/api/glext.h
# http://www.opengl.org/registry/api/glxext.h
GLEXT="85"
GLXEXT="34"
MIRROR="https://dev.gentoo.org/~mattst88/distfiles"
SRC_URI="https://dev.gentoo.org/~mgorny/dist/opengl.eselect-${PV}.xz"
# ${MIRROR}/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE=""
DEPEND="app-arch/xz-utils"
RDEPEND=">=app-admin/eselect-1.2.4"
S=${WORKDIR}
pkg_preinst() {
# we may be moving the config file, so get it early
OLD_IMPL=$(eselect opengl show)
}
pkg_postinst() {
local shopt_save=$(shopt -p nullglob)
shopt -s nullglob
local opengl_dirs=( "${EROOT}"/usr/lib*/opengl )
${shopt_save}
if [[ -n ${opengl_dirs[@]} ]]; then
# delete broken symlinks
find "${opengl_dirs[@]}" -xtype l -delete
# delete empty leftover directories (they confuse eselect)
find "${opengl_dirs[@]}" -depth -type d -empty -exec rmdir -v {} +
fi
if [[ -n "${OLD_IMPL}" && "${OLD_IMPL}" != '(none)' ]] ; then
eselect opengl set "${OLD_IMPL}"
fi
if [[ -f ${EROOT}/etc/env.d/03opengl ]]; then
# remove the old file, moved now
rm -vf "${EROOT}"/etc/env.d/03opengl
fi
}
src_prepare() {
# don't die on Darwin users
if [[ ${CHOST} == *-darwin* ]] ; then
sed -i -e 's/libGL\.so/libGL.dylib/' opengl.eselect-${PV} || die
fi
}
src_install() {
insinto "/usr/share/eselect/modules"
newins opengl.eselect-${PV} opengl.eselect
# doman opengl.eselect.5
}

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>x11@gentoo.org</email>
<name>X11</name>
</maintainer>
<maintainer type="person">
<email>mgorny@gentoo.org</email>
<name>Michał Górny</name>
</maintainer>
</pkgmetadata>

View File

@@ -642,11 +642,6 @@ dev-tex/crosstex
# Bug #629272
app-admin/apg
# Matt Turner <mattst88@gentoo.org> (2020-08-11)
# Replaced by media-libs/libglvnd.
# Masked for removal in 30 days. Bug #728286
app-eselect/eselect-opengl
# Matt Turner <mattst88@gentoo.org> (2020-08-11)
# NVIDIA declared this branch to have reached end of life about six months ago.
# Blocks removal of app-eselect/eselect-opengl and app-eselect/eselect-opencl.