Diff xmlsec-1.2.38 with a xmlsec-1.3.1

/usr/portage/dev-libs/xmlsec/xmlsec-1.3.1.ebuild 2023-10-09 14:52:29.772368357 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit autotools
7

  
6 8
DESCRIPTION="Command line tool for signing, verifying, encrypting and decrypting XML"
7 9
HOMEPAGE="https://www.aleksey.com/xmlsec"
8 10
SRC_URI="https://www.aleksey.com/xmlsec/download/${PN}1-${PV}.tar.gz"
9 11
S="${WORKDIR}/${PN}1-${PV}"
10 12

  
11 13
LICENSE="MIT"
12
SLOT="0"
13
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
14
IUSE="doc gcrypt gnutls nss +openssl static-libs test"
14
# Upstream consider major version bumps to be changes in either X or Y in X.Y.Z
15
SLOT="0/$(ver_cut 1-2)"
16
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc x86"
17
IUSE="doc gcrypt gnutls http nss +openssl static-libs test"
15 18
RESTRICT="!test? ( test )"
16 19
REQUIRED_USE="
17
	|| ( gcrypt gnutls nss openssl )
18
	gnutls? ( gcrypt )
20
	|| ( gnutls nss openssl )
19 21
"
20 22

  
21 23
RDEPEND="
22
	>=dev-libs/libxml2-2.7.4[ftp(+)]
24
	>=dev-libs/libxml2-2.7.4
23 25
	>=dev-libs/libxslt-1.0.20
24 26
	dev-libs/libltdl
25 27
	gcrypt? ( >=dev-libs/libgcrypt-1.4.0:= )
26
	gnutls? ( >=net-libs/gnutls-2.8.0:= )
28
	gnutls? ( >=net-libs/gnutls-3.6.13:= )
27 29
	nss? (
28 30
		>=dev-libs/nspr-4.4.1
29 31
		>=dev-libs/nss-3.9
30 32
	)
31
	openssl? (
32
		dev-libs/openssl:=
33
	)
33
	openssl? ( dev-libs/openssl:= )
34 34
"
35 35
DEPEND="${RDEPEND}"
36 36
BDEPEND="
......
43 43
"
44 44

  
45 45
PATCHES=(
46
	"${FILESDIR}"/${PN}-1.2.37-libressl.patch # bug #903001
46
	"${FILESDIR}"/${PN}-1.3.0-optimisation.patch
47 47
)
48 48

  
49
src_prepare() {
50
	default
51

  
52
	eautoreconf
53
}
54

  
49 55
src_configure() {
50
	# Bash because of bug #721128
51
	CONFIG_SHELL="${BROOT}"/bin/bash econf \
52
		$(use_enable doc docs) \
53
		$(use_enable static-libs static) \
54
		$(use_with gcrypt) \
55
		$(use_with gnutls) \
56
		$(use_with nss nspr) \
57
		$(use_with nss) \
58
		$(use_with openssl) \
59
		--enable-mans \
56
	local myeconfargs=(
57
		$(use_enable doc docs)
58
		$(use_enable static-libs static)
59
		$(use_with gcrypt)
60
		$(use_with gnutls)
61
		$(use_with nss nspr)
62
		$(use_with nss)
63
		$(use_with openssl)
64

  
65
		--disable-werror
66
		--enable-mans
60 67
		--enable-pkgconfig
68

  
69
		--enable-concatkdf
70
		--enable-pbkdf2
71
		--enable-ec
72
		--enable-dh
73
		--enable-sha3
74

  
75
		--enable-files
76
		$(use_enable http)
77
		--disable-ftp
78
	)
79

  
80
	# Bash because of bug #721128
81
	CONFIG_SHELL="${BROOT}"/bin/bash econf "${myeconfargs[@]}"
61 82
}
62 83

  
63 84
src_test() {
Thank you!