dev-libs/libgpg-error: add 1.60

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-05-01 19:54:16 +01:00
parent 6a412687e8
commit 8faef7fb7a
2 changed files with 91 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST libgpg-error-1.59.tar.bz2 1123184 BLAKE2B 04dcdf411fbeecbfcb84c69949b42940793e725cf261eaac705677dc9071b395b0f5d38741f4d59411646cd45a1a8c44edbd2a8204a962e9948b1d7e223041f5 SHA512 86a2b4f94928e88aab23c84e0febb702453617edf3cddf45d0ed9ea817007085a6d132214fd2c855d816ec296514401157e89dab2790aea1edf5c376ea7e1f56
DIST libgpg-error-1.59.tar.bz2.sig 147 BLAKE2B f95040c1bbd4e5807a351e77c73a6901b706478ffcaa19c3fa58a6d561e17ea1764b88ae24ea7f0651a633fafc465bb0457a3279e3db4d899bf30e094e652728 SHA512 6d89fdbd0f1151861d19832d12ebc92ed3d4263d6a44223d0f5ff8d1026898cd99cced1b864217c0d7501255db2c5586a7ddfd0a7fd2b8f36fbb98e768cb3c83
DIST libgpg-error-1.60.tar.bz2 1125272 BLAKE2B 880cae5f57a679ee099fab48856d537dd35479795c2bb4ac20eb0a3612b0c2091487b64bcc94ea6520837f395ac5e2689c35a399499539bb319e1949a2a4e30b SHA512 e8beaa63ce56a34070b2e6b0978a9b91c5e8fa094a957c8dd6fec42cc02cbd47670b94fc19fdcec474358cc2ebb28f6fc21b3465e992fbd9c04eec576717b8ca
DIST libgpg-error-1.60.tar.bz2.sig 294 BLAKE2B cae601d770c52094f3cd38a278bf5941a127605e3e76039fafcc14444963143232377bdb50db55da756403a13608597f631c5788ae5d9e5a875567859f3b4a05 SHA512 108fa3238e2824eb69fdbeabffe95c0042d64dd1c98adf752ff0480b07c966cb96d750f62c511dd8b3f16d5c8153a03ad2021bfcc7eea1098d20d7c397634694

View File

@@ -0,0 +1,89 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Maintainers should:
# 1. Join the "Gentoo" project at https://dev.gnupg.org/project/view/27/
# 2. Subscribe to release tasks like https://dev.gnupg.org/T6159
# (find the one for the current release then subscribe to it +
# any subsequent ones linked within so you're covered for a while.)
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gnupg.asc
inherit libtool multilib-minimal toolchain-funcs verify-sig
DESCRIPTION="Contains error handling functions used by GnuPG software"
HOMEPAGE="https://www.gnupg.org/related_software/libgpg-error/"
SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
IUSE="common-lisp nls static-libs test"
RESTRICT="!test? ( test )"
RDEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )"
DEPEND="${RDEPEND}"
BDEPEND="
nls? ( sys-devel/gettext )
verify-sig? ( sec-keys/openpgp-keys-gnupg )
"
MULTILIB_WRAPPED_HEADERS=(
/usr/include/gpg-error.h
/usr/include/gpgrt.h
)
MULTILIB_CHOST_TOOLS=(
/usr/bin/gpg-error-config
/usr/bin/gpgrt-config
)
src_prepare() {
default
elibtoolize
if use prefix ; then
# don't hardcode /usr/xpg4/bin/sh as shell on Solaris
sed -i -e 's:INSTALLSHELLPATH=/usr/xpg4/bin/sh:INSTALLSHELLPATH=/bin/sh:g' configure.ac configure || die
fi
# This check breaks multilib
cat <<-EOF > src/gpg-error-config-test.sh.in || die
#!@INSTALLSHELLPATH@
exit 0
EOF
# only necessary for as long as we run eautoreconf, configure.ac
# uses ./autogen.sh to generate PACKAGE_VERSION, but autogen.sh is
# not a pure /bin/sh script, so it fails on some hosts
#sed -i -e "1s:.*:#\!${BASH}:" autogen.sh || die
#eautoreconf
}
multilib_src_configure() {
local myeconfargs=(
$(multilib_is_native_abi || echo --disable-languages)
$(use_enable common-lisp languages)
$(use_enable nls)
# required for sys-power/suspend[crypt], bug 751568
$(use_enable static-libs static)
$(use_enable test tests)
# See bug #699206 and its duplicates wrt gpgme-config
# Upstream no longer install this by default and we should
# seek to disable it at some point.
--enable-install-gpg-error-config
--enable-threads
CC_FOR_BUILD="$(tc-getBUILD_CC)"
$("${S}/configure" --help | grep -o -- '--without-.*-prefix')
)
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
}
multilib_src_install_all() {
einstalldocs
find "${ED}" -type f -name '*.la' -delete || die
}