# 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" }