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: sys-libs/ldb/
Date: Mon, 02 Mar 2020 17:10:26
Message-Id: 1583169012.86348179c4b9a3ee2b340ee266209ff4f93ef658.polynomial-c@gentoo
1 commit: 86348179c4b9a3ee2b340ee266209ff4f93ef658
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 2 14:29:07 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 2 17:10:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86348179
7
8 sys-libs/ldb: Bump to version 2.1.1
9
10 Package-Manager: Portage-2.3.91, Repoman-2.3.20
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-libs/ldb/Manifest | 1 +
14 sys-libs/ldb/ldb-2.1.1.ebuild | 108 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 109 insertions(+)
16
17 diff --git a/sys-libs/ldb/Manifest b/sys-libs/ldb/Manifest
18 index 7f19b1f3ee0..c2fa1742e58 100644
19 --- a/sys-libs/ldb/Manifest
20 +++ b/sys-libs/ldb/Manifest
21 @@ -9,3 +9,4 @@ DIST ldb-1.5.6.tar.gz 1637795 BLAKE2B ac70f6dcaa1cd34bfdae8bf7844f1084282ea947a3
22 DIST ldb-1.6.3.tar.gz 1628668 BLAKE2B e9b6535eddf49496151e544f6879641c58a614f6de95463f7d0bf1953744953a5d55dde935d39b690d4c87e66914d8de0f0f5d4816a61fdecc81f8797584013e SHA512 a41b1fd2afa9a02dec37519f28e0e720b649c2a0aa6caebeb6697dbefdc6a055ef26500c5ccb0439b495d8c03218920b389fb9601d1cf5ca4d5046f192a5fefd
23 DIST ldb-2.0.7.tar.gz 1674063 BLAKE2B e61f7bf4cfefcb5c1bf735c19a00027ce20ef393b613117e5637f7680ba7fcab1798744505b0db88e8bbdab41e0264e0fd1e643110ec47864de02ef315bd0dfd SHA512 0b1bd5970421c32bee1209179eac60682d7304aca597bca11dd477903f59b53a2fbc7d9e1717809e9a8e550564a9ca9139dd1127b9f4cefcc2437d7c8050985a
24 DIST ldb-2.0.8.tar.gz 1676902 BLAKE2B b86b24a597bd81ae11382311f3b60aeb8aca78ddbe63413b9a8cdbbfa4f52b05a0d2e325d483e260b15aa396c2ad9f2828ac4b6214af86d891281d05b24125b5 SHA512 23a44968c9b4b57deb3f7b7b2466f140b4d8534a07a5e866545dd108c3d305ee4b0ea9bceec3177fcd09a4efcb4876a8283ca58b5c496fcf323b810666e1e79a
25 +DIST ldb-2.1.1.tar.gz 1671390 BLAKE2B a715cb17a2d113560d37e3e5d29adfe7db43f89388bb5a474388e3f7a6ae277ddb0ee4d09d45eed18a87085c70d98308d195b3867cc57259767cb61a50c8cc6e SHA512 dd87da0746790895c617108c64b718ab6e6e630f1e3269154b40fc0e5623199a4b132d41623ae00d5c263ce79c4d6da34f072a140bee91a59dd6934969315fc8
26
27 diff --git a/sys-libs/ldb/ldb-2.1.1.ebuild b/sys-libs/ldb/ldb-2.1.1.ebuild
28 new file mode 100644
29 index 00000000000..19553e018dd
30 --- /dev/null
31 +++ b/sys-libs/ldb/ldb-2.1.1.ebuild
32 @@ -0,0 +1,108 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +PYTHON_REQ_USE="threads(+)"
39 +
40 +inherit python-single-r1 waf-utils multilib-minimal eutils
41 +
42 +DESCRIPTION="An LDAP-like embedded database"
43 +HOMEPAGE="https://ldb.samba.org"
44 +SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="LGPL-3"
47 +SLOT="0/${PV}"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
49 +IUSE="doc +ldap +lmdb python test"
50 +
51 +RESTRICT="!test? ( test )"
52 +REQUIRED_USE="test? ( python )"
53 +
54 +RDEPEND="
55 + !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
56 + dev-libs/popt[${MULTILIB_USEDEP}]
57 + >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
58 + >=sys-libs/talloc-2.3.1[python?,${MULTILIB_USEDEP}]
59 + >=sys-libs/tdb-1.4.3[python?,${MULTILIB_USEDEP}]
60 + >=sys-libs/tevent-0.10.2[python(+)?,${MULTILIB_USEDEP}]
61 + ldap? ( net-nds/openldap )
62 + lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
63 + python? ( ${PYTHON_DEPS} )
64 +"
65 +
66 +DEPEND="dev-libs/libxslt
67 + doc? ( app-doc/doxygen )
68 + virtual/pkgconfig
69 + ${PYTHON_DEPS}
70 + ${RDEPEND}
71 +"
72 +
73 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
74 +
75 +WAF_BINARY="${S}/buildtools/bin/waf"
76 +
77 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
78 +
79 +PATCHES=(
80 + "${FILESDIR}"/${PN}-1.5.2-optional_packages.patch
81 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
82 +)
83 +
84 +pkg_setup() {
85 + python-single-r1_pkg_setup
86 +}
87 +
88 +src_prepare() {
89 + default
90 + multilib_copy_sources
91 +}
92 +
93 +multilib_src_configure() {
94 + local myconf=(
95 + $(usex ldap '' --disable-ldap)
96 + $(usex lmdb '' --without-ldb-lmdb)
97 + --disable-rpath
98 + --disable-rpath-install --bundled-libraries=NONE
99 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
100 + --builtin-libraries=NONE
101 + )
102 + if ! multilib_is_native_abi; then
103 + myconf+=( --disable-python )
104 + else
105 + use python || myconf+=( --disable-python )
106 + fi
107 + waf-utils_src_configure "${myconf[@]}"
108 +}
109 +
110 +multilib_src_compile() {
111 + waf-utils_src_compile
112 + multilib_is_native_abi && use doc && doxygen Doxyfile
113 +}
114 +
115 +multilib_src_test() {
116 + if multilib_is_native_abi; then
117 + WAF_MAKE=1 \
118 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
119 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
120 + waf test || die
121 + fi
122 +}
123 +
124 +multilib_src_install() {
125 + waf-utils_src_install
126 +
127 + if multilib_is_native_abi && use doc; then
128 + doman apidocs/man/man3/*.3
129 + docinto html
130 + dodoc -r apidocs/html/*
131 + fi
132 +}
133 +
134 +pkg_postinst() {
135 + if has_version sys-auth/sssd; then
136 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
137 + ewarn "so please try to rebuild it before reporting bugs."
138 + ewarn "See https://bugs.gentoo.org/404281"
139 + fi
140 +}