diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2012-02-17 14:06:51 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2012-02-17 14:06:51 +0000 |
commit | 0d68efb280cd9d372cf52a7c26a50b5d9d8af3d5 (patch) | |
tree | 7d6edc63dbaac42c5ca5a8966e123e5db7d9373d /app-admin | |
parent | Stable on alpha, bug #335892 (diff) | |
download | gentoo-2-0d68efb280cd9d372cf52a7c26a50b5d9d8af3d5.tar.gz gentoo-2-0d68efb280cd9d372cf52a7c26a50b5d9d8af3d5.tar.bz2 gentoo-2-0d68efb280cd9d372cf52a7c26a50b5d9d8af3d5.zip |
Revbump that properly links C++ header
(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/eselect-opencl/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/eselect-opencl/eselect-opencl-1.1.0-r1.ebuild | 58 |
2 files changed, 65 insertions, 1 deletions
diff --git a/app-admin/eselect-opencl/ChangeLog b/app-admin/eselect-opencl/ChangeLog index 6c55125a16a0..3de2db919082 100644 --- a/app-admin/eselect-opencl/ChangeLog +++ b/app-admin/eselect-opencl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-admin/eselect-opencl # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opencl/ChangeLog,v 1.1 2012/01/21 09:23:17 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opencl/ChangeLog,v 1.2 2012/02/17 14:06:51 xarthisius Exp $ + +*eselect-opencl-1.1.0-r1 (17 Feb 2012) + + 17 Feb 2012; Kacper Kowalik <xarthisius@gentoo.org> + +eselect-opencl-1.1.0-r1.ebuild: + Revbump that properly links C++ header *eselect-opencl-1.1.0 (21 Jan 2012) diff --git a/app-admin/eselect-opencl/eselect-opencl-1.1.0-r1.ebuild b/app-admin/eselect-opencl/eselect-opencl-1.1.0-r1.ebuild new file mode 100644 index 000000000000..7b7f4a71177f --- /dev/null +++ b/app-admin/eselect-opencl/eselect-opencl-1.1.0-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opencl/eselect-opencl-1.1.0-r1.ebuild,v 1.1 2012/02/17 14:06:51 xarthisius Exp $ + +EAPI=4 +CL_ABI=1.1 + +inherit multilib + +DESCRIPTION="Utility to change the OpenCL implementation being used" +HOMEPAGE="http://www.gentoo.org/" + +# Source: +# http://www.khronos.org/registry/cl/api/${CL_ABI}/opencl.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_platform.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_ext.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl_ext.h +# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.hpp + +MIRROR="http://dev.gentoo.org/~xarthisius/distfiles/" +SRC_URI="${MIRROR}/opencl.h.${CL_ABI}.xz + ${MIRROR}/cl_platform.h.${CL_ABI}.xz + ${MIRROR}/cl.h.${CL_ABI}.xz + ${MIRROR}/cl_ext.h.${CL_ABI}.xz + ${MIRROR}/cl_gl.h.${CL_ABI}.xz + ${MIRROR}/cl_gl_ext.h.${CL_ABI}.xz + ${MIRROR}/cl.hpp.${CL_ABI}.xz + ${MIRROR}/${P}-r1.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/xz-utils" +RDEPEND=">=app-admin/eselect-1.2.4" + +pkg_postinst() { + local impl="$(eselect opencl show)" + if [[ -n "${impl}" && "${impl}" != '(none)' ]] ; then + eselect opencl set "${impl}" + fi +} + +src_install() { + insinto /usr/share/eselect/modules + doins opencl.eselect + #doman opencl.eselect.5 + + local headers=( opencl.h cl_platform.h cl.h cl_ext.h cl_gl.h cl_gl_ext.h cl.hpp ) + insinto /usr/$(get_libdir)/OpenCL/global/include/CL + cd "${WORKDIR}" + for f in ${headers[@]}; do + newins ${f}.${CL_ABI} ${f} + done +} |