blob: b922672aa6a694fd34ccff14b77ec0f33a7ac3d1 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CMAKE_MAKEFILE_GENERATOR="emake"
inherit git-r3 cmake systemd
DESCRIPTION="Decentralized pool for Monero mining"
HOMEPAGE="https://github.com/SChernykh/p2pool"
EGIT_REPO_URI="https://github.com/SChernykh/${PN}"
EGIT_COMMIT="v${PV}"
EGIT_SUBMODULES=(
external/src/RandomX
external/src/miniupnp
external/src/robin-hood-hashing
)
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="lto upnp"
DEPEND="net-libs/zeromq:=[sodium]
net-libs/cppzmq:=
dev-libs/libuv:=
net-misc/curl:="
RDEPEND="${DEPEND}
acct-user/p2pool
acct-group/p2pool"
PATCHES=(
"${FILESDIR}/${PV}-build-disable-strip.patch"
"${FILESDIR}/${PV}-build-randomx-static.patch"
)
src_configure () {
local mycmakeargs=(
-DSTATIC_BINARY=OFF
-DSTATIC_LIBS=OFF
-DWITH_RANDOMX=ON
-DDEV_TEST_SYNC=OFF
-DDEV_WITH_ASAN=OFF
-DDEV_WITH_MSAN=OFF
-DDEV_WITH_TSAN=OFF
-DDEV_WITH_UBSAN=OFF
-DDEV_CLANG_TIDY=OFF
-DDEV_TRACK_MEMORY=OFF
-DWITH_LTO=$(usex lto)
-DWITH_UPNP=$(usex upnp)
)
cmake_src_configure
}
src_install () {
dobin "${BUILD_DIR}/p2pool"
insinto "/usr/share/${PN}"
doins -r "${S}/docs/html"
systemd_newunit "${FILESDIR}/${PN}.service" "${PN}@.service"
systemd_newunit "${FILESDIR}/${PN}.socket" "${PN}@.socket"
}
|