Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/eselect-opencl: eselect-opencl-1.1.0-r2.ebuild ChangeLog
Date: Wed, 04 Jun 2014 02:45:13
Message-Id: 20140604024507.A1AB02004F@flycatcher.gentoo.org
1 patrick 14/06/04 02:45:07
2
3 Modified: ChangeLog
4 Added: eselect-opencl-1.1.0-r2.ebuild
5 Log:
6 Bump of OpenCL headers for #496418, not keyworded as it may need more testing
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.9 app-admin/eselect-opencl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-opencl/ChangeLog?rev=1.9&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-opencl/ChangeLog?rev=1.9&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-opencl/ChangeLog?r1=1.8&r2=1.9
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-admin/eselect-opencl/ChangeLog,v
20 retrieving revision 1.8
21 retrieving revision 1.9
22 diff -u -r1.8 -r1.9
23 --- ChangeLog 24 Mar 2014 16:15:09 -0000 1.8
24 +++ ChangeLog 4 Jun 2014 02:45:07 -0000 1.9
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-admin/eselect-opencl
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opencl/ChangeLog,v 1.8 2014/03/24 16:15:09 xarthisius Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opencl/ChangeLog,v 1.9 2014/06/04 02:45:07 patrick Exp $
30 +
31 +*eselect-opencl-1.1.0-r2 (04 Jun 2014)
32 +
33 + 04 Jun 2014; Patrick Lauer <patrick@g.o>
34 + +eselect-opencl-1.1.0-r2.ebuild:
35 + Bump of OpenCL headers for #496418, not keyworded as it may need more testing
36
37 24 Mar 2014; Kacper Kowalik <xarthisius@g.o> metadata.xml:
38 Drop maintainership
39
40
41
42 1.1 app-admin/eselect-opencl/eselect-opencl-1.1.0-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-opencl/eselect-opencl-1.1.0-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/eselect-opencl/eselect-opencl-1.1.0-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: eselect-opencl-1.1.0-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-opencl/eselect-opencl-1.1.0-r2.ebuild,v 1.1 2014/06/04 02:45:07 patrick Exp $
52
53 EAPI=4
54
55 inherit multilib
56
57 DESCRIPTION="Utility to change the OpenCL implementation being used"
58 HOMEPAGE="http://www.gentoo.org/"
59
60 # Source:
61 # http://www.khronos.org/registry/cl/api/${CL_ABI}/opencl.h
62 # http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_platform.h
63 # http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.h
64 # http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_ext.h
65 # http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl.h
66 # http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl_ext.h
67 # http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.hpp
68
69 # Using copy by Mario Kicherer #496418
70
71 #MIRROR="http://dev.gentoo.org/~xarthisius/distfiles/"
72 SRC_URI="https://github.com/anyc/opencl-headers/archive/opencl-headers-1.2.tar.gz
73 http://dev.gentoo.org/~xarthisius/distfiles/${P}-r1.tar.xz"
74
75 LICENSE="GPL-2"
76 SLOT="0"
77 #KEYWORDS="~amd64 ~ppc ~x86 ~amd64-fbsd ~x86-fbsd"
78 KEYWORDS="" # for testing
79 IUSE=""
80
81 DEPEND="app-arch/xz-utils"
82 RDEPEND=">=app-admin/eselect-1.2.4"
83
84 pkg_postinst() {
85 local impl="$(eselect opencl show)"
86 if [[ -n "${impl}" && "${impl}" != '(none)' ]] ; then
87 eselect opencl set "${impl}"
88 fi
89 }
90
91 src_install() {
92 insinto /usr/share/eselect/modules
93 doins opencl.eselect
94 #doman opencl.eselect.5
95
96 local headers=( opencl.h cl_platform.h cl.h cl_ext.h cl_gl.h cl_gl_ext.h cl.hpp )
97
98 # We install all versions of OpenCL headers
99 cd "${WORKDIR}/opencl-headers-opencl-headers-1.2"
100 for CL_ABI in 1.0 1.1 1.2; do
101 mkdir -p "${D}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}"
102 for f in ${headers[@]}; do
103 cp OpenCL-${CL_ABI}/${f} "${D}/usr/$(get_libdir)/OpenCL/global/include/CL-${CL_ABI}/${f}"
104 done
105 done
106 # Create symlinks to newest. Maybe this should be switchable?
107 for f in ${headers[@]}; do
108 dosym "${D}/usr/$(get_libdir)/OpenCL/global/include/CL-1.2/${f}" "/usr/$(get_libdir)/OpenCL/global/include/CL/${f}"
109 done
110 }