Сравнение bitcoin-cli-0.21.0 с bitcoin-cli-22.0

/usr/portage/net-p2p/bitcoin-cli/bitcoin-cli-22.0.ebuild 2023-10-09 14:52:34.736368482 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6
inherit autotools bash-completion-r1
6
inherit autotools bash-completion-r1 flag-o-matic
7 7

  
8
BITCOINCORE_COMMITHASH="95ea54ba089610019a74c1176a2c7c0dba144b1c"
9
KNOTS_PV="${PV}.knots20210130"
8
BITCOINCORE_COMMITHASH="a0988140b71485ad12c3c3a4a9573f7c21b1eff8"
9
KNOTS_PV="${PV}.knots20211108"
10 10
KNOTS_P="bitcoin-${KNOTS_PV}"
11 11

  
12 12
DESCRIPTION="Command-line JSON-RPC client specifically for interfacing with bitcoind"
13 13
HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/"
14 14
SRC_URI="
15 15
	https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz
16
	https://bitcoinknots.org/files/$(ver_cut 1-2).x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz
16
	https://bitcoinknots.org/files/$(ver_cut 1).x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz
17 17
"
18 18

  
19 19
LICENSE="MIT"
......
21 21
KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
22 22
IUSE="knots"
23 23

  
24
DEPEND="
24
RDEPEND="
25 25
	dev-libs/boost:=
26 26
	dev-libs/libevent:=
27 27
	>=dev-libs/univalue-1.0.4:=
28 28
"
29
RDEPEND="${DEPEND}"
29
DEPEND="${RDEPEND}"
30 30
BDEPEND="
31
	>=sys-devel/autoconf-2.69
32 31
	>=sys-devel/automake-1.13
32
	|| ( >=sys-devel/gcc-7[cxx] >=sys-devel/clang-5 )
33 33
"
34 34

  
35 35
DOCS=(
......
42 42
	if use knots; then
43 43
		elog "You are building ${PN} from Bitcoin Knots."
44 44
		elog "For more information, see:"
45
		elog "https://bitcoinknots.org/files/0.21.x/${KNOTS_PV}/${KNOTS_P}.desc.html"
45
		elog "https://bitcoinknots.org/files/22.x/${KNOTS_PV}/${KNOTS_P}.desc.html"
46 46
	else
47 47
		elog "You are building ${PN} from Bitcoin Core."
48 48
		elog "For more information, see:"
49
		elog "https://bitcoincore.org/en/2021/01/14/release-${PV}/"
49
		elog "https://bitcoincore.org/en/2021/09/13/release-${PV}/"
50
	fi
51

  
52
	if [[ ${MERGE_TYPE} != "binary" ]] ; then
53
		if ! test-flag-CXX -std=c++17 ; then
54
			die "Building ${CATEGORY}/${P} requires at least GCC 7 or Clang 5"
55
		fi
50 56
	fi
51 57
}
52 58

  
53 59
src_prepare() {
54 60
	local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/"
55 61

  
56
	eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch"
62
	eapply "${knots_patchdir}/${KNOTS_P}_p1-syslibs.patch"
57 63

  
58 64
	if use knots; then
59
		eapply "${knots_patchdir}/${KNOTS_P}.f.patch"
60
		eapply "${knots_patchdir}/${KNOTS_P}.branding.patch"
61
		eapply "${knots_patchdir}/${KNOTS_P}.ts.patch"
65
		eapply "${knots_patchdir}/${KNOTS_P}_p2-fixes.patch"
66
		eapply "${knots_patchdir}/${KNOTS_P}_p3-features.patch"
67
		eapply "${knots_patchdir}/${KNOTS_P}_p4-branding.patch"
68
		eapply "${knots_patchdir}/${KNOTS_P}_p5-ts.patch"
62 69
	fi
63 70

  
64
	eapply_user
65

  
66
	echo '#!/bin/true' >share/genbuild.sh || die
67
	mkdir -p src/obj || die
68
	echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die
71
	default
69 72

  
70 73
	eautoreconf
71 74
	rm -r src/leveldb src/secp256k1 || die
......
75 78
	local my_econf=(
76 79
		--disable-asm
77 80
		--without-qtdbus
81
		--disable-ebpf
82
		--without-natpmp
78 83
		--without-qrencode
79 84
		--without-miniupnpc
80 85
		--disable-tests
......
82 87
		--disable-zmq
83 88
		--enable-util-cli
84 89
		--disable-util-tx
90
		--disable-util-util
85 91
		--disable-util-wallet
86 92
		--disable-bench
87 93
		--without-libs
88 94
		--without-daemon
89 95
		--without-gui
90 96
		--disable-fuzz
97
		--disable-fuzz-binary
91 98
		--disable-ccache
92 99
		--disable-static
93 100
		--with-system-univalue
Спасибо!