2024-06-12 10:38:57 +02:00
|
|
|
# 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="
|
2024-06-12 10:47:33 +02:00
|
|
|
sys-devel/gcc:11
|
2024-06-12 10:38:57 +02:00
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
${DEPEND}
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
2024-06-12 10:47:33 +02:00
|
|
|
export CC=gcc-11
|
|
|
|
export CXX=g++-11
|
2024-06-12 10:38:57 +02:00
|
|
|
cmake_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
)
|
2024-06-12 10:47:33 +02:00
|
|
|
# export CC=gcc-11
|
|
|
|
# export CXX=g++-11
|
2024-06-12 10:38:57 +02:00
|
|
|
cmake_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
2024-06-12 11:15:32 +02:00
|
|
|
dolib.so "${BUILD_DIR}/libxmrig-cuda.so"
|
2024-06-12 10:38:57 +02:00
|
|
|
}
|