From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6FDB0138350 for ; Thu, 23 Apr 2020 11:01:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6B56E0A9E; Thu, 23 Apr 2020 11:01:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 89F52E0A9E for ; Thu, 23 Apr 2020 11:01:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE4BE34F27A for ; Thu, 23 Apr 2020 11:01:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C3A781C8 for ; Thu, 23 Apr 2020 11:01:44 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1587639583.17ccefcb957f537693924ad17fcdb57644f4b8eb.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/level-zero/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/level-zero/Manifest dev-libs/level-zero/level-zero-0.91.10.ebuild dev-libs/level-zero/metadata.xml X-VCS-Directories: dev-libs/level-zero/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 17ccefcb957f537693924ad17fcdb57644f4b8eb X-VCS-Branch: master Date: Thu, 23 Apr 2020 11:01:44 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 36833a3c-0a41-4ad9-80cd-dd32bf4444f0 X-Archives-Hash: 3f2fc9f0ce0c262fd8add34cecf12538 commit: 17ccefcb957f537693924ad17fcdb57644f4b8eb Author: Marek Szuba gentoo org> AuthorDate: Thu Apr 23 10:49:08 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Thu Apr 23 10:59:43 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17ccefcb dev-libs/level-zero: new package Header, loader and validation layer of oneAPI Level Zero. Used by recent upstream versions of dev-libs/intel-neo. Note that USE=test is a no-op for now because even though upstream provides a CMake option to disable the building of tests, there aren't actually any tests yet - at least in the release tarball. Signed-off-by: Marek Szuba gentoo.org> dev-libs/level-zero/Manifest | 1 + dev-libs/level-zero/level-zero-0.91.10.ebuild | 46 +++++++++++++++++++++++++++ dev-libs/level-zero/metadata.xml | 12 +++++++ 3 files changed, 59 insertions(+) diff --git a/dev-libs/level-zero/Manifest b/dev-libs/level-zero/Manifest new file mode 100644 index 00000000000..816e0bc2bdd --- /dev/null +++ b/dev-libs/level-zero/Manifest @@ -0,0 +1 @@ +DIST level-zero-0.91.10.tar.gz 291352 BLAKE2B eaec1aa89b529b84d312f21c91e03c9ae2911193ad25a3884b677108bd3cf18d70b56174f515ac6ec2d61de0a80bb70bdf98834e4f932729e5809855ba42d087 SHA512 d98caa0ec135dc111ba8d34c2102f704e384cf6f6eb8ff147642cb1ce1de2fc96804e4f35e68df41a7e5404ba3702e87ec29f2334b19d39752351af5f5c999cc diff --git a/dev-libs/level-zero/level-zero-0.91.10.ebuild b/dev-libs/level-zero/level-zero-0.91.10.ebuild new file mode 100644 index 00000000000..3624672b5a4 --- /dev/null +++ b/dev-libs/level-zero/level-zero-0.91.10.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake flag-o-matic + +DESCRIPTION="oneAPI Level Zero headers, loader and validation layer" +HOMEPAGE="https://github.com/oneapi-src/level-zero" +SRC_URI="https://github.com/oneapi-src/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +DEPEND="dev-util/opencl-headers" + +RESTRICT="!test? ( test )" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if ! test-flag-CXX -std=c++14; then + eerror "${P} requires C++14-capable C++ compiler. Your current compiler" + eerror "does not seem to support -std=c++14 option. Please upgrade your compiler" + eerror "to gcc-4.9 or an equivalent version supporting C++14." + die "Currently active compiler does not support -std=c++14" + fi + fi +} + +src_prepare() { + cmake_src_prepare + # According to upstream, release tarballs should contain this file + # - but at least some of them do not. Fortunately it is trivial + # to make one ourselves. + echo "$(ver_cut 3)" > "${S}"/VERSION_PATCH || die "Failed to seed the version file" +} + +src_configure() { + local mycmakeargs=( + -Dlevel-zero_BUILD_TESTS=$(usex test) + -DOpenCL_INCLUDE_DIR="${EPREFIX}/usr/include" + ) + cmake_src_configure +} diff --git a/dev-libs/level-zero/metadata.xml b/dev-libs/level-zero/metadata.xml new file mode 100644 index 00000000000..9ca0b21dc7a --- /dev/null +++ b/dev-libs/level-zero/metadata.xml @@ -0,0 +1,12 @@ + + + + + marecki@gentoo.org + Marek Szuba + + + oneapi-src/level-zero + + +