Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-libs/boost-compute/, dev-libs/boost-compute/files/
Date: Fri, 25 Sep 2020 20:56:45
Message-Id: 1601067395.a079c3a271171977d853989ed0411941ba118521.epsilon-0@gentoo
1 commit: a079c3a271171977d853989ed0411941ba118521
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Fri Sep 25 20:56:35 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Fri Sep 25 20:56:35 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a079c3a2
7
8 dev-libs/boost-compute: fix libdir installation
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 dev-libs/boost-compute/boost-compute-0.4-r1.ebuild | 25 --------------------
14 dev-libs/boost-compute/boost-compute-0.5.ebuild | 23 ------------------
15 dev-libs/boost-compute/boost-compute-1.74.0.ebuild | 5 +++-
16 dev-libs/boost-compute/boost-compute-9999.ebuild | 23 ------------------
17 .../files/boost-compute-0.4-CMakeLists.patch | 14 -----------
18 .../files/boost-compute-1.74.0-libdir.patch | 13 +++++++++++
19 dev-libs/boost-compute/metadata.xml | 27 ++++++++++++++++------
20 7 files changed, 37 insertions(+), 93 deletions(-)
21
22 diff --git a/dev-libs/boost-compute/boost-compute-0.4-r1.ebuild b/dev-libs/boost-compute/boost-compute-0.4-r1.ebuild
23 deleted file mode 100644
24 index 2c52edf3c..000000000
25 --- a/dev-libs/boost-compute/boost-compute-0.4-r1.ebuild
26 +++ /dev/null
27 @@ -1,25 +0,0 @@
28 -# Copyright 1999-2015 Gentoo Foundation
29 -# Distributed under the terms of the GNU General Public License v2
30 -
31 -EAPI=5
32 -
33 -inherit eutils cmake-utils
34 -
35 -DESCRIPTION="A header-only C++ Computing Library for OpenCL"
36 -HOMEPAGE="https://github.com/boostorg/compute"
37 -SRC_URI="https://github.com/boostorg/compute/archive/v${PV}.tar.gz -> ${P}.tar.gz"
38 -
39 -LICENSE="Boost-1.0"
40 -SLOT="0"
41 -KEYWORDS="~amd64"
42 -IUSE=""
43 -
44 -RDEPEND="
45 - dev-libs/boost
46 - virtual/opencl
47 -"
48 -DEPEND="${RDEPEND}"
49 -
50 -S="${WORKDIR}/compute-${PV}"
51 -
52 -PATCHES=( "${FILESDIR}/${P}"-CMakeLists.patch )
53
54 diff --git a/dev-libs/boost-compute/boost-compute-0.5.ebuild b/dev-libs/boost-compute/boost-compute-0.5.ebuild
55 deleted file mode 100644
56 index 8ae88db9d..000000000
57 --- a/dev-libs/boost-compute/boost-compute-0.5.ebuild
58 +++ /dev/null
59 @@ -1,23 +0,0 @@
60 -# Copyright 1999-2016 Gentoo Foundation
61 -# Distributed under the terms of the GNU General Public License v2
62 -
63 -EAPI=5
64 -
65 -inherit eutils cmake-utils
66 -
67 -DESCRIPTION="A header-only C++ Computing Library for OpenCL"
68 -HOMEPAGE="https://github.com/boostorg/compute"
69 -SRC_URI="https://github.com/boostorg/compute/archive/v${PV}.tar.gz -> ${P}.tar.gz"
70 -
71 -LICENSE="Boost-1.0"
72 -SLOT="0"
73 -KEYWORDS="~amd64"
74 -IUSE=""
75 -
76 -RDEPEND="
77 - dev-libs/boost
78 - virtual/opencl
79 -"
80 -DEPEND="${RDEPEND}"
81 -
82 -S="${WORKDIR}/compute-${PV}"
83
84 diff --git a/dev-libs/boost-compute/boost-compute-1.74.0.ebuild b/dev-libs/boost-compute/boost-compute-1.74.0.ebuild
85 index f01c5c268..c400c83bf 100644
86 --- a/dev-libs/boost-compute/boost-compute-1.74.0.ebuild
87 +++ b/dev-libs/boost-compute/boost-compute-1.74.0.ebuild
88 @@ -19,7 +19,7 @@ fi
89
90 LICENSE="Boost-1.0"
91 SLOT="0"
92 -IUSE="benchmark bolt cache cuda eigen examples opencv qt tbb test threads vtk"
93 +IUSE="benchmark bolt cache cpp11 cuda eigen examples opencv qt tbb test threads vtk"
94
95 RDEPEND="
96 dev-libs/boost
97 @@ -27,9 +27,12 @@ RDEPEND="
98 "
99 DEPEND="${RDEPEND}"
100
101 +PATCHES=( "${FILESDIR}"/${P}-libdir.patch )
102 +
103 src_configure() {
104 local mycmakeargs=(
105 -DBOOST_COMPUTE_USE_OFFLINE_CACHE=$(usex cache)
106 + -DBOOST_COMPUTE_USE_CPP11=$(usex cpp11)
107 -DBOOST_COMPUTE_THREAD_SAFE=$(usex threads)
108 -DBOOST_COMPUTE_HAVE_EIGEN=$(usex eigen)
109 -DBOOST_COMPUTE_HAVE_OPENCV=$(usex opencv)
110
111 diff --git a/dev-libs/boost-compute/boost-compute-9999.ebuild b/dev-libs/boost-compute/boost-compute-9999.ebuild
112 deleted file mode 100644
113 index fd7276a2d..000000000
114 --- a/dev-libs/boost-compute/boost-compute-9999.ebuild
115 +++ /dev/null
116 @@ -1,23 +0,0 @@
117 -# Copyright 1999-2015 Gentoo Foundation
118 -# Distributed under the terms of the GNU General Public License v2
119 -
120 -EAPI=5
121 -
122 -inherit eutils cmake-utils git-r3
123 -
124 -DESCRIPTION="A header-only C++ Computing Library for OpenCL"
125 -HOMEPAGE="https://github.com/boostorg/compute"
126 -EGIT_REPO_URI="
127 - https://github.com/boostorg/compute.git
128 - git://github.com/boostorg/compute.git"
129 -
130 -LICENSE="Boost-1.0"
131 -SLOT="0"
132 -KEYWORDS=""
133 -IUSE=""
134 -
135 -RDEPEND="
136 - dev-libs/boost
137 - virtual/opencl
138 -"
139 -DEPEND="${RDEPEND}"
140
141 diff --git a/dev-libs/boost-compute/files/boost-compute-0.4-CMakeLists.patch b/dev-libs/boost-compute/files/boost-compute-0.4-CMakeLists.patch
142 deleted file mode 100644
143 index 86d3a9e29..000000000
144 --- a/dev-libs/boost-compute/files/boost-compute-0.4-CMakeLists.patch
145 +++ /dev/null
146 @@ -1,14 +0,0 @@
147 -Install the BoostComputeConfig to /usr/lib/cmake instead of /usr/share/cmake.
148 -
149 -Patch by Marius Brehler.
150 ---- CMakeLists.txt
151 -+++ CMakeLists.txt
152 -@@ -81,7 +81,7 @@ configure_file(
153 - # install cmake config file
154 - install(
155 - FILES ${BoostCompute_BINARY_DIR}/BoostComputeConfig.cmake
156 -- DESTINATION share/cmake/BoostCompute
157 -+ DESTINATION lib/cmake/BoostCompute
158 - )
159 -
160 - # install header files
161
162 diff --git a/dev-libs/boost-compute/files/boost-compute-1.74.0-libdir.patch b/dev-libs/boost-compute/files/boost-compute-1.74.0-libdir.patch
163 new file mode 100644
164 index 000000000..9b35a5284
165 --- /dev/null
166 +++ b/dev-libs/boost-compute/files/boost-compute-1.74.0-libdir.patch
167 @@ -0,0 +1,13 @@
168 +diff --git a/CMakeLists.txt b/CMakeLists.txt
169 +index d0327ca..e52a62a 100644
170 +--- a/CMakeLists.txt
171 ++++ b/CMakeLists.txt
172 +@@ -122,7 +122,7 @@ configure_file(
173 + # install cmake config file
174 + install(
175 + FILES ${BoostCompute_BINARY_DIR}/BoostComputeConfig.cmake
176 +- DESTINATION lib/cmake/BoostCompute
177 ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/BoostCompute
178 + )
179 +
180 + # install header files
181
182 diff --git a/dev-libs/boost-compute/metadata.xml b/dev-libs/boost-compute/metadata.xml
183 index f41b18fa7..21973c648 100644
184 --- a/dev-libs/boost-compute/metadata.xml
185 +++ b/dev-libs/boost-compute/metadata.xml
186 @@ -2,20 +2,33 @@
187 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
188 <pkgmetadata>
189 <maintainer type="person">
190 - <email>marbre@××××××××××××××.de</email>
191 - <name>Marius Brehler</name>
192 + <email>gentoo@×××××.cc</email>
193 + <name>Aisha Tammy</name>
194 </maintainer>
195 <maintainer type="project">
196 <email>sci@g.o</email>
197 <name>Gentoo Science Project</name>
198 </maintainer>
199 <longdescription>
200 -Boost.Compute is a GPU/parallel-computing library for C++ based on
201 -OpenCL. The core library is a thin C++ wrapper over the OpenCL API
202 -and provides access to compute devices, contexts, command queues
203 -and memory buffers.
204 -</longdescription>
205 + Boost.Compute is a GPU/parallel-computing library for C++ based on
206 + OpenCL. The core library is a thin C++ wrapper over the OpenCL API
207 + and provides access to compute devices, contexts, command queues
208 + and memory buffers.
209 + </longdescription>
210 <upstream>
211 <remote-id type="github">boostorg/compute</remote-id>
212 </upstream>
213 + <use>
214 + <flag name="benchmark">build benchmark examples</flag>
215 + <flag name="bolt">build bolt examples and tests</flag>
216 + <flag name="cpp11">enable C++11 features in examples and tests</flag>
217 + <flag name="cache">use offline cache for opencl binaries in examples and tests</flag>
218 + <flag name="cuda">build cuda examples and tests</flag>
219 + <flag name="eigen">build eigen examples and tests</flag>
220 + <flag name="opencv">build opencv examples and tests</flag>
221 + <flag name="qt">build qt examples and tests</flag>
222 + <flag name="tbb">build examples and tests using tbb backend</flag>
223 + <flag name="threads">build thread safe examples and tests</flag>
224 + <flag name="vtk">build vtk examples and tests</flag>
225 + </use>
226 </pkgmetadata>