Diff bitcoin-cli-22.0 with a bitcoin-cli-24.0.1-r1

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

  
4
EAPI=7
4
EAPI=8
5 5

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

  
8
BITCOINCORE_COMMITHASH="a0988140b71485ad12c3c3a4a9573f7c21b1eff8"
9
KNOTS_PV="${PV}.knots20211108"
10
KNOTS_P="bitcoin-${KNOTS_PV}"
6
inherit autotools bash-completion-r1
11 7

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

  
19 15
LICENSE="MIT"
20 16
SLOT="0"
21
KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
22
IUSE="knots"
17
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
23 18

  
19
# TODO: Can we drop virtual/bitcoin-leveldb from some bitcoin-*?
20
# (only bitcoin-qt, bitcoind should need it?)
24 21
RDEPEND="
25 22
	dev-libs/boost:=
26 23
	dev-libs/libevent:=
27
	>=dev-libs/univalue-1.0.4:=
24
	virtual/bitcoin-leveldb
28 25
"
29 26
DEPEND="${RDEPEND}"
30
BDEPEND="
31
	>=sys-devel/automake-1.13
32
	|| ( >=sys-devel/gcc-7[cxx] >=sys-devel/clang-5 )
33
"
34 27

  
35
DOCS=(
36
	doc/release-notes.md
37
)
28
DOCS=( doc/release-notes.md )
38 29

  
39
S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}"
30
PATCHES=(
31
	"${FILESDIR}"/24.0.1-syslibs.patch
32
	"${FILESDIR}"/24.0.1-gcc13.patch
33
)
40 34

  
41 35
pkg_pretend() {
42
	if use knots; then
43
		elog "You are building ${PN} from Bitcoin Knots."
44
		elog "For more information, see:"
45
		elog "https://bitcoinknots.org/files/22.x/${KNOTS_PV}/${KNOTS_P}.desc.html"
46
	else
47
		elog "You are building ${PN} from Bitcoin Core."
48
		elog "For more information, see:"
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
56
	fi
36
	elog "You are building ${PN} from Bitcoin Core."
37
	elog "For more information, see:"
38
	elog "https://bitcoincore.org/en/releases/${PV}/"
57 39
}
58 40

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

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

  
64
	if use knots; then
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"
69
	fi
70

  
71 42
	default
72 43

  
73 44
	eautoreconf
45

  
74 46
	rm -r src/leveldb src/secp256k1 || die
75 47
}
76 48

  
77 49
src_configure() {
78
	local my_econf=(
50
	local myeconfargs=(
79 51
		--disable-asm
80 52
		--without-qtdbus
81 53
		--disable-ebpf
......
97 69
		--disable-fuzz-binary
98 70
		--disable-ccache
99 71
		--disable-static
100
		--with-system-univalue
101 72
	)
102
	econf "${my_econf[@]}"
73

  
74
	econf "${myeconfargs[@]}"
103 75
}
104 76

  
105 77
src_install() {
Thank you!