diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-09-21 17:10:34 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-09-21 17:10:34 +0000 |
commit | f7c87f13d9e04e072807988e09a5000f073c7351 (patch) | |
tree | 691320ff26d26a3525041da8e61a6d94c42ee3c7 /app-emulation/emul-linux-x86-opengl | |
parent | Convert to multilib. (diff) | |
download | gentoo-2-f7c87f13d9e04e072807988e09a5000f073c7351.tar.gz gentoo-2-f7c87f13d9e04e072807988e09a5000f073c7351.tar.bz2 gentoo-2-f7c87f13d9e04e072807988e09a5000f073c7351.zip |
Support multilib dependencies.
(Portage version: 2.2.6/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'app-emulation/emul-linux-x86-opengl')
-rw-r--r-- | app-emulation/emul-linux-x86-opengl/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224-r1.ebuild | 49 |
2 files changed, 56 insertions, 1 deletions
diff --git a/app-emulation/emul-linux-x86-opengl/ChangeLog b/app-emulation/emul-linux-x86-opengl/ChangeLog index d8797f719e94..043c55cf294a 100644 --- a/app-emulation/emul-linux-x86-opengl/ChangeLog +++ b/app-emulation/emul-linux-x86-opengl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/emul-linux-x86-opengl # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-opengl/ChangeLog,v 1.32 2013/08/22 16:01:09 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-opengl/ChangeLog,v 1.33 2013/09/21 17:10:34 mgorny Exp $ + +*emul-linux-x86-opengl-20130224-r1 (21 Sep 2013) + + 21 Sep 2013; Michał Górny <mgorny@gentoo.org> + +emul-linux-x86-opengl-20130224-r1.ebuild: + Support multilib dependencies. 22 Aug 2013; Michał Górny <mgorny@gentoo.org> metadata.xml: Change maintainer to the Gentoo multilib project. diff --git a/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224-r1.ebuild b/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224-r1.ebuild new file mode 100644 index 000000000000..e2d469c90a7e --- /dev/null +++ b/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20130224-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2013 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-20130224-r1.ebuild,v 1.1 2013/09/21 17:10:34 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="app-admin/eselect-opengl + >=app-admin/eselect-mesa-0.0.9" +RDEPEND=">=app-emulation/emul-linux-x86-xlibs-20100611 + !<app-emulation/emul-linux-x86-xlibs-20100611 + media-libs/mesa + + !abi_x86_32? ( + !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[abi_x86_32(-)] + media-libs/glew[abi_x86_32(-)] + media-libs/glu[abi_x86_32(-)] + media-libs/mesa[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 +} + +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 +} |