From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 112A259CB0 for ; Fri, 1 Apr 2016 14:09:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 280B721C011; Fri, 1 Apr 2016 14:09:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B609F21C011 for ; Fri, 1 Apr 2016 14:09:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AF4BE340E36 for ; Fri, 1 Apr 2016 14:09:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7359B7D for ; Fri, 1 Apr 2016 14:09:01 +0000 (UTC) From: "Marius Brehler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marius Brehler" Message-ID: <1459519627.751ac80e82eee6803047e30e3ff6b524726552b0.marbre@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/clfft/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/clfft/clfft-2.10.2.ebuild X-VCS-Directories: sci-libs/clfft/ X-VCS-Committer: marbre X-VCS-Committer-Name: Marius Brehler X-VCS-Revision: 751ac80e82eee6803047e30e3ff6b524726552b0 X-VCS-Branch: master Date: Fri, 1 Apr 2016 14:09:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 485a1a26-4c57-4a93-851b-1d5889ab9eed X-Archives-Hash: f822d2b504f7487fcdf9de36a8b833bd commit: 751ac80e82eee6803047e30e3ff6b524726552b0 Author: Marius Brehler linux sungazer de> AuthorDate: Fri Apr 1 14:07:07 2016 +0000 Commit: Marius Brehler linux sungazer de> CommitDate: Fri Apr 1 14:07:07 2016 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=751ac80e sci-libs/clfft: Version bump Package-Manager: portage-2.2.26 sci-libs/clfft/clfft-2.10.2.ebuild | 53 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/sci-libs/clfft/clfft-2.10.2.ebuild b/sci-libs/clfft/clfft-2.10.2.ebuild new file mode 100644 index 0000000..1776ddd --- /dev/null +++ b/sci-libs/clfft/clfft-2.10.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +MY_PN="clFFT" + +DESCRIPTION="Library containing FFT functions written in OpenCL" +HOMEPAGE="https://github.com/clMathLibraries/clFFT" +SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="callback_client +client examples test" + +RDEPEND=" + >=sys-devel/gcc-4.6:* + virtual/opencl + dev-libs/boost" +DEPEND="${RDEPEND}" +# test? ( +# dev-cpp/gtest +# sci-libs/fftw:3.0 +# )" + +# The tests only get compiled to an executable named Test, which is not recogniozed by cmake. +# Therefore src_test() won't execute any test. +RESTRICT="test" + +S="${WORKDIR}/${MY_PN}-${PV}/src" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) ; then + die "Compilation with gcc older than 4.6 is not supported." + fi + fi +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_build callback_client CALLBACK_CLIENT) + $(cmake-utils_use_build client CLIENT) + $(cmake-utils_use_build examples EXAMPLES) + $(cmake-utils_use_build test TEST) + -DBoost_USE_STATIC_LIBS=OFF + ) + cmake-utils_src_configure +}