Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: dev-libs/libgpg-error/
Date: Sat, 26 Dec 2020 21:22:54
Message-Id: 1609017762.1718c5c17973f9b9f025493f45f20a907053e812.sam@gentoo
1 commit: 1718c5c17973f9b9f025493f45f20a907053e812
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 26 21:22:33 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 26 21:22:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=1718c5c1
7
8 dev-libs/libgpg-error: bump to 1.41
9
10 Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-libs/libgpg-error/Manifest | 1 +
14 dev-libs/libgpg-error/libgpg-error-1.41.ebuild | 73 ++++++++++++++++++++++++++
15 2 files changed, 74 insertions(+)
16
17 diff --git a/dev-libs/libgpg-error/Manifest b/dev-libs/libgpg-error/Manifest
18 index e92517205e..5aae586e29 100644
19 --- a/dev-libs/libgpg-error/Manifest
20 +++ b/dev-libs/libgpg-error/Manifest
21 @@ -1 +1,2 @@
22 DIST libgpg-error-1.39.tar.bz2 961676 BLAKE2B 8753a9295ca57ba79142ffbc7fa01a986addcdd6a8860cf80c9e1bf9f6f9dfce874f804205a5cdd956e026eb006f2662110c63e7ed52c7a42ee0c45923ae52be SHA512 b28be183ac3d3920363558c4b5b2c24f9074a302799915cc076674bb349dcfb6f09160bec1d3fb62e04047c3ce432d345f36b0905100a88cc730b53d4eb78e42
23 +DIST libgpg-error-1.41.tar.bz2 967117 BLAKE2B 9dc95bc09f55915d904e0f956ecf9281615028b8b8d876dbc786b752068fefea56adfb5dd5db65bad656ab664d567e56541e44a584c7f8672c30537ed05c4db0 SHA512 578d1d8090b9f6e6cbe59d9aeebec7df81aae492f75ec343f8df530950d30866fa0a7903ca050bf7bf721413f7b2708abe34f7467e2b208cc1447ffc9bd5b9a5
24
25 diff --git a/dev-libs/libgpg-error/libgpg-error-1.41.ebuild b/dev-libs/libgpg-error/libgpg-error-1.41.ebuild
26 new file mode 100644
27 index 0000000000..3e31144be2
28 --- /dev/null
29 +++ b/dev-libs/libgpg-error/libgpg-error-1.41.ebuild
30 @@ -0,0 +1,73 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit autotools libtool multilib-minimal toolchain-funcs prefix
37 +
38 +DESCRIPTION="Contains error handling functions used by GnuPG software"
39 +HOMEPAGE="http://www.gnupg.org/related_software/libgpg-error"
40 +SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
41 +
42 +LICENSE="GPL-2 LGPL-2.1"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +IUSE="common-lisp nls"
46 +
47 +RDEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )"
48 +DEPEND="${RDEPEND}"
49 +BDEPEND="nls? ( sys-devel/gettext )"
50 +
51 +MULTILIB_CHOST_TOOLS=(
52 + /usr/bin/gpg-error-config
53 +)
54 +MULTILIB_WRAPPED_HEADERS=(
55 + /usr/include/gpg-error.h
56 + /usr/include/gpgrt.h
57 +)
58 +
59 +PATCHES=(
60 + "${FILESDIR}/${PN}-1.37-remove_broken_check.patch"
61 +)
62 +
63 +src_prepare() {
64 + default
65 +
66 + if use prefix ; then
67 + # don't hardcode /usr/xpg4/bin/sh as shell on Solaris
68 + sed -i -e 's/solaris\*/disabled/' configure.ac || die
69 + fi
70 +
71 + # only necessary for as long as we run eautoreconf, configure.ac
72 + # uses ./autogen.sh to generate PACKAGE_VERSION, but autogen.sh is
73 + # not a pure /bin/sh script, so it fails on some hosts
74 + hprefixify -w 1 autogen.sh
75 + eautoreconf
76 +
77 + if use prefix ; then
78 + # upstream seems not interested in trying to understand (#584330)
79 + # https://lists.gnupg.org/pipermail/gnupg-devel/2017-March/032671.html
80 + # again reported as https://dev.gnupg.org/T4474
81 + einfo "Forcing -no-undefined libtool flag ..."
82 + sed -i -e 's/\$(no_undefined)/-no-undefined/' src/Makefile.in
83 + eend $? || die
84 + fi
85 +}
86 +
87 +multilib_src_configure() {
88 + local myeconfargs=(
89 + $(multilib_is_native_abi || echo --disable-languages)
90 + $(use_enable common-lisp languages)
91 + $(use_enable nls)
92 + --disable-static
93 + --enable-threads
94 + CC_FOR_BUILD="$(tc-getBUILD_CC)"
95 + $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
96 + )
97 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
98 +}
99 +
100 +multilib_src_install_all() {
101 + einstalldocs
102 + find "${ED}" -type f -name '*.la' -delete || die
103 +}