1 |
commit: 1ac4a0045bf47c39f6bef2224004a11544b74998 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 10 22:05:25 2021 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 11 14:41:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ac4a004 |
7 |
|
8 |
net-p2p/bitcoin-qt: Bump to 0.21.1 |
9 |
|
10 |
Signed-off-by: Luke Dashjr <luke-jr+git <AT> utopios.org> |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
net-p2p/bitcoin-qt/Manifest | 2 + |
14 |
net-p2p/bitcoin-qt/bitcoin-qt-0.21.1.ebuild | 206 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 208 insertions(+) |
16 |
|
17 |
diff --git a/net-p2p/bitcoin-qt/Manifest b/net-p2p/bitcoin-qt/Manifest |
18 |
index 59fde979bce..01ce4fdf2a1 100644 |
19 |
--- a/net-p2p/bitcoin-qt/Manifest |
20 |
+++ b/net-p2p/bitcoin-qt/Manifest |
21 |
@@ -1,4 +1,6 @@ |
22 |
DIST bitcoin-0.20.1.knots20200815.patches.tar.xz 413244 BLAKE2B bc8fd6bfe0454439ae514086ea3e728df4f1ba069d33f79b047049a1a4d18543334217f25607b738f7f2d1245f64e5289aed00473c94edf5d660e0953e4d6b93 SHA512 98468f4f22d5b9d35c616796aa5a8fda20f775606f0cd4927b3b822dd5afd0fc208c23136306f79d01dbfd532b14a5905a8fb60a2d171d5022d2008772cf7b58 |
23 |
DIST bitcoin-0.21.0.knots20210130.patches.tar.xz 505040 BLAKE2B c8999de4158b8781bba6ad014ae14859f1e0bab3080c59a18910cf7447eb56da4b17a0e1843fdd3669d22636df9e4ddcc4526e4293bfd86dc884983a29a5f76c SHA512 7ee27da3d26be0e93ecddff7bb21ef1746bcdb07f9a2b0ea48065367b4c44391e974e04a21e511c05fca8f55971ab8e3c3ac01a3775cc52a537d9e10966d9871 |
24 |
+DIST bitcoin-0.21.1.knots20210629.patches.tar.xz 623916 BLAKE2B c6b669270b7f9718c8452a1c28280b6005edee299a3ab8d754dbf722d021576871ddce200342bf157dd5158c058686aa3dde913970779d8c2e560b8df772821c SHA512 ba058554453efc7ad036b8cc945ba403a6bd4e30dae0fbcee7fbe2f0ce90854a867fe49b0522595c081930d406bdf56987982f403fc8299b3c776eea4672abae |
25 |
DIST bitcoin-v0.20.1.tar.gz 6986090 BLAKE2B ef0e6c424bcb7ffe9a2461e60499cebdfcd13faa794d534b4c508a61fa218dd58e64c9088584ea658736deeadc0306fbdf08daa3c395dac3d8f096a08ba42262 SHA512 73a103d4192eb12abed5aa84e9c7999d57e4da37f32e54107ab9f4297a29af64c0c56930674559073bed360f794d87ba5eb9e1ce4d1bd03402d56937490fa16e |
26 |
DIST bitcoin-v0.21.0.tar.gz 7533957 BLAKE2B 01247cbb9fca2381a8c08ab1c88c479c640963caef22e4207aab46b05813dbf2a5286ac9e98132fb34db0e9ac6c18c79e45a89de166f5c6d480d8ac6e14ecca2 SHA512 c58187996932b0151432a65885b7e8a7b216fb1ab0576fb7d4b5e9620d957594b05e181153e2e0e50bcd5ce764861ec11019ffbb1095d3e704f441e61ac6a04f |
27 |
+DIST bitcoin-v0.21.1.tar.gz 7635092 BLAKE2B 83610537c3cf6a11a1f59b92085b7a99fb22013ead1c6dce0c8f3182b69b11be6801f1f3b35bf31d72cfc15c76b6a69f1e6f3b754ff179565c0a687d16a35a48 SHA512 648739df8f360609d7b562e0bbfb3ab852eb6c538aa33ef56f71e7652ee766648ee8782aadeed1def1f2174d3330bbbdf9b1eee5090ca292e8d4a46c1b7f5c46 |
28 |
|
29 |
diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-0.21.1.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-0.21.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..71f88ca3d98 |
32 |
--- /dev/null |
33 |
+++ b/net-p2p/bitcoin-qt/bitcoin-qt-0.21.1.ebuild |
34 |
@@ -0,0 +1,206 @@ |
35 |
+# Copyright 1999-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+DB_VER="4.8" |
41 |
+inherit autotools bash-completion-r1 db-use desktop xdg-utils |
42 |
+ |
43 |
+BITCOINCORE_COMMITHASH="194b9b8792d9b0798fdb570b79fa51f1d1f5ebaf" |
44 |
+KNOTS_PV="${PV}.knots20210629" |
45 |
+KNOTS_P="bitcoin-${KNOTS_PV}" |
46 |
+ |
47 |
+DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency" |
48 |
+HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" |
49 |
+SRC_URI=" |
50 |
+ https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz |
51 |
+ https://bitcoinknots.org/files/0.21.x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz |
52 |
+" |
53 |
+ |
54 |
+LICENSE="MIT" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
57 |
+ |
58 |
+IUSE="+asm +berkdb dbus kde knots +qrcode sqlite +system-leveldb test upnp +wallet zeromq" |
59 |
+RESTRICT="!test? ( test )" |
60 |
+ |
61 |
+REQUIRED_USE=" |
62 |
+ sqlite? ( wallet ) |
63 |
+ berkdb? ( wallet ) |
64 |
+ wallet? ( || ( berkdb sqlite ) ) |
65 |
+" |
66 |
+RDEPEND=" |
67 |
+ >=dev-libs/boost-1.58.0:=[threads(+)] |
68 |
+ >dev-libs/libsecp256k1-0.1_pre20200911:=[recovery,schnorr] |
69 |
+ >=dev-libs/univalue-1.0.4:= |
70 |
+ dev-qt/qtcore:5 |
71 |
+ dev-qt/qtgui:5 |
72 |
+ dev-qt/qtnetwork:5 |
73 |
+ dev-qt/qtwidgets:5 |
74 |
+ system-leveldb? ( virtual/bitcoin-leveldb ) |
75 |
+ dbus? ( dev-qt/qtdbus:5 ) |
76 |
+ dev-libs/libevent:= |
77 |
+ qrcode? ( |
78 |
+ media-gfx/qrencode:= |
79 |
+ ) |
80 |
+ sqlite? ( >=dev-db/sqlite-3.7.17:= ) |
81 |
+ upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) |
82 |
+ berkdb? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) |
83 |
+ zeromq? ( net-libs/zeromq:= ) |
84 |
+" |
85 |
+DEPEND="${RDEPEND}" |
86 |
+BDEPEND=" |
87 |
+ >=sys-devel/autoconf-2.69 |
88 |
+ >=sys-devel/automake-1.13 |
89 |
+ dev-qt/linguist-tools:5 |
90 |
+ knots? ( |
91 |
+ gnome-base/librsvg |
92 |
+ media-gfx/imagemagick[png] |
93 |
+ ) |
94 |
+" |
95 |
+ |
96 |
+DOCS=( |
97 |
+ doc/bips.md |
98 |
+ doc/bitcoin-conf.md |
99 |
+ doc/descriptors.md |
100 |
+ doc/files.md |
101 |
+ doc/JSON-RPC-interface.md |
102 |
+ doc/psbt.md |
103 |
+ doc/reduce-traffic.md |
104 |
+ doc/release-notes.md |
105 |
+ doc/REST-interface.md |
106 |
+ doc/tor.md |
107 |
+) |
108 |
+ |
109 |
+S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" |
110 |
+ |
111 |
+pkg_pretend() { |
112 |
+ if use knots; then |
113 |
+ elog "You are building ${PN} from Bitcoin Knots." |
114 |
+ elog "For more information, see:" |
115 |
+ elog "https://bitcoinknots.org/files/0.21.x/${KNOTS_PV}/${KNOTS_P}.desc.html" |
116 |
+ else |
117 |
+ elog "You are building ${PN} from Bitcoin Core." |
118 |
+ elog "For more information, see:" |
119 |
+ elog "https://bitcoincore.org/en/2021/05/01/release-${PV}/" |
120 |
+ fi |
121 |
+ elog |
122 |
+ elog "Replace By Fee policy is now always enabled by default: Your node will" |
123 |
+ elog "preferentially mine and relay transactions paying the highest fee, regardless" |
124 |
+ elog "of receive order. To disable RBF, set mempoolreplacement=never in bitcoin.conf" |
125 |
+ if has_version "<${CATEGORY}/${PN}-0.21.1" ; then |
126 |
+ ewarn "CAUTION: BITCOIN PROTOCOL CHANGE INCLUDED" |
127 |
+ ewarn "This release adds enforcement of the Taproot protocol change to the Bitcoin" |
128 |
+ ewarn "rules, beginning in November. Protocol changes require user consent to be" |
129 |
+ ewarn "effective, and if enforced inconsistently within the community may compromise" |
130 |
+ ewarn "your security or others! If you do not know what you are doing, learn more" |
131 |
+ ewarn "before November. (You must make a decision either way - simply not upgrading" |
132 |
+ ewarn "is insecure in all scenarios.)" |
133 |
+ ewarn "To learn more, see https://bitcointaproot.cc" |
134 |
+ fi |
135 |
+} |
136 |
+ |
137 |
+src_prepare() { |
138 |
+ sed -i 's/^\(complete -F _bitcoind \)bitcoind \(bitcoin-qt\)$/\1\2/' contrib/bitcoind.bash-completion || die |
139 |
+ |
140 |
+ # Save the generic icon for later |
141 |
+ cp src/qt/res/src/bitcoin.svg bitcoin128.svg || die |
142 |
+ |
143 |
+ local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" |
144 |
+ |
145 |
+ eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch" |
146 |
+ |
147 |
+ if use knots; then |
148 |
+ eapply "${knots_patchdir}/${KNOTS_P}.f.patch" |
149 |
+ eapply "${knots_patchdir}/${KNOTS_P}.branding.patch" |
150 |
+ eapply "${knots_patchdir}/${KNOTS_P}.ts.patch" |
151 |
+ fi |
152 |
+ |
153 |
+ eapply_user |
154 |
+ |
155 |
+ echo '#!/bin/true' >share/genbuild.sh || die |
156 |
+ mkdir -p src/obj || die |
157 |
+ echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die |
158 |
+ |
159 |
+ eautoreconf |
160 |
+ rm -r src/secp256k1 || die |
161 |
+ if use system-leveldb; then |
162 |
+ rm -r src/leveldb || die |
163 |
+ fi |
164 |
+} |
165 |
+ |
166 |
+src_configure() { |
167 |
+ local my_econf=( |
168 |
+ $(use_enable asm) |
169 |
+ $(use_with dbus qtdbus) |
170 |
+ $(use_with qrcode qrencode) |
171 |
+ $(use_with upnp miniupnpc) |
172 |
+ $(use_enable upnp upnp-default) |
173 |
+ $(use_enable test tests) |
174 |
+ $(use_enable wallet) |
175 |
+ $(use_enable zeromq zmq) |
176 |
+ --with-gui=qt5 |
177 |
+ --disable-util-cli |
178 |
+ --disable-util-tx |
179 |
+ --disable-util-wallet |
180 |
+ --disable-bench |
181 |
+ --without-libs |
182 |
+ --without-daemon |
183 |
+ --disable-fuzz |
184 |
+ --disable-ccache |
185 |
+ --disable-static |
186 |
+ $(use_with berkdb bdb) |
187 |
+ $(use_with sqlite) |
188 |
+ $(use_with system-leveldb) |
189 |
+ --with-system-libsecp256k1 |
190 |
+ --with-system-univalue |
191 |
+ ) |
192 |
+ econf "${my_econf[@]}" |
193 |
+} |
194 |
+ |
195 |
+src_install() { |
196 |
+ default |
197 |
+ |
198 |
+ if use test; then |
199 |
+ rm -f "${ED}/usr/bin/test_bitcoin" || die |
200 |
+ fi |
201 |
+ |
202 |
+ insinto /usr/share/icons/hicolor/scalable/apps/ |
203 |
+ doins bitcoin128.svg |
204 |
+ if use knots; then |
205 |
+ newins src/qt/res/src/bitcoin.svg bitcoinknots.svg |
206 |
+ fi |
207 |
+ |
208 |
+ cp "${FILESDIR}/org.bitcoin.bitcoin-qt.desktop" "${T}" || die |
209 |
+ if ! use knots; then |
210 |
+ sed -i 's/Knots/Core/;s/^\(Icon=\).*$/\1bitcoin128/' "${T}/org.bitcoin.bitcoin-qt.desktop" || die |
211 |
+ fi |
212 |
+ domenu "${T}/org.bitcoin.bitcoin-qt.desktop" |
213 |
+ |
214 |
+ use zeromq && dodoc doc/zmq.md |
215 |
+ |
216 |
+ newbashcomp contrib/bitcoind.bash-completion ${PN} |
217 |
+ |
218 |
+ if use kde; then |
219 |
+ insinto /usr/share/kservices5 |
220 |
+ doins "${FILESDIR}/bitcoin-qt.protocol" |
221 |
+ dosym "../../kservices5/bitcoin-qt.protocol" "/usr/share/kde4/services/bitcoin-qt.protocol" |
222 |
+ fi |
223 |
+} |
224 |
+ |
225 |
+update_caches() { |
226 |
+ xdg_icon_cache_update |
227 |
+ xdg_desktop_database_update |
228 |
+} |
229 |
+ |
230 |
+pkg_postinst() { |
231 |
+ update_caches |
232 |
+ |
233 |
+ elog "To have ${PN} automatically use Tor when it's running, be sure your" |
234 |
+ elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" |
235 |
+ elog "correctly, and add your user to the 'tor' user group." |
236 |
+} |
237 |
+ |
238 |
+pkg_postrm() { |
239 |
+ update_caches |
240 |
+} |