diff options
author | Sam James <sam@gentoo.org> | 2022-09-16 23:22:30 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-17 00:25:26 +0100 |
commit | 5174be3a8655a71ddf1205c560d34808ab8fd892 (patch) | |
tree | ae1949424e9ea1958989aa48b881716831208bd5 /dev-libs/libksba | |
parent | sys-fs/zfs: drop unused patch (diff) | |
download | gentoo-5174be3a8655a71ddf1205c560d34808ab8fd892.tar.gz gentoo-5174be3a8655a71ddf1205c560d34808ab8fd892.tar.bz2 gentoo-5174be3a8655a71ddf1205c560d34808ab8fd892.zip |
dev-libs/libksba: add 1.6.1
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libksba')
-rw-r--r-- | dev-libs/libksba/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libksba/libksba-1.6.1.ebuild | 48 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-libs/libksba/Manifest b/dev-libs/libksba/Manifest index 09bdf24d3921..0672c54ff422 100644 --- a/dev-libs/libksba/Manifest +++ b/dev-libs/libksba/Manifest @@ -1 +1,3 @@ DIST libksba-1.6.0.tar.bz2 662120 BLAKE2B 59bee23f764ab3e0f79fae6074ffe568845b6089ff29b8c5112973490ff5e1436834d5d0b50954ba9fbd6be655f47043a6345181c5c7e552322ceb331d030780 SHA512 a7c76d41dfd8ec6383ac2de3c53848cd9f066b538f6f3cd43175e3c8095df51b96d0a24a573481c0c4856b09b7c224e2b562d88f5c0801e7acfb582ea2739c2b +DIST libksba-1.6.1.tar.bz2 667546 BLAKE2B 6fad243c8eace31188264515cfe146afdfe9155ded571614dc1a9a8e2e357cb301d471cdbd084e1db59e888ed4eea7270755723c98c5bd7bb6ef857aedf4cd75 SHA512 cb1113204ce5a3344103e03c541238bfddf40b79579cf97b5707c03b064afcda362db16467739afe8342e5bd42dd367b6f9e51f46ef8de1126293773d23b7cf4 +DIST libksba-1.6.1.tar.bz2.sig 119 BLAKE2B e80f6706a81b927cb2dcce5def046d5395668b078f6da605476943446607aae580dc775aa21fa11f29b4ce7c7abaa09462e702610b0976eb5fc633c741d8dbed SHA512 574e2cb49c47fa6ac62f30a5b6c06b636d12ec0c1fba02ef0cbb8e50225143925ee9ebb9b4c3112a5f470a62cc2b01687d93ee0037235297c94fdf7ef63fa704 diff --git a/dev-libs/libksba/libksba-1.6.1.ebuild b/dev-libs/libksba/libksba-1.6.1.ebuild new file mode 100644 index 000000000000..6a9a5c5f0e56 --- /dev/null +++ b/dev-libs/libksba/libksba-1.6.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc +inherit toolchain-funcs verify-sig + +DESCRIPTION="X.509 and CMS (PKCS#7) library" +HOMEPAGE="https://www.gnupg.org/related_software/libksba" +SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2" +SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )" + +LICENSE="LGPL-3+ GPL-2+ GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs" + +RDEPEND=">=dev-libs/libgpg-error-1.8" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/bison + verify-sig? ( sec-keys/openpgp-keys-gnupg ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.6.0-no-fgrep-ksba-config.patch +) + +src_configure() { + export CC_FOR_BUILD="$(tc-getBUILD_CC)" + + local myeconfargs=( + $(use_enable static-libs static) + + GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" + LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + # People need to use ksba-config for --cflags and --libs + find "${ED}" -type f -name '*.la' -delete || die +} |