diff options
author | Sam James <sam@gentoo.org> | 2024-01-16 03:31:05 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-01-16 03:31:05 +0000 |
commit | 704a8da50a8f5aa190e785a77de16eb2cad378a7 (patch) | |
tree | 1eb5ce9253b9030059cb93f37ad8d9fdd3be369f /dev-libs | |
parent | net-libs/gupnp: disable py3.9 (diff) | |
download | gentoo-704a8da50a8f5aa190e785a77de16eb2cad378a7.tar.gz gentoo-704a8da50a8f5aa190e785a77de16eb2cad378a7.tar.bz2 gentoo-704a8da50a8f5aa190e785a77de16eb2cad378a7.zip |
dev-libs/xmlsec: fix typo in header
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/xmlsec/files/xmlsec-1.3.3-typo-fix.patch | 25 | ||||
-rw-r--r-- | dev-libs/xmlsec/xmlsec-1.3.3-r1.ebuild | 94 |
2 files changed, 119 insertions, 0 deletions
diff --git a/dev-libs/xmlsec/files/xmlsec-1.3.3-typo-fix.patch b/dev-libs/xmlsec/files/xmlsec-1.3.3-typo-fix.patch new file mode 100644 index 000000000000..db3eae6c484a --- /dev/null +++ b/dev-libs/xmlsec/files/xmlsec-1.3.3-typo-fix.patch @@ -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: + diff --git a/dev-libs/xmlsec/xmlsec-1.3.3-r1.ebuild b/dev-libs/xmlsec/xmlsec-1.3.3-r1.ebuild new file mode 100644 index 000000000000..38c3cdc3af96 --- /dev/null +++ b/dev-libs/xmlsec/xmlsec-1.3.3-r1.ebuild @@ -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 +} |