blob: 3bc2533e592fc79384f640860c5a796481d1e5ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Proof-of-work algorithm that is optimized for general-purpose CPUs"
HOMEPAGE="https://github.com/tevador/RandomX"
SRC_URI="https://github.com/tevador/RandomX/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=">=dev-build/cmake-3.5"
S="${WORKDIR}/RandomX-${PV}"
CMAKE_BUILD_TYPE=Release
PATCHES=(
"${FILESDIR}/${PV}-Fixed-GCC-13-compilation.patch"
)
src_configure() {
local mycmakeargs=(
-DARCH=native
)
cmake_src_configure
}
src_install() {
cmake_src_install
insinto /usr/lib/sysctl.d
doins "${FILESDIR}/60-${PN}.conf"
}
|