mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
dev-libs/xmlsec: Sync with Gentoo
It's from Gentoo commit 3f6205982f2e3f6fcfde59867d39fe5bd339744f.
This commit is contained in:
parent
79593bf5c8
commit
200a4f4c5b
25
sdk_container/src/third_party/portage-stable/dev-libs/xmlsec/files/xmlsec-1.3.3-typo-fix.patch
vendored
Normal file
25
sdk_container/src/third_party/portage-stable/dev-libs/xmlsec/files/xmlsec-1.3.3-typo-fix.patch
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
https://github.com/lsh123/xmlsec/commit/8262167fbc56bce353949b9b18e01af7f7331e76
|
||||
|
||||
From 8262167fbc56bce353949b9b18e01af7f7331e76 Mon Sep 17 00:00:00 2001
|
||||
From: Antoine Martin <dev@ayakael.net>
|
||||
Date: Sun, 14 Jan 2024 09:13:11 -0500
|
||||
Subject: [PATCH] Fix typo with xmlSecKeyDataEcGetKlass in app.h include (#755)
|
||||
|
||||
---
|
||||
include/xmlsec/app.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/xmlsec/app.h b/include/xmlsec/app.h
|
||||
index 4fe2a744..324561b9 100644
|
||||
--- a/include/xmlsec/app.h
|
||||
+++ b/include/xmlsec/app.h
|
||||
@@ -85,7 +85,7 @@ XMLSEC_EXPORT xmlSecKeyDataId xmlSecKeyDataDsaGetKlass(void);
|
||||
*
|
||||
* The EC key klass.
|
||||
*/
|
||||
-#define xmlSecKeyDataEcId xmlSecKeyDataEcetKlass()
|
||||
+#define xmlSecKeyDataEcId xmlSecKeyDataEcGetKlass()
|
||||
XMLSEC_EXPORT xmlSecKeyDataId xmlSecKeyDataEcGetKlass(void);
|
||||
/**
|
||||
* xmlSecKeyDataGost2001Id:
|
||||
|
94
sdk_container/src/third_party/portage-stable/dev-libs/xmlsec/xmlsec-1.3.3-r1.ebuild
vendored
Normal file
94
sdk_container/src/third_party/portage-stable/dev-libs/xmlsec/xmlsec-1.3.3-r1.ebuild
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Command line tool for signing, verifying, encrypting and decrypting XML"
|
||||
HOMEPAGE="https://www.aleksey.com/xmlsec"
|
||||
SRC_URI="https://www.aleksey.com/xmlsec/download/${PN}1-${PV}.tar.gz"
|
||||
S="${WORKDIR}/${PN}1-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
# Upstream consider major version bumps to be changes in either X or Y in X.Y.Z
|
||||
SLOT="0/$(ver_cut 1-2)"
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="doc gcrypt gnutls http nss +openssl static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
|| ( gnutls nss openssl )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libxml2-2.7.4
|
||||
>=dev-libs/libxslt-1.0.20
|
||||
dev-libs/libltdl
|
||||
gcrypt? ( >=dev-libs/libgcrypt-1.4.0:= )
|
||||
gnutls? ( >=net-libs/gnutls-3.6.13:= )
|
||||
nss? (
|
||||
>=dev-libs/nspr-4.4.1
|
||||
>=dev-libs/nss-3.9
|
||||
)
|
||||
openssl? ( dev-libs/openssl:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
nss? (
|
||||
>=dev-libs/nss-3.9[utils]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.3.0-optimisation.patch
|
||||
"${FILESDIR}"/${PN}-1.3.3-typo-fix.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable doc docs)
|
||||
$(use_enable static-libs static)
|
||||
$(use_with gcrypt)
|
||||
$(use_with gnutls)
|
||||
$(use_with nss nspr)
|
||||
$(use_with nss)
|
||||
$(use_with openssl)
|
||||
|
||||
--disable-werror
|
||||
--enable-mans
|
||||
--enable-pkgconfig
|
||||
|
||||
--enable-concatkdf
|
||||
--enable-pbkdf2
|
||||
--enable-ec
|
||||
--enable-dh
|
||||
--enable-sha3
|
||||
|
||||
--enable-files
|
||||
$(use_enable http)
|
||||
--disable-ftp
|
||||
)
|
||||
|
||||
# Bash because of bug #721128
|
||||
CONFIG_SHELL="${BROOT}"/bin/bash econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# See https://github.com/lsh123/xmlsec/issues/280 for TZ=UTC
|
||||
TZ=UTC SHELL="${BROOT}"/bin/bash emake TMPFOLDER="${T}" check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user