summaryrefslogtreecommitdiff
path: root/dev-libs/randomx/randomx-1.2.1.ebuild
blob: 74fbae229e855d7e40b5b1f37f96c852b1265828 (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
# 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 ~riscv"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=">=dev-build/cmake-3.5"

S="${WORKDIR}/RandomX-${PV}"

CMAKE_BUILD_TYPE=Release

src_configure() {
	local mycmakeargs=(
		-DARCH=native
	)

	cmake_src_configure
}

src_install() {
	cmake_src_install

	insinto /usr/lib/sysctl.d
	doins "${FILESDIR}/60-${PN}.conf"
}