1 |
commit: 6f8e62a68c25723d9cd1d1caa51c8c93458e4a3a |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 31 08:29:39 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 31 08:29:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f8e62a6 |
7 |
|
8 |
dev-libs/libbsd: Revbump to remove explicit_bzero.3 man page |
9 |
|
10 |
https://bugs.gentoo.org/617462 |
11 |
|
12 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
13 |
|
14 |
dev-libs/libbsd/libbsd-0.8.3-r1.ebuild | 42 ++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 42 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libbsd/libbsd-0.8.3-r1.ebuild b/dev-libs/libbsd/libbsd-0.8.3-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..6a09a948340 |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/libbsd/libbsd-0.8.3-r1.ebuild |
22 |
@@ -0,0 +1,42 @@ |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+inherit multilib-minimal |
28 |
+ |
29 |
+DESCRIPTION="An library to provide useful functions commonly found on BSD systems" |
30 |
+HOMEPAGE="https://libbsd.freedesktop.org/wiki/" |
31 |
+SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz" |
32 |
+ |
33 |
+LICENSE="BSD BSD-2 BSD-4 ISC" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
36 |
+IUSE="static-libs" |
37 |
+ |
38 |
+DEPEND=">=sys-kernel/linux-headers-3.17" |
39 |
+RDEPEND="" |
40 |
+ |
41 |
+pkg_setup() { |
42 |
+ local f="${EROOT}/usr/$(get_libdir)/${PN}.a" |
43 |
+ local m="You need to remove ${f} by hand or re-emerge sys-libs/glibc first." |
44 |
+ if ! has_version ${CATEGORY}/${PN}; then |
45 |
+ if [[ -e ${f} ]]; then |
46 |
+ eerror "${m}" |
47 |
+ die "${m}" |
48 |
+ fi |
49 |
+ fi |
50 |
+} |
51 |
+ |
52 |
+multilib_src_configure() { |
53 |
+ # The build system will install libbsd-ctor.a despite of USE="-static-libs" |
54 |
+ # which is correct, see: |
55 |
+ # https://cgit.freedesktop.org/libbsd/commit/?id=c5b959028734ca2281250c85773d9b5e1d259bc8 |
56 |
+ ECONF_SOURCE="${S}" econf $(use_enable static-libs static) |
57 |
+} |
58 |
+ |
59 |
+multilib_src_install() { |
60 |
+ emake DESTDIR="${D}" install |
61 |
+ find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die |
62 |
+ |
63 |
+ rm "${ED%/}"/usr/share/man/man3/explicit_bzero.3 || die # 617462 |
64 |
+} |