blob: dd45080fffa374639ab9985b5f37ef9b659bb310 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{3_6,3_7} )
inherit cmake-utils user systemd python-r1
DESCRIPTION="Secure, private, untraceable cryptocurrency"
HOMEPAGE="https://getmonero.org"
TREZOR_COMMON_COMMIT="31a0073c62738827b48d725facd3766879429124"
SRC_URI="https://github.com/monero-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
smartcard? ( https://github.com/trezor/trezor-common/archive/${TREZOR_COMMON_COMMIT}.tar.gz -> trezor-common-${TREZOR_COMMON_COMMIT}.tar.gz )"
LICENSE="NEWLIB"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="doc qt5 readline smartcard unwind"
RDEPEND="dev-db/lmdb
net-dns/unbound:=[threads]
>=dev-libs/randomx-1.1.6:=
net-libs/miniupnpc:=
dev-libs/openssl:0
>=dev-libs/boost-1.62:=[icu,threads,nls]
net-libs/zeromq:=[sodium]
net-libs/cppzmq:=
dev-libs/rapidjson:=
net-libs/openpgm:=
readline? ( sys-libs/readline:= )
unwind? ( sys-libs/libunwind[lzma] )
smartcard? (
dev-libs/hidapi:=
virtual/libusb:=
dev-libs/protobuf:=
dev-python/protobuf-python:=[${PYTHON_USEDEP}]
)"
DEPEND="${PYTHON_DEPS}
>=dev-util/cmake-2.8.7
doc? (
media-gfx/graphviz
app-doc/doxygen:0
)
${RDEPEND}"
PDEPEND="qt5? ( net-p2p/monero-gui )"
PATCHES=(
"${FILESDIR}/${PV}-Drop-in-tree-miniupnpc.patch"
"${FILESDIR}/${PV}-Use-gentoo-versioning.patch"
"${FILESDIR}/${PV}-Do-not-install-trezor-dep-libs.patch"
"${FILESDIR}/${PV}-Use-gentoo-dev-libs-randomx.patch"
)
CMAKE_BUILD_TYPE=Release
pkg_setup() {
enewgroup monero
enewuser monero -1 -1 /var/lib/monero monero
}
src_unpack() {
default
if use smartcard ; then
unpack "trezor-common-${TREZOR_COMMON_COMMIT}.tar.gz"
rm -r "${S}/external/trezor-common" || die
mv "trezor-common-${TREZOR_COMMON_COMMIT}" "${S}/external/trezor-common" || die
fi
}
src_configure() {
local mycmakeargs=(
-DBUILD_DOCUMENTATION="$(usex doc ON OFF)"
-DBUILD_TESTS=OFF
-DCOVERAGE=OFF
-DUSE_READLINE="$(usex readline ON OFF)"
-DBUILD_GUI_DEPS="$(usex qt5 ON OFF)"
-DINSTALL_VENDORED_LIBUNBOUND=OFF
-DMANUAL_SUBMODULES=ON
)
export DATABASE="lmdb"
export DEVELOPER_LOCAL_TOOLS=0
export DEVELOPER_LIBUNBOUND_OLD=0
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
insinto /etc
doins utils/conf/monerod.conf
systemd_dounit utils/systemd/monerod.service
}
|