blob: b4a743edc7b4b85252699135de73f6cc0c20cd00 (
plain)
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
|
# Copyright 2010-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libbitcoinconsensus/libbitcoinconsensus-9999.ebuild,v 1.1 2014/11/21 11:55:15 blueness Exp $
EAPI=5
inherit autotools eutils git-2 user versionator
MyPV="${PV/_/}"
MyPN="bitcoin"
MyP="${MyPN}-${MyPV}"
DESCRIPTION="Bitcoin Core consensus library"
HOMEPAGE="http://bitcoin.org/"
SRC_URI="
"
EGIT_PROJECT='bitcoin'
EGIT_REPO_URI="git://github.com/bitcoin/bitcoin.git https://github.com/bitcoin/bitcoin.git"
LICENSE="MIT ISC GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="test"
RDEPEND="
>=dev-libs/boost-1.52.0[threads(+)]
dev-libs/openssl:0[-bindist]
"
DEPEND="${RDEPEND}
dev-libs/libsecp256k1
"
src_prepare() {
epatch "${FILESDIR}/0.9.0-sys_leveldb.patch"
epatch "${FILESDIR}/${PV}-sys_libsecp256k1.patch"
rm -r src/leveldb src/secp256k1
eautoreconf
}
src_configure() {
econf \
--disable-ccache \
--disable-static \
--without-miniupnpc \
$(use_enable test tests) \
--disable-wallet \
--with-system-leveldb \
--without-daemon \
--without-utils \
--without-gui
}
src_test() {
emake check
}
src_install() {
emake DESTDIR="${D}" install
prune_libtool_files
dodoc doc/README.md doc/release-notes.md
}
|