Diff libbitcoinconsensus-22.0 with a libbitcoinconsensus-24.0.1

/usr/portage/net-libs/libbitcoinconsensus/libbitcoinconsensus-24.0.1.ebuild 2023-10-09 14:52:34.476368476 +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 6
inherit autotools flag-o-matic
7 7

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

  
12 8
DESCRIPTION="Bitcoin Core consensus library"
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}/bitcoin-${PV}.tar.gz
17 12
"
13
S="${WORKDIR}"/bitcoin-${PV}
18 14

  
19 15
LICENSE="MIT"
20 16
SLOT="0"
21
KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
17
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
22 18
IUSE="+asm knots"
19
# Tries to run test/test_bitcoin which isn't built as part of this package
20
RESTRICT="test"
23 21

  
24
RDEPEND="
25
	>dev-libs/libsecp256k1-0.1_pre20200911:=[recovery,schnorr]
26
"
22
RDEPEND=">=dev-libs/libsecp256k1-0.2.0:=[recovery,schnorr]"
27 23
DEPEND="${RDEPEND}"
28
BDEPEND="
29
	>=sys-devel/automake-1.13
30
	|| ( >=sys-devel/gcc-7[cxx] >=sys-devel/clang-5 )
31
"
32 24

  
33 25
DOCS=( doc/bips.md doc/release-notes.md doc/shared-libraries.md )
34 26

  
35
S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}"
27
PATCHES=(
28
	"${FILESDIR}"/24.0.1-syslibs.patch
29
)
36 30

  
37 31
pkg_pretend() {
38
	if use knots; then
39
		elog "You are building ${PN} from Bitcoin Knots."
40
		elog "For more information, see:"
41
		elog "https://bitcoinknots.org/files/22.x/${KNOTS_PV}/${KNOTS_P}.desc.html"
42
	else
43
		elog "You are building ${PN} from Bitcoin Core."
44
		elog "For more information, see:"
45
		elog "https://bitcoincore.org/en/2021/09/13/release-${PV}/"
46
	fi
32
	elog "You are building ${PN} from Bitcoin Core."
33
	elog "For more information, see:"
34
	elog "https://bitcoincore.org/en/releases/${PV}/"
35

  
47 36
	if has_version "<${CATEGORY}/${PN}-0.21.1" ; then
48 37
		ewarn "CAUTION: BITCOIN PROTOCOL CHANGE INCLUDED"
49 38
		ewarn "This release adds enforcement of the Taproot protocol change to the Bitcoin"
......
63 52
}
64 53

  
65 54
src_prepare() {
66
	local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/"
67

  
68
	eapply "${knots_patchdir}/${KNOTS_P}_p1-syslibs.patch"
69

  
70
	if use knots; then
71
		eapply "${knots_patchdir}/${KNOTS_P}_p2-fixes.patch"
72
		eapply "${knots_patchdir}/${KNOTS_P}_p3-features.patch"
73
		eapply "${knots_patchdir}/${KNOTS_P}_p4-branding.patch"
74
		eapply "${knots_patchdir}/${KNOTS_P}_p5-ts.patch"
75
	fi
76

  
77 55
	default
78 56

  
79 57
	eautoreconf
58

  
80 59
	rm -r src/leveldb src/secp256k1 || die
81 60
}
82 61

  
83 62
src_configure() {
84
	local my_econf=(
63
	local myeconfargs=(
85 64
		$(use_enable asm)
86 65
		--without-qtdbus
87 66
		--disable-ebpf
......
102 81
		--disable-fuzz
103 82
		--disable-fuzz-binary
104 83
		--disable-ccache
105
		--disable-static
106 84
		--with-system-libsecp256k1
107 85
	)
108
	econf "${my_econf[@]}"
86

  
87
	econf "${myeconfargs[@]}"
109 88
}
110 89

  
111 90
src_install() {
112 91
	default
113 92

  
114
	find "${D}" -name '*.la' -delete || die
93
	find "${ED}" -name '*.la' -delete || die
115 94
}
Thank you!