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: Mon, 28 Nov 2016 12:48:08
Message-Id: 1480337242.a4a278d2fcb67c5f17f589d1e51416d952f33280.marbre@gentoo
1 commit: a4a278d2fcb67c5f17f589d1e51416d952f33280
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Mon Nov 28 12:47:22 2016 +0000
4 Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
5 CommitDate: Mon Nov 28 12:47:22 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a4a278d2
7
8 sci-libs/clfft: Version bump to 2.12.2
9
10 Package-Manager: portage-2.3.0
11
12 sci-libs/clfft/clfft-2.12.2.ebuild | 53 ++++++++++++++++++++++++++++++++++++++
13 1 file changed, 53 insertions(+)
14
15 diff --git a/sci-libs/clfft/clfft-2.12.2.ebuild b/sci-libs/clfft/clfft-2.12.2.ebuild
16 new file mode 100644
17 index 0000000..aff0a7e
18 --- /dev/null
19 +++ b/sci-libs/clfft/clfft-2.12.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=6
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 + -DBUILD_CALLBACK_CLIENT="$(usex callback_client)"
67 + -DBUILD_CLIENT="$(usex client)"
68 + -DBUILD_SAMPLE="$(usex examples)"
69 + -DBUILD_TEST="$(usex test)"
70 + -DBoost_USE_STATIC_LIBS=OFF
71 + )
72 + cmake-utils_src_configure
73 +}