Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbsd/
Date: Wed, 30 Mar 2022 23:22:04
Message-Id: 1648682509.b299a0c858c033e4f1bd16bbf2a90d937583076c.sam@gentoo
1 commit: b299a0c858c033e4f1bd16bbf2a90d937583076c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 30 23:20:10 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 30 23:21:49 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b299a0c8
7
8 dev-libs/libbsd: add 0.11.6
9
10 Closes: https://bugs.gentoo.org/834341
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-libs/libbsd/Manifest | 2 ++
14 dev-libs/libbsd/libbsd-0.11.6.ebuild | 36 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 38 insertions(+)
16
17 diff --git a/dev-libs/libbsd/Manifest b/dev-libs/libbsd/Manifest
18 index c47ce9ccb000..dcf305de4709 100644
19 --- a/dev-libs/libbsd/Manifest
20 +++ b/dev-libs/libbsd/Manifest
21 @@ -1,2 +1,4 @@
22 DIST libbsd-0.11.3.tar.xz 399712 BLAKE2B 1af04b8fcbc0bfa59fba549639d61a33ac934fe7ee42b506d1b0452e0b836b0bfdd3d8739de90465be46fe6a9d326a2d11bcf72280aa19ccba81db5da6d63d89 SHA512 a7015ea1ffa3766b1a4690526a25231898ad8275149b31fb6801082450172249997c36165626d101ffce53b59767a46676eebc0806426922fe4e773a0376c1f5
23 DIST libbsd-0.11.5.tar.xz 409972 BLAKE2B 00c89ad1be351e7851538eac2744f5aef87b5937330d514d17af8a20a04bc6eab0e2bda61d0080da1d1439306b3b191ab68b4bc4cd8558ff0adfe402bfbf5b52 SHA512 c52c19eddd53630aca14f9f6221f7b84aa9cc798b4bb91e867822b161793313aab872ac1c0350d29312a72fee6e2061f3910ff918b724ec171d8c9de5837c841
24 +DIST libbsd-0.11.6.tar.xz 416600 BLAKE2B 23f7a5ea765af559e0e63946014650074d4d33f9e6655afbe6f08fd38265408a9fe3cccff0d0827d08817354deee92e4c6fd5536fd6f08857813e8847989d15c SHA512 9dbbfb84340fc69f59667241701d81d176439ce168f123344805898a269f7bd0e98abf8c7fc12d9bf539d1effb19424d93b647cc9120f693327e736d339e6075
25 +DIST libbsd-0.11.6.tar.xz.asc 833 BLAKE2B 895dee6d441da5e5b5b202dc2b5ea3635ba93352fdcd979fc3e58939dbd327b516b107d4e3c12d18dc824b6bc9793886e2a168add313d50884b1bd38d4f5f001 SHA512 29d77e53d251c641b00924c9c42b69b66eeb160ef0534e84a4ad1afd9009f87bda82f1b91d271efe37c676295add3fab01ce55aa6cd96aa0c5f34f9837b870cd
26
27 diff --git a/dev-libs/libbsd/libbsd-0.11.6.ebuild b/dev-libs/libbsd/libbsd-0.11.6.ebuild
28 new file mode 100644
29 index 000000000000..bee79d737b6b
30 --- /dev/null
31 +++ b/dev-libs/libbsd/libbsd-0.11.6.ebuild
32 @@ -0,0 +1,36 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/guillemjover.asc
39 +inherit multilib-minimal verify-sig
40 +
41 +DESCRIPTION="Library to provide useful functions commonly found on BSD systems"
42 +HOMEPAGE="https://libbsd.freedesktop.org/wiki/ https://gitlab.freedesktop.org/libbsd/libbsd"
43 +SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
44 +SRC_URI+=" verify-sig? ( https://${PN}.freedesktop.org/releases/${P}.tar.xz.asc )"
45 +
46 +LICENSE="BSD BSD-2 BSD-4 ISC"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="static-libs"
50 +
51 +RDEPEND="app-crypt/libmd[${MULTILIB_USEDEP}]"
52 +DEPEND="${RDEPEND}
53 + >=sys-kernel/linux-headers-3.17
54 +"
55 +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-guillemjover )"
56 +
57 +multilib_src_configure() {
58 + # The build system will install libbsd-ctor.a despite USE="-static-libs"
59 + # which is correct, see:
60 + # https://gitlab.freedesktop.org/libbsd/libbsd/commit/c5b959028734ca2281250c85773d9b5e1d259bc8
61 + ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
62 +}
63 +
64 +multilib_src_install() {
65 + emake DESTDIR="${D}" install
66 +
67 + find "${ED}" -type f -name "*.la" -delete || die
68 +}