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 4FBA51382C5 for ; Sun, 24 Jan 2021 07:53:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 89A01E09A6; Sun, 24 Jan 2021 07:53:49 +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 4CACDE09A6 for ; Sun, 24 Jan 2021 07:53:49 +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 E8D05335C85 for ; Sun, 24 Jan 2021 07:53:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 54A9E3B7 for ; Sun, 24 Jan 2021 07:53:46 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1611474661.eb75dfab9e7af24c606278dce28101b51f47f043.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocRAND/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/rocRAND/Manifest sci-libs/rocRAND/metadata.xml sci-libs/rocRAND/rocRAND-4.0.0-r1.ebuild X-VCS-Directories: sci-libs/rocRAND/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: eb75dfab9e7af24c606278dce28101b51f47f043 X-VCS-Branch: master Date: Sun, 24 Jan 2021 07:53:46 +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: b8587014-7fea-4c5e-9ea7-ce72c5ad2877 X-Archives-Hash: 07d07ec79c21a14557c5ca967c58f8b6 commit: eb75dfab9e7af24c606278dce28101b51f47f043 Author: Benda Xu gentoo org> AuthorDate: Thu Jan 21 13:58:06 2021 +0000 Commit: Benda XU gentoo org> CommitDate: Sun Jan 24 07:51:01 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb75dfab sci-libs/rocRAND: pseudo-random number generator. Closes: https://github.com/gentoo/gentoo/pull/19147 Suggested-by: Yiyang Wu gmail.com> Suggested-by: Wilfried Holzke holzke.net> Bug: https://bugs.gentoo.org/650804 Bug: https://github.com/gentoo/gentoo/pull/10724 Package-Manager: Portage-3.0.12, Repoman-3.0.1 Signed-off-by: Benda Xu gentoo.org> sci-libs/rocRAND/Manifest | 1 + sci-libs/rocRAND/metadata.xml | 19 +++++++++++++ sci-libs/rocRAND/rocRAND-4.0.0-r1.ebuild | 46 ++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) diff --git a/sci-libs/rocRAND/Manifest b/sci-libs/rocRAND/Manifest new file mode 100644 index 00000000000..7059aa65034 --- /dev/null +++ b/sci-libs/rocRAND/Manifest @@ -0,0 +1 @@ +DIST rocRAND-4.0.0.tar.gz 3105585 BLAKE2B 0466d88c286290a9cd179fac61209051f7db5323457ccad9c5f0b579439662e1fe2b8951f85101c7c31bd058bc1448e839a19dc9a3a2d4ca42eb4e0b2baf4eb4 SHA512 c02bc32a9cf7660739ecf7ef99262fb14efa2c76afb3476105eedc4264dec987351ebd461c13c9e0aef9e640b42960b2a63295479664b83924cf0d5c34a157e8 diff --git a/sci-libs/rocRAND/metadata.xml b/sci-libs/rocRAND/metadata.xml new file mode 100644 index 00000000000..77cd8b248d1 --- /dev/null +++ b/sci-libs/rocRAND/metadata.xml @@ -0,0 +1,19 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + candrews@gentoo.org + Craig Andrews + + + gentoo@holzke.net + Wilfried Holzke + + + ROCmSoftwarePlatform/rocRAND + + diff --git a/sci-libs/rocRAND/rocRAND-4.0.0-r1.ebuild b/sci-libs/rocRAND/rocRAND-4.0.0-r1.ebuild new file mode 100644 index 00000000000..1a112d2a73d --- /dev/null +++ b/sci-libs/rocRAND/rocRAND-4.0.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Generate pseudo-random and quasi-random numbers" +HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocRAND" +SRC_URI="https://github.com/ROCmSoftwarePlatform/rocRAND/archive/rocm-${PV}.tar.gz -> rocRAND-${PV}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64" +SLOT="0" + +RDEPEND="=dev-util/hip-$(ver_cut 1-2)*" +DEPEND="${RDEPEND} + =dev-util/rocm-cmake-$(ver_cut 1-2)*" + +S="${WORKDIR}/rocRAND-rocm-${PV}" + +src_prepare() { + sed -r -e "s:(hip|roc)rand/lib:\${CMAKE_INSTALL_LIBDIR}:" \ + -e "s:(hip|roc)rand/include:include/\1rand:" \ + -e "/INSTALL_RPATH/d" -i library/CMakeLists.txt || die + + eapply_user + cmake_src_prepare +} + +src_configure() { + # Grant access to the device + addwrite /dev/kfd + addpredict /dev/dri/ + + # Compiler to use + export CXX=hipcc + + local mycmakeargs=( + -DBUILD_TEST=OFF + ) + + cmake_src_configure + # do not rerun cmake and the build process in src_install + sed '/RERUN/,+1d' -i "${BUILD_DIR}"/build.ninja || die +}