diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-eselect/eselect-opengl |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-eselect/eselect-opengl')
-rw-r--r-- | app-eselect/eselect-opengl/Manifest | 5 | ||||
-rw-r--r-- | app-eselect/eselect-opengl/eselect-opengl-1.3.1-r4.ebuild | 79 | ||||
-rw-r--r-- | app-eselect/eselect-opengl/metadata.xml | 13 |
3 files changed, 97 insertions, 0 deletions
diff --git a/app-eselect/eselect-opengl/Manifest b/app-eselect/eselect-opengl/Manifest new file mode 100644 index 000000000000..98148532c2e4 --- /dev/null +++ b/app-eselect/eselect-opengl/Manifest @@ -0,0 +1,5 @@ +DIST opengl.eselect-1.3.1.xz 2588 SHA256 40d805b89a07b85c60a3f7f3461c699f728a83246344950356ce2840bc34bf9e SHA512 052a804e96d8e8afe8b588fdc8996aad21675ea05e3e668c33293df4b9523dde8be083e4a7909a22ec83260c9735694fe4e8aa7e5d8a3736a8e243f29368e532 WHIRLPOOL 3989715d15b4da9ef8162c605a015571bf88dc4526c2fd309222706de0ce918574192263b1a68c4a1ffea9803b3bd0ea43aa3c75d344d0b3a32015f28e5ce533 +EBUILD eselect-opengl-1.3.1-r4.ebuild 2264 SHA256 562a8775014e4568858d680763e6a3b8a7584bd733ef8858f5b37b8c27f12e62 SHA512 040a90d77ca1dd0c623427b95b3dccc92c7d47790bbf1d1b29139e85e0eae5957e947b07736eb9def1feebe28146e5a2d133458eab79e2ad1a4915526eb37e8b WHIRLPOOL 21a2a6dbc00455fa894e4d6cf5de18361fb48fe0ce9b855b0f513eb63f4ba99edbec12bcbdf5218d659e852439b424289c3c9272238cfd5fe0bf268d8465b0ec +MISC ChangeLog 4853 SHA256 cce5b2e1fe7f9fb48ef8f48fa3fef776f80b2c5eb10f60bf2b491a451d3eb752 SHA512 c0ccac0d6aa9fb1c6009a886112d22b6a1250ee82e2fe22e8a8910bd79d9febc0c511166e709bcf44115d3b2ecc640fb26f30c823aacbc3ec3a4ee94962f6ac0 WHIRLPOOL aaa5e98996ad467feeab447a1dd22dc182db3453af4990d406f17548a25447f4bcec8ddb30d1c7fd5dd042ce25a961f72561485ba4499ed0a2ce724810e67ef3 +MISC ChangeLog-2015 21750 SHA256 4c7c999375d327534fdd7f027070e3d9c6665bbbabad4ee39307f9912844f61d SHA512 b13febb4189a8d073cc39a13919ff46e862cfc3f9938bf9d8a161370eebb2a33a616686ba3f13f358c9d2cef8817ce20ed84e28090604142608f7d99670aac9b WHIRLPOOL b80c94a820f096186b7cbb221707d88ef04f64a5400327b6193fbfbda053483d15d2e15fc69e9c2331d1f0475d5dccb7a39e40d271fcf699f8cba5dccbcc6fe9 +MISC metadata.xml 437 SHA256 be5d3905f8c2870a3c70fec22ab5ac1e3c3eb1495a01f6b5be8875c62378a2ee SHA512 4e1c5f16407ad8a0eb5212d6396bd708047da78f3a97a395b80f60cb21f375f308624f01a8b2bff28ad8bdfca04ac2a3f573f3d5c0f679fdad30b4c0b2751552 WHIRLPOOL 77f4f3d42cc884232b31d1abfe1956e0f09e0cf90de8d6eb89b1ae33e8d355b2896281744ed64774472c738f7368d9d3909134169a6b37f1940135f9851db4ff diff --git a/app-eselect/eselect-opengl/eselect-opengl-1.3.1-r4.ebuild b/app-eselect/eselect-opengl/eselect-opengl-1.3.1-r4.ebuild new file mode 100644 index 000000000000..3d31db92c7b6 --- /dev/null +++ b/app-eselect/eselect-opengl/eselect-opengl-1.3.1-r4.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib + +DESCRIPTION="Utility to change the OpenGL interface being used" +HOMEPAGE="https://www.gentoo.org/" + +# 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 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-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 + !<media-libs/mesa-10.3.4-r1 + !=media-libs/mesa-10.3.5 + !=media-libs/mesa-10.3.7-r1 + !<x11-proto/glproto-1.4.17-r1 + !<=x11-base/xorg-server-1.12.4-r5 + !=x11-base/xorg-server-1.15.2-r1 + !=x11-base/xorg-server-1.15.2-r2 + !~x11-base/xorg-server-1.16.3 + !=x11-base/xorg-server-1.16.4 + !=x11-base/xorg-server-1.16.4-r3 + !~x11-base/xorg-server-1.17.0 + !=x11-base/xorg-server-1.17.1 + !<x11-drivers/ati-drivers-14.9-r2 + !=x11-drivers/ati-drivers-14.12 + !<=app-emulation/emul-linux-x86-opengl-20140508" + +S=${WORKDIR} + +pkg_preinst() { + # we may be moving the config file, so get it early + OLD_IMPL=$(eselect opengl show) +} + +pkg_postinst() { + if path_exists "${EROOT}"/usr/lib*/opengl; then + # delete broken symlinks + find "${EROOT}"/usr/lib*/opengl -xtype l -delete + # delete empty leftover directories (they confuse eselect) + find "${EROOT}"/usr/lib*/opengl -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 +} diff --git a/app-eselect/eselect-opengl/metadata.xml b/app-eselect/eselect-opengl/metadata.xml new file mode 100644 index 000000000000..dfe0fc036771 --- /dev/null +++ b/app-eselect/eselect-opengl/metadata.xml @@ -0,0 +1,13 @@ +<?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> +<longdescription>Utility to switch opengl implementations between various providers.</longdescription> +</pkgmetadata> |