Gentoo Archives: gentoo-commits

From: Marius Brehler <marbre@××××××××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/clfft/
Date: Fri, 01 Apr 2016 14:09:09
Message-Id: 1459519627.751ac80e82eee6803047e30e3ff6b524726552b0.marbre@gentoo
1 commit: 751ac80e82eee6803047e30e3ff6b524726552b0
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Fri Apr 1 14:07:07 2016 +0000
4 Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
5 CommitDate: Fri Apr 1 14:07:07 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=751ac80e
7
8 sci-libs/clfft: Version bump
9
10 Package-Manager: portage-2.2.26
11
12 sci-libs/clfft/clfft-2.10.2.ebuild | 53 ++++++++++++++++++++++++++++++++++++++
13 1 file changed, 53 insertions(+)
14
15 diff --git a/sci-libs/clfft/clfft-2.10.2.ebuild b/sci-libs/clfft/clfft-2.10.2.ebuild
16 new file mode 100644
17 index 0000000..1776ddd
18 --- /dev/null
19 +++ b/sci-libs/clfft/clfft-2.10.2.ebuild
20 @@ -0,0 +1,53 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +inherit cmake-utils
28 +
29 +MY_PN="clFFT"
30 +
31 +DESCRIPTION="Library containing FFT functions written in OpenCL"
32 +HOMEPAGE="https://github.com/clMathLibraries/clFFT"
33 +SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="Apache-2.0"
36 +SLOT="0"
37 +KEYWORDS="~amd64"
38 +IUSE="callback_client +client examples test"
39 +
40 +RDEPEND="
41 + >=sys-devel/gcc-4.6:*
42 + virtual/opencl
43 + dev-libs/boost"
44 +DEPEND="${RDEPEND}"
45 +# test? (
46 +# dev-cpp/gtest
47 +# sci-libs/fftw:3.0
48 +# )"
49 +
50 +# The tests only get compiled to an executable named Test, which is not recogniozed by cmake.
51 +# Therefore src_test() won't execute any test.
52 +RESTRICT="test"
53 +
54 +S="${WORKDIR}/${MY_PN}-${PV}/src"
55 +
56 +pkg_pretend() {
57 + if [[ ${MERGE_TYPE} != binary ]]; then
58 + if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) ; then
59 + die "Compilation with gcc older than 4.6 is not supported."
60 + fi
61 + fi
62 +}
63 +
64 +src_configure() {
65 + local mycmakeargs=(
66 + $(cmake-utils_use_build callback_client CALLBACK_CLIENT)
67 + $(cmake-utils_use_build client CLIENT)
68 + $(cmake-utils_use_build examples EXAMPLES)
69 + $(cmake-utils_use_build test TEST)
70 + -DBoost_USE_STATIC_LIBS=OFF
71 + )
72 + cmake-utils_src_configure
73 +}