suwako/net-misc/xmrig-cuda/xmrig-cuda-6.21.1.ebuild
2024-06-12 11:22:18 +02:00

49 lines
840 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake systemd
DESCRIPTION="CUDA Plugin for XMRig"
HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig-cuda"
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
inherit git-r3
else
SRC_URI="https://github.com/xmrig/xmrig-cuda/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64"
fi
LICENSE="Apache-2.0 GPL-3+ MIT"
SLOT="0"
IUSE=""
DEPEND="
sys-devel/gcc:11
dev-util/nvidia-cuda-toolkit
"
RDEPEND="
${DEPEND}
"
src_prepare() {
export CC=gcc-11
export CXX=g++-11
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
)
# export CC=gcc-11
# export CXX=g++-11
cmake_src_configure
}
src_install() {
default
dolib.so "${BUILD_DIR}/libxmrig-cuda.so"
}