summaryrefslogtreecommitdiff
path: root/net-p2p/dogecoin/dogecoin-1.14.6.ebuild
blob: 2388ed94c223fb3f75ee3460e9f869271ea0b278 (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
DB_VER="5.3"
inherit db-use flag-o-matic bash-completion-r1 autotools

DESCRIPTION="P2P Internet currency favored by Shiba Inus worldwide"
HOMEPAGE="http://www.dogecoin.com"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+dbus +qrcode +qt5 +upnp +utils +wallet"

RDEPEND="
	dev-libs/openssl:0
	>=dev-libs/boost-1.60.0[threads(+)]
	qrcode? ( media-gfx/qrencode )
	qt5? (
		dev-qt/qtgui:5
		dev-qt/qtnetwork:5
		dev-qt/qtwidgets:5
		dev-qt/qtprintsupport:5
		dbus? ( dev-qt/qtdbus:5 )
	)
	upnp? ( net-libs/miniupnpc:0 )
	wallet? ( sys-libs/db:$(db_ver_to_slot ${DB_VER})[cxx] )
	dev-libs/protobuf:=
	dev-libs/libevent:=
	net-libs/cppzmq:=
	dev-libs/univalue:=
"
DEPEND="${RDEPEND}
	qt5? ( dev-qt/linguist-tools:5 )"

PATCHES=(
	"${FILESDIR}/${PV}-test-include-deque.patch"
	"${FILESDIR}/${PV}-Remove-Q_FOREACH.patch"
)

src_prepare () {
	default

	append-cppflags "-I$(db_includedir ${DB_VER})"
	eautoreconf
}

src_configure() {
	local my_econf=(
		--with-daemon
		--with-zmq
		--with-system-univalue
		--enable-man
		--disable-hardening
		--disable-bench
		--disable-extended-rpc-tests
		--disable-gui-tests
		$(use_with utils)
		$(use_enable wallet)
		$(use_enable upnp miniupnpc) $(use_with upnp miniupnpc)
		$(use_with qrcode qrencode)
	)

	if use qt5 ; then
		my_econf+=( --with-gui=qt5 )
	else
		my_econf+=( --with-gui=no )
	fi

	econf \
		"${my_econf[@]}"
}

src_install() {
	default

	newbashcomp contrib/dogecoind.bash-completion dogecoind
}