1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 inherit autotools db-use eutils versionator systemd user
15 DESCRIPTION="P2P Internet currency based on Bitcoin but wow such doge"
16 HOMEPAGE="https://dogecoin.com/"
17 SRC_URI="https://github.com/${MyPN}/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyPN}-v${PV}.tgz"
19 LICENSE="MIT ISC GPL-2"
21 KEYWORDS="~amd64 ~x86"
22 IUSE="debug examples logrotate upnp +wallet test"
25 >=dev-libs/boost-1.48.0[threads(+)]
26 dev-libs/openssl:0[-bindist]
34 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
47 enewuser "${UG}" -1 -1 /var/lib/dogecoin "${UG}"
56 $(use_enable wallet) \
57 $(use_enable test tests) \
60 $(use_with upnp miniupnpc) \
70 dobin "src/dogecoin-cli"
73 newins "${FILESDIR}/dogecoin.conf" dogecoin.conf
74 fowners dogecoin:dogecoin /etc/dogecoin/dogecoin.conf
75 fperms 600 /etc/dogecoin/dogecoin.conf
77 newconfd "${FILESDIR}/dogecoin.confd" "${PN}"
78 newinitd "${FILESDIR}/dogecoin.initd" "${PN}"
79 # systemd_dounit "${FILESDIR}/dogecoind.service"
81 keepdir /var/lib/dogecoin/.dogecoin
82 fperms 700 /var/lib/dogecoin
83 fowners dogecoin:dogecoin /var/lib/dogecoin/
84 fowners dogecoin:dogecoin /var/lib/dogecoin/.dogecoin
85 dosym /etc/dogecoin/dogecoin.conf /var/lib/dogecoin/.dogecoin/dogecoin.conf
88 # dodoc RELEASE_NOTES_1_8.2.md
89 # doman contrib/debian/manpages/{dogecoind.1,dogecoin.conf.5}
91 # if use bash-completion; then
92 # newbashcomp "contrib/${PN}.bash-completion" "${PN}"
97 dodoc -r contrib/{README.md,bitrpc,pyminer,spendfrom,linearize,qos}
100 if use logrotate; then
101 insinto /etc/logrotate.d
102 newins "${FILESDIR}/dogecoind.logrotate" dogecoind