Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbsd/
Date: Thu, 20 Jul 2017 08:09:22
Message-Id: 1500538151.3d5bc46ead23be7844f4c9657d6642531c7d9eaf.polynomial-c@gentoo
1 commit: 3d5bc46ead23be7844f4c9657d6642531c7d9eaf
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 20 08:08:00 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 20 08:09:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d5bc46e
7
8 dev-libs/libbsd: BUmp to version 0.8.6
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 dev-libs/libbsd/Manifest | 1 +
13 dev-libs/libbsd/libbsd-0.8.6.ebuild | 40 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/dev-libs/libbsd/Manifest b/dev-libs/libbsd/Manifest
17 index e8fec63467c..520fdb7ceb8 100644
18 --- a/dev-libs/libbsd/Manifest
19 +++ b/dev-libs/libbsd/Manifest
20 @@ -2,3 +2,4 @@ DIST libbsd-0.8.2.tar.xz 344292 SHA256 b2f644cae94a6e2fe109449c20ad79a0f6ee4faec
21 DIST libbsd-0.8.3.tar.xz 356772 SHA256 934b634f4dfd865b6482650b8f522c70ae65c463529de8be907b53c89c3a34a8 SHA512 155b895d6bd62b180718d65a2cda7484946c492d52735a57b51005705dfe4528b6a72e8745acea47b01fe68e3bbbe3c036c5e9998a8d06fc79efe2b96a04767f WHIRLPOOL ab74a85813ea3308e7e4c53b7a46f4b93e4dff4d091964a6347f9960729e8eb4c8a2a0866938de508caf47caf9371f14499fcb0cc4aa30da06f501f4ccad9ef2
22 DIST libbsd-0.8.4.tar.xz 368396 SHA256 217af1642915703151ea6df077311633dd6ad7bfa3c7e07dd9329a93f642cab3 SHA512 83ca4733edad918a51096301480b702be96f064d7e731cc0870a78d6505574ac6f4edc101aae8b97ff430b2b3ae99e162660e7e3933d05caa14537e581926dc3 WHIRLPOOL 9e0cf7b0db53659d3cce19d2906092298da272dd52489f0820fc1df8a074c7f15e85b3fc4abf82e26b3c311df35ebdc96f06000f580458dc371eab0387d05a67
23 DIST libbsd-0.8.5.tar.xz 370680 SHA256 7647d024f41389305272c263da933a6f2a978213c1801592f47e68d83ac05b28 SHA512 bb122862ce8b789e530e9ca1a777d4219db2066ad89fe6028a833a5dc33ac0cd6b553ef5a0a42962d4a594c1f410304fd553b8fab583db539989ec7cca85baf0 WHIRLPOOL 6a621bf56ec6660cef7663dec62c0623d85931a56239f435e60bff7df8c4150ef378bff03801f67f798d0e640dc1dd061457a3b6df6a2f3f20a03b66fba14ebd
24 +DIST libbsd-0.8.6.tar.xz 371112 SHA256 467fbf9df1f49af11f7f686691057c8c0a7613ae5a870577bef9155de39f9687 SHA512 ece01ced324f840c2cee6321c7dcf97ff123d55ea9f203c1ce35e1b46643dc7b34ef6dc6c8d128252b36848624850b40823411cc96b99a66a401eb1e9d8cea6b WHIRLPOOL e4f9b84fb9c0953fd1732725b481d04e69b03ceeb35ec708bd4ecf549e01c3787323d18d7d0058c293ea31e6d135e734c73345c5af1dabed36a9551bdf5e3dc5
25
26 diff --git a/dev-libs/libbsd/libbsd-0.8.6.ebuild b/dev-libs/libbsd/libbsd-0.8.6.ebuild
27 new file mode 100644
28 index 00000000000..c9b85c118e9
29 --- /dev/null
30 +++ b/dev-libs/libbsd/libbsd-0.8.6.ebuild
31 @@ -0,0 +1,40 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +inherit multilib-minimal
37 +
38 +DESCRIPTION="An library to provide useful functions commonly found on BSD systems"
39 +HOMEPAGE="https://libbsd.freedesktop.org/wiki/"
40 +SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
41 +
42 +LICENSE="BSD BSD-2 BSD-4 ISC"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
45 +IUSE="static-libs"
46 +
47 +DEPEND=">=sys-kernel/linux-headers-3.17"
48 +RDEPEND=""
49 +
50 +pkg_setup() {
51 + local f="${EROOT}/usr/$(get_libdir)/${PN}.a"
52 + local m="You need to remove ${f} by hand or re-emerge sys-libs/glibc first."
53 + if ! has_version ${CATEGORY}/${PN}; then
54 + if [[ -e ${f} ]]; then
55 + eerror "${m}"
56 + die "${m}"
57 + fi
58 + fi
59 +}
60 +
61 +multilib_src_configure() {
62 + # The build system will install libbsd-ctor.a despite of USE="-static-libs"
63 + # which is correct, see:
64 + # https://cgit.freedesktop.org/libbsd/commit/?id=c5b959028734ca2281250c85773d9b5e1d259bc8
65 + ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
66 +}
67 +
68 +multilib_src_install() {
69 + emake DESTDIR="${D}" install
70 + find "${ED}" -name "*.la" -delete || die
71 +}