1 |
commit: fd3e9e8753db850dea55dd56181fbd8114f2da72 |
2 |
Author: Luke Dashjr <luke-jr+git <AT> utopios <DOT> org> |
3 |
AuthorDate: Sun Dec 10 15:07:22 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 31 16:20:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd3e9e87 |
7 |
|
8 |
net-libs/libbitcoinconsensus: Bump to 0.15.1 |
9 |
|
10 |
net-libs/libbitcoinconsensus/Manifest | 2 + |
11 |
.../libbitcoinconsensus-0.15.1.ebuild | 99 ++++++++++++++++++++++ |
12 |
net-libs/libbitcoinconsensus/metadata.xml | 5 ++ |
13 |
3 files changed, 106 insertions(+) |
14 |
|
15 |
diff --git a/net-libs/libbitcoinconsensus/Manifest b/net-libs/libbitcoinconsensus/Manifest |
16 |
index 630397cdaec..fab4b03bf5e 100644 |
17 |
--- a/net-libs/libbitcoinconsensus/Manifest |
18 |
+++ b/net-libs/libbitcoinconsensus/Manifest |
19 |
@@ -1,4 +1,6 @@ |
20 |
DIST bitcoin-0.13.1.knots20161027.patches.tar.xz 386532 BLAKE2B 82ad8c1da3692f2d3789ffae3814791c0c8634c07325b0f4c0943d1d2bdc07937e8728e22923385976e51dca7d111f7d8319a947dd7117388bf15983f41a8f57 SHA512 de4fee50bb6fcf416f4d0d52283ae4b80fd06a544e9312808bec167b471bc1a20d6ded1ebba92cef937b2bd7ebae19c5c1153d6a10dad40cba4fb6c0a98b4fb6 |
21 |
DIST bitcoin-0.13.2.knots20170102.patches.tar.xz 434012 BLAKE2B 917f6a9bf5b38c557960b1ee2ba548d75eb1fef9ef6908364dfaa7ec8b075e157c303a4eec7ad74deb5cf7ab2ea97c4d800c6fe498d0552318e15fce1b3adf3d SHA512 a19b9d469ff03396375c6f97e3e1f7f24243518e4ca46390bc33debbe5c09dffc8ee8fff4d656b385e38ef0c70e46a474170fd377b8cb94d6cdc2ff58114b061 |
22 |
+DIST bitcoin-0.15.1.knots20171111.patches.tar.xz 443024 BLAKE2B 5010c8d0f6a0bc8cd22ca7d7c73d9e4e689e369f0ba39b59f62fa6b6af3dcf938dfc87d33d3fe595a6e54d99734277a34af068dc29a6e984c76d529fbbe2f383 SHA512 455fadeac6ad57be111104680ec6939d6bf235eb49cde89b9716d36f6914c255b1b69cdea459d89b1bbca56099e793be0c8d7aacf592a9d78495068297bb5890 |
23 |
DIST bitcoin-v0.13.1.tgz 5955845 BLAKE2B a86d155f44681aa93720c9620d823070224c547dd7c2a6c075f4c8dec5b0e93b28f12ec3fd8c8c97f3eddd20e8f5763df086be473ed155da9f71479c2ed74779 SHA512 396196fa5325b650c61b966820454712d7e6c3e7a61cb95bacab59a0b6257d113c60105393a2ad1c33623ae81026e15c7356433fd7bafe2888e6b961487259c3 |
24 |
DIST bitcoin-v0.13.2.tgz 6088472 BLAKE2B d6b13613d90d0abf33c937ec0cd003756c4984b95bd320f026c5867ba264cb1773d869bfbb170b2b6df6801eca34af71c5dbd3225b9baa5e94ec50ba22da3f54 SHA512 2c053f1f55a426499e50cbadfccfd7c47be25fd10bb8e3d21fb6f408261c5a0c35f2745891e0eeb0fe953428337e40b6dc730499fcd3ba465315d592352833ca |
25 |
+DIST bitcoin-v0.15.1.tar.gz 7550228 BLAKE2B 0cbb7d0e9d0e5e8eb33502a28289c3f9c86b7c531ed179f7e3e8b601a69a423fa736238a2caae890fd8850eb505533995e578e676860a4014922fbc238185ebb SHA512 a09b6cb64a1649d11e3fd6deeb13a07b1bf4bed504a2fc1c585919459ca8ac1af8e5ecc89dee487359e831a8f12625d54f408f95bb341033d6380b82c290c0d9 |
26 |
|
27 |
diff --git a/net-libs/libbitcoinconsensus/libbitcoinconsensus-0.15.1.ebuild b/net-libs/libbitcoinconsensus/libbitcoinconsensus-0.15.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..d83c3297cad |
30 |
--- /dev/null |
31 |
+++ b/net-libs/libbitcoinconsensus/libbitcoinconsensus-0.15.1.ebuild |
32 |
@@ -0,0 +1,99 @@ |
33 |
+# Copyright 2010-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit autotools |
39 |
+ |
40 |
+MyPV="${PV/_/}" |
41 |
+MyPN="bitcoin" |
42 |
+MyP="${MyPN}-${MyPV}" |
43 |
+BITCOINCORE_COMMITHASH="7b57bc998f334775b50ebc8ca5e78ca728db4c58" |
44 |
+KNOTS_PV="${PV}.knots20171111" |
45 |
+KNOTS_P="${MyPN}-${KNOTS_PV}" |
46 |
+ |
47 |
+IUSE="+asm knots libressl" |
48 |
+ |
49 |
+DESCRIPTION="Bitcoin Core consensus library" |
50 |
+HOMEPAGE="http://bitcoincore.org/ http://bitcoinknots.org/" |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~amd64-linux ~arm ~arm64 ~mips ~ppc ~x86 ~x86-linux" |
54 |
+ |
55 |
+SRC_URI=" |
56 |
+ https://github.com/${MyPN}/${MyPN}/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> ${MyPN}-v${PV}.tar.gz |
57 |
+ http://bitcoinknots.org/files/0.15.x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz |
58 |
+" |
59 |
+CORE_DESC="https://bitcoincore.org/en/2017/11/11/release-${PV}/" |
60 |
+KNOTS_DESC="http://bitcoinknots.org/files/0.15.x/${KNOTS_PV}/${KNOTS_P}.desc.html" |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ !libressl? ( dev-libs/openssl:0=[-bindist] ) |
64 |
+ libressl? ( dev-libs/libressl:0= ) |
65 |
+ >=dev-libs/libsecp256k1-0.0.0_pre20151118[recovery] |
66 |
+" |
67 |
+DEPEND="${RDEPEND}" |
68 |
+ |
69 |
+DOCS=( doc/bips.md doc/release-notes.md doc/shared-libraries.md ) |
70 |
+ |
71 |
+S="${WORKDIR}/${MyPN}-${BITCOINCORE_COMMITHASH}" |
72 |
+ |
73 |
+pkg_pretend() { |
74 |
+ if use knots; then |
75 |
+ einfo "You are building ${PN} from Bitcoin Knots." |
76 |
+ einfo "For more information, see ${KNOTS_DESC}" |
77 |
+ else |
78 |
+ einfo "You are building ${PN} from Bitcoin Core." |
79 |
+ einfo "For more information, see ${CORE_DESC}" |
80 |
+ fi |
81 |
+} |
82 |
+ |
83 |
+KNOTS_PATCH() { echo "${WORKDIR}/${KNOTS_P}.patches/${KNOTS_P}.$@.patch"; } |
84 |
+ |
85 |
+src_prepare() { |
86 |
+ eapply "$(KNOTS_PATCH syslibs)" |
87 |
+ |
88 |
+ if use knots; then |
89 |
+ eapply "$(KNOTS_PATCH f)" |
90 |
+ eapply "$(KNOTS_PATCH branding)" |
91 |
+ eapply "$(KNOTS_PATCH ts)" |
92 |
+ fi |
93 |
+ |
94 |
+ eapply_user |
95 |
+ |
96 |
+ echo '#!/bin/true' >share/genbuild.sh || die |
97 |
+ mkdir -p src/obj || die |
98 |
+ echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die |
99 |
+ |
100 |
+ eautoreconf |
101 |
+ rm -r src/leveldb src/secp256k1 || die |
102 |
+} |
103 |
+ |
104 |
+src_configure() { |
105 |
+ local my_econf=( |
106 |
+ $(use_enable asm experimental-asm) |
107 |
+ --without-qtdbus |
108 |
+ --without-libevent |
109 |
+ --without-qrencode |
110 |
+ --without-miniupnpc |
111 |
+ --disable-tests |
112 |
+ --disable-wallet |
113 |
+ --disable-zmq |
114 |
+ --with-libs |
115 |
+ --disable-util-cli |
116 |
+ --disable-util-tx |
117 |
+ --disable-bench |
118 |
+ --without-daemon |
119 |
+ --without-gui |
120 |
+ --disable-ccache |
121 |
+ --disable-static |
122 |
+ --with-system-libsecp256k1 |
123 |
+ ) |
124 |
+ econf "${my_econf[@]}" |
125 |
+} |
126 |
+ |
127 |
+src_install() { |
128 |
+ default |
129 |
+ |
130 |
+ find "${D}" -name '*.la' -delete || die |
131 |
+} |
132 |
|
133 |
diff --git a/net-libs/libbitcoinconsensus/metadata.xml b/net-libs/libbitcoinconsensus/metadata.xml |
134 |
index 54ddf8fd823..946f87b1e8e 100644 |
135 |
--- a/net-libs/libbitcoinconsensus/metadata.xml |
136 |
+++ b/net-libs/libbitcoinconsensus/metadata.xml |
137 |
@@ -9,7 +9,12 @@ |
138 |
<email>proxy-maint@g.o</email> |
139 |
<name>Proxy Maintainers</name> |
140 |
</maintainer> |
141 |
+ <use> |
142 |
+ <flag name="asm">Enable assembly for optimization</flag> |
143 |
+ <flag name="knots">Build enhanced Bitcoin Knots version, rather than Bitcoin Core</flag> |
144 |
+ </use> |
145 |
<upstream> |
146 |
<remote-id type="github">bitcoin/bitcoin</remote-id> |
147 |
+ <remote-id type="github">bitcoinknots/bitcoin</remote-id> |
148 |
</upstream> |
149 |
</pkgmetadata> |