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 29AAB138359 for ; Fri, 13 Nov 2020 17:50:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67944E07D8; Fri, 13 Nov 2020 17:50:09 +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 491D1E07C5 for ; Fri, 13 Nov 2020 17:50:09 +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 BDE8F3406D1 for ; Fri, 13 Nov 2020 17:50:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA08244C for ; Fri, 13 Nov 2020 17:50:04 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1605289800.d366c82468085fe5f14220e383c342e496eb4258.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocm-device-libs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/rocm-device-libs/rocm-device-libs-3.9.0-r1.ebuild X-VCS-Directories: dev-libs/rocm-device-libs/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: d366c82468085fe5f14220e383c342e496eb4258 X-VCS-Branch: master Date: Fri, 13 Nov 2020 17:50:04 +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: cfd2589b-f240-46c0-84ae-92fd188056f7 X-Archives-Hash: b34d18e8bc64dfa62aa4f3060ee58288 commit: d366c82468085fe5f14220e383c342e496eb4258 Author: Wilfried Holzke holzke net> AuthorDate: Fri Nov 13 16:34:40 2020 +0000 Commit: Craig Andrews gentoo org> CommitDate: Fri Nov 13 17:50:00 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d366c824 dev-libs/rocm-device-libs: Correcting install location according to FHS Signed-off-by: Wilfried Holzke holzke.net> Package-Manager: Portage-3.0.8, Repoman-3.0.2 Closes: https://github.com/gentoo/gentoo/pull/18244 Signed-off-by: Craig Andrews gentoo.org> .../rocm-device-libs-3.9.0-r1.ebuild | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-3.9.0-r1.ebuild b/dev-libs/rocm-device-libs/rocm-device-libs-3.9.0-r1.ebuild new file mode 100644 index 00000000000..507a6891293 --- /dev/null +++ b/dev-libs/rocm-device-libs/rocm-device-libs-3.9.0-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/" + inherit git-r3 + S="${WORKDIR}/${P}/src" +else + SRC_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ROCm-Device-Libs-rocm-${PV}" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Radeon Open Compute Device Libraries" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-Device-Libs" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" + +RDEPEND=">=sys-devel/llvm-roc-${PV}:=" +DEPEND="${RDEPEND}" + +src_prepare() { + sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/OCL.cmake" || die + sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/Packages.cmake" || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLLVM_DIR="${EPREFIX}/usr/lib/llvm/roc/lib/cmake/llvm" + ) + cmake_src_configure +}