summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-01-03 22:51:24 +0000
committerMichał Górny <mgorny@gentoo.org>2015-01-03 22:51:24 +0000
commit897d8b00950b0590f5ff6b9d30791ca34ce56803 (patch)
treeeeecb83573508883cfe738db516b83520172d62e /app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20140508-r1.ebuild
parentBlock incompatible emul-linux-x86-opengl versions. (diff)
downloadhistorical-897d8b00950b0590f5ff6b9d30791ca34ce56803.tar.gz
historical-897d8b00950b0590f5ff6b9d30791ca34ce56803.tar.bz2
historical-897d8b00950b0590f5ff6b9d30791ca34ce56803.zip
Move files for new eselect-opengl framework.
Package-Manager: portage-2.2.15/cvs/Linux x86_64 Manifest-Sign-Key: 0xEFB4464E!
Diffstat (limited to 'app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20140508-r1.ebuild')
-rw-r--r--app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20140508-r1.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20140508-r1.ebuild b/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20140508-r1.ebuild
new file mode 100644
index 000000000000..2fefba8a8e90
--- /dev/null
+++ b/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20140508-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20140508-r1.ebuild,v 1.1 2015/01/03 22:51:23 mgorny Exp $
+
+EAPI=5
+inherit emul-linux-x86
+
+SRC_URI="!abi_x86_32? ( ${SRC_URI} )"
+LICENSE="!abi_x86_32? ( BSD MIT LGPL-3 SGI-B-2.0 ) abi_x86_32? ( metapackage )"
+KEYWORDS="-* ~amd64 ~amd64-linux"
+IUSE="abi_x86_32"
+
+DEPEND="
+ !abi_x86_32? (
+ >=app-admin/eselect-opengl-1.3
+ >=app-admin/eselect-mesa-0.0.9
+ )"
+RDEPEND="
+ !abi_x86_32? (
+ >=app-emulation/emul-linux-x86-xlibs-20100611
+ !<app-emulation/emul-linux-x86-xlibs-20100611
+ media-libs/mesa
+
+ !media-libs/freeglut[abi_x86_32(-)]
+ !media-libs/glew[abi_x86_32(-)]
+ !media-libs/glu[abi_x86_32(-)]
+ !media-libs/mesa[abi_x86_32(-)]
+ )
+ abi_x86_32? (
+ >=media-libs/freeglut-2.8.1[abi_x86_32(-)]
+ >=media-libs/glew-1.10.0-r1[abi_x86_32(-)]
+ >=media-libs/glu-9.0.0-r1[abi_x86_32(-)]
+ >=media-libs/mesa-9.1.6[abi_x86_32(-)]
+ )"
+
+src_prepare() {
+ use abi_x86_32 && return
+ emul-linux-x86_src_prepare
+ rm -f "${S}/usr/lib32/libGL.so" || die
+ rm -f "${S}/usr/lib32/libGL.so.1" || die
+
+ # move opengl files for new eselect-opengl design
+ cd "${S}/usr/lib32/opengl/xorg-x11/lib" || die
+ mv * "${S}/usr/lib32/" || die
+ rm -r "${S}/usr/lib32/opengl" || die
+}
+
+src_install() {
+ use abi_x86_32 || emul-linux-x86_src_install
+}
+
+pkg_postinst() {
+ use abi_x86_32 && return
+ # Update GL symlinks
+ eselect opengl set --use-old || die
+ # And the same for mesa (bug #355393)
+ eselect mesa set 32bit --auto || die
+}