summaryrefslogtreecommitdiff
path: root/net-p2p/monero/monero-0.11.1.0.ebuild
blob: a93f9acf9198f643a2b9b40570a0545e4caedd5d (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit cmake-utils

DESCRIPTION="Secure, private, untraceable cryptocurrency"
HOMEPAGE="https://getmonero.org"
SRC_URI="https://github.com/monero-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="NEWLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc qt5 readline +system-libs unwind"

RDEPEND="dev-db/lmdb
	system-libs? (
		net-dns/unbound
		net-libs/miniupnpc
	)
	dev-libs/openssl:0
	dev-libs/boost:=
	readline? ( sys-libs/readline:= )
	net-libs/zeromq[sodium]
	unwind? ( sys-libs/libunwind[lzma] )"
DEPEND=">=dev-util/cmake-2.8.7
	doc? (
		media-gfx/graphviz
		app-doc/doxygen:0
	)
	${RDEPEND}"
PDEPEND="qt5? ( =net-p2p/monero-gui-${PV} )"

PATCHES=( "${FILESDIR}/${PV}-blockchain_utilities-Add-monero-blockchain-ex-im-por.patch" )

src_configure () {
	local mycmakeargs=(
		-DCMAKE_BUILD_TYPE=Release
		-DBUILD_DOCUMENTATION="$(usex doc ON OFF)"
		-DBUILD_TESTS=OFF
		-DCOVERAGE=OFF
		-DUSE_READLINE="$(usex readline ON OFF)"
		-DINSTALL_VENDORED_LIBUNBOUND="$(usex system-libs OFF ON)"
		-DBUILD_GUI_DEPS="$(usex qt5 ON OFF)"
	)

	export DATABASE="lmdb"
	export DEVELOPER_LOCAL_TOOLS=0
	export DEVELOPER_LIBUNBOUND_OLD=0

	cmake-utils_src_configure
}