eselect-opencl: permits cohabitation between ati and nvidia opencl

This commit is contained in:
grimmlin 2010-10-08 23:34:49 +00:00
parent f39150cc3d
commit f17154b70b
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DIST eselect-opencl-0.0.1.tar.bz2 1971 RMD160 095694e9ec4b4081211ba5cad38af6f1b1d4ab39 SHA1 05afd915c50342b51ef023c8b3230dadabcc9f5f SHA256 8d6b41fb40cfdcc12a779d3be4bd37fcc5e5eed9f91d38c0f9308ea2281f3c00
EBUILD eselect-opencl-0.0.1.ebuild 776 RMD160 b93c6436d43567faf375282af5b8c3a877eb168a SHA1 5a72c44193fd63530f814003ef53386e8f9e1914 SHA256 30e9c76f1e6947557f19943496a2f41a9a8002d7f4f3e9a572a78d57e27e9ab8

View file

@ -0,0 +1,32 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opengl/eselect-opengl-1.1.1-r2.ebuild,v 1.7 2010/02/10 03:58:05 josejx Exp $
EAPI="2"
inherit multilib
DESCRIPTION="Utility to change the OpenCL interface being used"
HOMEPAGE="http://www.pentoo.ch/"
SRC_URI="http://dev.pentoo.ch/~grimmlin/distfiles/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="app-arch/bzip2"
RDEPEND=">=app-admin/eselect-1.2.4"
pkg_postinst() {
local impl="$(eselect opencl show)"
if [[ -n "${impl}" && "${impl}" != '(none)' ]] ; then
eselect opengl set "${impl}"
fi
}
src_install() {
insinto /usr/share/eselect/modules
doins opencl.eselect || die
}