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: Thu, 28 Feb 2019 11:51:11
Message-Id: 1551354657.4d23ff23a522d1dea46383f2330c8e091c5c182e.polynomial-c@gentoo
1 commit: 4d23ff23a522d1dea46383f2330c8e091c5c182e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 28 11:36:15 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 28 11:50:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d23ff23
7
8 sys-libs/ldb: Bump to versions 1.2.4, 1.3.8, 1.4.6, 1.5.4 and 1.6.2
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-libs/ldb/Manifest | 5 ++
14 sys-libs/ldb/ldb-1.2.4.ebuild | 103 +++++++++++++++++++++++++++++++++++++++++
15 sys-libs/ldb/ldb-1.3.8.ebuild | 103 +++++++++++++++++++++++++++++++++++++++++
16 sys-libs/ldb/ldb-1.4.6.ebuild | 105 ++++++++++++++++++++++++++++++++++++++++++
17 sys-libs/ldb/ldb-1.5.4.ebuild | 105 ++++++++++++++++++++++++++++++++++++++++++
18 sys-libs/ldb/ldb-1.6.2.ebuild | 105 ++++++++++++++++++++++++++++++++++++++++++
19 6 files changed, 526 insertions(+)
20
21 diff --git a/sys-libs/ldb/Manifest b/sys-libs/ldb/Manifest
22 index 787ca53d1e0..0771096aabc 100644
23 --- a/sys-libs/ldb/Manifest
24 +++ b/sys-libs/ldb/Manifest
25 @@ -2,8 +2,13 @@ DIST ldb-1.1.26.tar.gz 1262660 BLAKE2B 66dcc38eb97fe4357d06b301ed1de5cf868adc5f3
26 DIST ldb-1.1.29.tar.gz 1277551 BLAKE2B 449333d40073fd63d6d013ba0ae43fc3a0b8201948eabd440d164d182492002c1d92047d652105c2fb6a3e8383d4b75f45e38cc52efc5d9a0e2811113676203a SHA512 d37bbe84358e05d17483e2e963b8477da5ea351b855b454142c94af35f7987bede0f19faeaff17779efe04e3bb37c510437fcc59be99a17c826620fc25fd659c
27 DIST ldb-1.1.31.tar.gz 1337586 BLAKE2B 9454f91a621368cfc7cfdb709781653e947d63b275bb3b288049acb43ee3c02ae4f0be820ccf9e3bb32938d12598a91b7a6292b08c638ccfd59bd1be182f09c0 SHA512 49ccd57000cbcc6d828160f4457236b28853d766d641841471f61226156b6103fe563c43c950577b038ea3c0a54506bca94c640d3d5f912a3b8af95eb9ef2824
28 DIST ldb-1.2.3.tar.gz 1344513 BLAKE2B 941174d6e2c51319c8690a8d8a87bea443d4fa4d738bd13243b502fdc9d590ba075fcf4a9920c38bb6fc15564f0b116089cd62d99e7cfe33649dc751910265ad SHA512 500ab069cf6cec39907300e3905d334163b5094087831708acc22c4199b006ef52af3b66aade7558a48fab7cd69be3af7883bda3816a83c576d01b36ab270247
29 +DIST ldb-1.2.4.tar.gz 1346413 BLAKE2B 441cdf679ab4852e1c8d90ca8d9544d7983436c864cb3ea76b63f45177061c2763f9700b4be4be9ba53a4bcc9cec49b509dd39efb8f5f2171bc432641d1329c2 SHA512 093815cfa9e950299c4f09c58362136d72c439692f7d8670ecbf9cac49ecef6fd365f8fab5d39f41a4dd39e07f6c8d1a2616e843653d2fa0d7bdff346a118aa9
30 DIST ldb-1.3.6.tar.gz 1374574 BLAKE2B 654f35eb25aeb373540ead7cb10da66c92970ea6b100631cb14bacf937fec64e09b19ed3e09a976406e3f8d6347c4e17144c0a0bff8795316559be45353edbf7 SHA512 8fcd72598e948c55adaa832d6ebcbc03b979281032cb900af4304c1c68ce9cc94a1e1d4729d0c2a0b83a618cab716749d851160005a0093cf8a178e6dbea298d
31 DIST ldb-1.3.7.tar.gz 1374109 BLAKE2B 561d120bbfc49ef7115a3c046d65f15960ff9905b5a56ed7676d31ce6027ba9f18dfe5027952154db4a040e14be69689f248ffef0ca2ae801553be4c890248fe SHA512 b6d2b2f5a0868ac4ed1cfe786f26d5815cf60233561a23a06d9d5c231d51bfc68ad1a0826e5080bc97bafbaef1770fa38b7d3071f57b766e960b22485e8b5e2b
32 +DIST ldb-1.3.8.tar.gz 1375782 BLAKE2B dbca935e762af86b268308253615019b24af6727411e77947ceeadd3e0114c2ad2a14d4a4f1121bf58ccb080d44a8513d2094314b043604d885977a26e622c57 SHA512 06d1b4c2badbf0c27733a64f979c48af8b599747cef7cd7f5417cd55a76447e8f8987bd061694c5af63261fdb35433e3844122c14103d5cc8b4eaab1f4752541
33 DIST ldb-1.4.4.tar.gz 1428851 BLAKE2B 8b2dc6dc95f5c8d1a04aab58efb622b4550e6d8fc6f12aafe36b7080a5d59ab2d7fc6429ac59de43a23cef690fa9f026ccf536f70bfd25a126a1a649f3c68d02 SHA512 eb5c364771732916f89c9ee8cf20909954a7215cd71333b79c17718dd1e25081cce6597e882b6f0d6158c207fb58d97311f0417bf3baffe72084977a4bd05896
34 DIST ldb-1.4.5.tar.gz 1429162 BLAKE2B 47c55ca8a89f343708b5ea275a1f2417e91e05b2d1cf92d812f2a1430dcf174b14e69474f30dcf60b34a5c4b905924a67f002607535257fbb531bfed807648fa SHA512 ed1e73eb4e10f041463b38be031e7b7b1057a6a1ef6a637019d58a6549a0958d551a0b52f3858114b83cf14470ef5ddd96de3dcbb733a3bd1fed768fc29fadd2
35 +DIST ldb-1.4.6.tar.gz 1431798 BLAKE2B 748d6054af4b898fa475692a425d96541fa2c055ffdd4b8ca6635fea04d7b143b4e7301886f307300662140bc449a3ee3932801c7c5df10f6ba3ee5a10c7a46b SHA512 fb2be7842ecfda8788e8982831e34487f016814d1e8a757e93f8716019aaba4b9b7dd469e4ba11eb3990846fb55cdb2db2ec494eb7b0ff04f261d8309b1c98f4
36 DIST ldb-1.5.3.tar.gz 1625821 BLAKE2B 4ad2dfa10c0fe79ae06d2e50288ddba54cb3bb76e849e44af9c4ededa76eb20280c913277293281628d2a699f4cbecfc77630bc95965eeabc6800bfd9a9cb8ac SHA512 b25188606aae28a0ee5c95dddfb541cc6e500ef794d66601aa8cb061f51441433baab577311d0b39801d8b08808f66ad05066404293e78cb192523b681f1d145
37 +DIST ldb-1.5.4.tar.gz 1629123 BLAKE2B 3c71af079f2e5cb81e493d16d453c53bd0ee4c63720b0261ea6116244b2652ca581499c0b8c64949dccc95460aba7b4ef3afe7850563a830f3fb4b8753bdea2f SHA512 fc323e4283671c14d6dd4feb7e9ca943a63a166688077dbf3591f9d957cf821f9e739869842e15ca1ec4fd3764123d5afc6f4954b1af437bd1ec54df58366a22
38 +DIST ldb-1.6.2.tar.gz 1629794 BLAKE2B 5219479c773aa87c4bd6917e60b963df9cf3c481468ed020b4e9c4a175110ce80fd1c7a4ca4e28d99c972e0891287485261310eab1bbd7b8b138ea59f168ac8c SHA512 089dee2465efe0811ff745b52b15d2d7638b940112a06680706d5401231864859605ff0392245d4c815e9b85f5a4ba782fc61d8dba215cc8198e7d9a6ddd255e
39
40 diff --git a/sys-libs/ldb/ldb-1.2.4.ebuild b/sys-libs/ldb/ldb-1.2.4.ebuild
41 new file mode 100644
42 index 00000000000..822772cf008
43 --- /dev/null
44 +++ b/sys-libs/ldb/ldb-1.2.4.ebuild
45 @@ -0,0 +1,103 @@
46 +# Copyright 1999-2019 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=6
50 +PYTHON_COMPAT=( python2_7 )
51 +PYTHON_REQ_USE="threads"
52 +
53 +inherit python-single-r1 waf-utils multilib-minimal eutils
54 +
55 +DESCRIPTION="An LDAP-like embedded database"
56 +HOMEPAGE="https://ldb.samba.org/"
57 +SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
58 +
59 +LICENSE="LGPL-3"
60 +SLOT="0/${PV}"
61 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
62 +IUSE="doc +ldap +python"
63 +
64 +RDEPEND="!elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
65 + dev-libs/popt[${MULTILIB_USEDEP}]
66 + >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
67 + >=sys-libs/talloc-2.1.10[python?,${MULTILIB_USEDEP}]
68 + >=sys-libs/tevent-0.9.36[python(+)?,${MULTILIB_USEDEP}]
69 + >=sys-libs/tdb-1.3.15[python?,${MULTILIB_USEDEP}]
70 + python? ( ${PYTHON_DEPS} )
71 + ldap? ( net-nds/openldap )
72 +"
73 +
74 +DEPEND="dev-libs/libxslt
75 + doc? ( app-doc/doxygen )
76 + virtual/pkgconfig
77 + ${PYTHON_DEPS}
78 + ${RDEPEND}
79 +"
80 +
81 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
82 +
83 +WAF_BINARY="${S}/buildtools/bin/waf"
84 +
85 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
86 +
87 +PATCHES=(
88 + "${FILESDIR}"/${PN}-1.1.31-optional_packages.patch
89 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
90 + "${FILESDIR}"/${PN}-1.2.3-disable_python.patch
91 +)
92 +
93 +pkg_setup() {
94 + python-single-r1_pkg_setup
95 +}
96 +
97 +src_prepare() {
98 + default
99 + multilib_copy_sources
100 +}
101 +
102 +multilib_src_configure() {
103 + local myconf=(
104 + $(usex ldap '' --disable-ldap)
105 + --disable-rpath
106 + --disable-rpath-install --bundled-libraries=NONE
107 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
108 + --builtin-libraries=NONE
109 + )
110 + if ! multilib_is_native_abi; then
111 + myconf+=( --disable-python )
112 + else
113 + use python || myconf+=( --disable-python )
114 + fi
115 + waf-utils_src_configure "${myconf[@]}"
116 +}
117 +
118 +multilib_src_compile(){
119 + waf-utils_src_compile
120 + multilib_is_native_abi && use doc && doxygen Doxyfile
121 +}
122 +
123 +multilib_src_test() {
124 + if multilib_is_native_abi; then
125 + WAF_MAKE=1 \
126 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
127 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
128 + waf test || die
129 + fi
130 +}
131 +
132 +multilib_src_install() {
133 + waf-utils_src_install
134 +
135 + if multilib_is_native_abi && use doc; then
136 + doman apidocs/man/man3/*.3
137 + docinto html
138 + dodoc -r apidocs/html/*
139 + fi
140 +}
141 +
142 +pkg_postinst() {
143 + if has_version sys-auth/sssd; then
144 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
145 + ewarn "so please try to rebuild it before reporting bugs."
146 + ewarn "See https://bugs.gentoo.org/404281"
147 + fi
148 +}
149
150 diff --git a/sys-libs/ldb/ldb-1.3.8.ebuild b/sys-libs/ldb/ldb-1.3.8.ebuild
151 new file mode 100644
152 index 00000000000..e76e509dbce
153 --- /dev/null
154 +++ b/sys-libs/ldb/ldb-1.3.8.ebuild
155 @@ -0,0 +1,103 @@
156 +# Copyright 1999-2019 Gentoo Authors
157 +# Distributed under the terms of the GNU General Public License v2
158 +
159 +EAPI=6
160 +PYTHON_COMPAT=( python2_7 )
161 +PYTHON_REQ_USE="threads"
162 +
163 +inherit python-single-r1 waf-utils multilib-minimal eutils
164 +
165 +DESCRIPTION="An LDAP-like embedded database"
166 +HOMEPAGE="https://ldb.samba.org"
167 +SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
168 +
169 +LICENSE="LGPL-3"
170 +SLOT="0/${PV}"
171 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
172 +IUSE="doc +ldap +python"
173 +
174 +RDEPEND="
175 + !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
176 + dev-libs/popt[${MULTILIB_USEDEP}]
177 + >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
178 + >=sys-libs/talloc-2.1.11[python?,${MULTILIB_USEDEP}]
179 + >=sys-libs/tdb-1.3.15[python?,${MULTILIB_USEDEP}]
180 + >=sys-libs/tevent-0.9.36[python(+)?,${MULTILIB_USEDEP}]
181 + ldap? ( net-nds/openldap )
182 + python? ( ${PYTHON_DEPS} )
183 +"
184 +
185 +DEPEND="dev-libs/libxslt
186 + doc? ( app-doc/doxygen )
187 + virtual/pkgconfig
188 + ${PYTHON_DEPS}
189 + ${RDEPEND}
190 +"
191 +
192 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
193 +
194 +WAF_BINARY="${S}/buildtools/bin/waf"
195 +
196 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
197 +
198 +PATCHES=(
199 + "${FILESDIR}"/${PN}-1.1.31-optional_packages.patch
200 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
201 +)
202 +
203 +pkg_setup() {
204 + python-single-r1_pkg_setup
205 +}
206 +
207 +src_prepare() {
208 + default
209 + multilib_copy_sources
210 +}
211 +
212 +multilib_src_configure() {
213 + local myconf=(
214 + $(usex ldap '' --disable-ldap)
215 + --disable-rpath
216 + --disable-rpath-install --bundled-libraries=NONE
217 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
218 + --builtin-libraries=NONE
219 + )
220 + if ! multilib_is_native_abi; then
221 + myconf+=( --disable-python )
222 + else
223 + use python || myconf+=( --disable-python )
224 + fi
225 + waf-utils_src_configure "${myconf[@]}"
226 +}
227 +
228 +multilib_src_compile(){
229 + waf-utils_src_compile
230 + multilib_is_native_abi && use doc && doxygen Doxyfile
231 +}
232 +
233 +multilib_src_test() {
234 + if multilib_is_native_abi; then
235 + WAF_MAKE=1 \
236 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
237 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
238 + waf test || die
239 + fi
240 +}
241 +
242 +multilib_src_install() {
243 + waf-utils_src_install
244 +
245 + if multilib_is_native_abi && use doc; then
246 + doman apidocs/man/man3/*.3
247 + docinto html
248 + dodoc -r apidocs/html/*
249 + fi
250 +}
251 +
252 +pkg_postinst() {
253 + if has_version sys-auth/sssd; then
254 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
255 + ewarn "so please try to rebuild it before reporting bugs."
256 + ewarn "See https://bugs.gentoo.org/404281"
257 + fi
258 +}
259
260 diff --git a/sys-libs/ldb/ldb-1.4.6.ebuild b/sys-libs/ldb/ldb-1.4.6.ebuild
261 new file mode 100644
262 index 00000000000..eb8e4d2e6ef
263 --- /dev/null
264 +++ b/sys-libs/ldb/ldb-1.4.6.ebuild
265 @@ -0,0 +1,105 @@
266 +# Copyright 1999-2019 Gentoo Authors
267 +# Distributed under the terms of the GNU General Public License v2
268 +
269 +EAPI=6
270 +PYTHON_COMPAT=( python2_7 )
271 +PYTHON_REQ_USE="threads"
272 +
273 +inherit python-single-r1 waf-utils multilib-minimal eutils
274 +
275 +DESCRIPTION="An LDAP-like embedded database"
276 +HOMEPAGE="https://ldb.samba.org"
277 +SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
278 +
279 +LICENSE="LGPL-3"
280 +SLOT="0/${PV}"
281 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
282 +IUSE="doc +ldap +lmdb +python"
283 +
284 +RDEPEND="
285 + !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
286 + dev-libs/popt[${MULTILIB_USEDEP}]
287 + >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
288 + >=sys-libs/talloc-2.1.14[python?,${MULTILIB_USEDEP}]
289 + >=sys-libs/tdb-1.3.16[python?,${MULTILIB_USEDEP}]
290 + >=sys-libs/tevent-0.9.37[python(+)?,${MULTILIB_USEDEP}]
291 + ldap? ( net-nds/openldap )
292 + lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
293 + python? ( ${PYTHON_DEPS} )
294 +"
295 +
296 +DEPEND="dev-libs/libxslt
297 + doc? ( app-doc/doxygen )
298 + virtual/pkgconfig
299 + ${PYTHON_DEPS}
300 + ${RDEPEND}
301 +"
302 +
303 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
304 +
305 +WAF_BINARY="${S}/buildtools/bin/waf"
306 +
307 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
308 +
309 +PATCHES=(
310 + "${FILESDIR}"/${PN}-1.4.0-optional_packages.patch
311 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
312 +)
313 +
314 +pkg_setup() {
315 + python-single-r1_pkg_setup
316 +}
317 +
318 +src_prepare() {
319 + default
320 + multilib_copy_sources
321 +}
322 +
323 +multilib_src_configure() {
324 + local myconf=(
325 + $(usex ldap '' --disable-ldap)
326 + $(usex lmdb '' --without-ldb-lmdb)
327 + --disable-rpath
328 + --disable-rpath-install --bundled-libraries=NONE
329 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
330 + --builtin-libraries=NONE
331 + )
332 + if ! multilib_is_native_abi; then
333 + myconf+=( --disable-python )
334 + else
335 + use python || myconf+=( --disable-python )
336 + fi
337 + waf-utils_src_configure "${myconf[@]}"
338 +}
339 +
340 +multilib_src_compile(){
341 + waf-utils_src_compile
342 + multilib_is_native_abi && use doc && doxygen Doxyfile
343 +}
344 +
345 +multilib_src_test() {
346 + if multilib_is_native_abi; then
347 + WAF_MAKE=1 \
348 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
349 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
350 + waf test || die
351 + fi
352 +}
353 +
354 +multilib_src_install() {
355 + waf-utils_src_install
356 +
357 + if multilib_is_native_abi && use doc; then
358 + doman apidocs/man/man3/*.3
359 + docinto html
360 + dodoc -r apidocs/html/*
361 + fi
362 +}
363 +
364 +pkg_postinst() {
365 + if has_version sys-auth/sssd; then
366 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
367 + ewarn "so please try to rebuild it before reporting bugs."
368 + ewarn "See https://bugs.gentoo.org/404281"
369 + fi
370 +}
371
372 diff --git a/sys-libs/ldb/ldb-1.5.4.ebuild b/sys-libs/ldb/ldb-1.5.4.ebuild
373 new file mode 100644
374 index 00000000000..1d232f0ba4c
375 --- /dev/null
376 +++ b/sys-libs/ldb/ldb-1.5.4.ebuild
377 @@ -0,0 +1,105 @@
378 +# Copyright 1999-2019 Gentoo Authors
379 +# Distributed under the terms of the GNU General Public License v2
380 +
381 +EAPI=6
382 +PYTHON_COMPAT=( python3_{4,5,6,7} )
383 +PYTHON_REQ_USE="threads(+)"
384 +
385 +inherit python-single-r1 waf-utils multilib-minimal eutils
386 +
387 +DESCRIPTION="An LDAP-like embedded database"
388 +HOMEPAGE="https://ldb.samba.org"
389 +SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
390 +
391 +LICENSE="LGPL-3"
392 +SLOT="0/${PV}"
393 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
394 +IUSE="doc +ldap +lmdb +python"
395 +
396 +RDEPEND="
397 + !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
398 + dev-libs/popt[${MULTILIB_USEDEP}]
399 + >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
400 + >=sys-libs/talloc-2.1.16[python?,${MULTILIB_USEDEP}]
401 + >=sys-libs/tdb-1.3.18[python?,${MULTILIB_USEDEP}]
402 + >=sys-libs/tevent-0.9.39[python(+)?,${MULTILIB_USEDEP}]
403 + ldap? ( net-nds/openldap )
404 + lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
405 + python? ( ${PYTHON_DEPS} )
406 +"
407 +
408 +DEPEND="dev-libs/libxslt
409 + doc? ( app-doc/doxygen )
410 + virtual/pkgconfig
411 + ${PYTHON_DEPS}
412 + ${RDEPEND}
413 +"
414 +
415 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
416 +
417 +WAF_BINARY="${S}/buildtools/bin/waf"
418 +
419 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
420 +
421 +PATCHES=(
422 + "${FILESDIR}"/${PN}-1.5.2-optional_packages.patch
423 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
424 +)
425 +
426 +pkg_setup() {
427 + python-single-r1_pkg_setup
428 +}
429 +
430 +src_prepare() {
431 + default
432 + multilib_copy_sources
433 +}
434 +
435 +multilib_src_configure() {
436 + local myconf=(
437 + $(usex ldap '' --disable-ldap)
438 + $(usex lmdb '' --without-ldb-lmdb)
439 + --disable-rpath
440 + --disable-rpath-install --bundled-libraries=NONE
441 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
442 + --builtin-libraries=NONE
443 + )
444 + if ! multilib_is_native_abi; then
445 + myconf+=( --disable-python )
446 + else
447 + use python || myconf+=( --disable-python )
448 + fi
449 + waf-utils_src_configure "${myconf[@]}"
450 +}
451 +
452 +multilib_src_compile(){
453 + waf-utils_src_compile
454 + multilib_is_native_abi && use doc && doxygen Doxyfile
455 +}
456 +
457 +multilib_src_test() {
458 + if multilib_is_native_abi; then
459 + WAF_MAKE=1 \
460 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
461 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
462 + waf test || die
463 + fi
464 +}
465 +
466 +multilib_src_install() {
467 + waf-utils_src_install
468 +
469 + if multilib_is_native_abi && use doc; then
470 + doman apidocs/man/man3/*.3
471 + docinto html
472 + dodoc -r apidocs/html/*
473 + fi
474 +}
475 +
476 +pkg_postinst() {
477 + if has_version sys-auth/sssd; then
478 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
479 + ewarn "so please try to rebuild it before reporting bugs."
480 + ewarn "See https://bugs.gentoo.org/404281"
481 + fi
482 +}
483
484 diff --git a/sys-libs/ldb/ldb-1.6.2.ebuild b/sys-libs/ldb/ldb-1.6.2.ebuild
485 new file mode 100644
486 index 00000000000..1d232f0ba4c
487 --- /dev/null
488 +++ b/sys-libs/ldb/ldb-1.6.2.ebuild
489 @@ -0,0 +1,105 @@
490 +# Copyright 1999-2019 Gentoo Authors
491 +# Distributed under the terms of the GNU General Public License v2
492 +
493 +EAPI=6
494 +PYTHON_COMPAT=( python3_{4,5,6,7} )
495 +PYTHON_REQ_USE="threads(+)"
496 +
497 +inherit python-single-r1 waf-utils multilib-minimal eutils
498 +
499 +DESCRIPTION="An LDAP-like embedded database"
500 +HOMEPAGE="https://ldb.samba.org"
501 +SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
502 +
503 +LICENSE="LGPL-3"
504 +SLOT="0/${PV}"
505 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
506 +IUSE="doc +ldap +lmdb +python"
507 +
508 +RDEPEND="
509 + !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
510 + dev-libs/popt[${MULTILIB_USEDEP}]
511 + >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
512 + >=sys-libs/talloc-2.1.16[python?,${MULTILIB_USEDEP}]
513 + >=sys-libs/tdb-1.3.18[python?,${MULTILIB_USEDEP}]
514 + >=sys-libs/tevent-0.9.39[python(+)?,${MULTILIB_USEDEP}]
515 + ldap? ( net-nds/openldap )
516 + lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
517 + python? ( ${PYTHON_DEPS} )
518 +"
519 +
520 +DEPEND="dev-libs/libxslt
521 + doc? ( app-doc/doxygen )
522 + virtual/pkgconfig
523 + ${PYTHON_DEPS}
524 + ${RDEPEND}
525 +"
526 +
527 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
528 +
529 +WAF_BINARY="${S}/buildtools/bin/waf"
530 +
531 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
532 +
533 +PATCHES=(
534 + "${FILESDIR}"/${PN}-1.5.2-optional_packages.patch
535 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
536 +)
537 +
538 +pkg_setup() {
539 + python-single-r1_pkg_setup
540 +}
541 +
542 +src_prepare() {
543 + default
544 + multilib_copy_sources
545 +}
546 +
547 +multilib_src_configure() {
548 + local myconf=(
549 + $(usex ldap '' --disable-ldap)
550 + $(usex lmdb '' --without-ldb-lmdb)
551 + --disable-rpath
552 + --disable-rpath-install --bundled-libraries=NONE
553 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
554 + --builtin-libraries=NONE
555 + )
556 + if ! multilib_is_native_abi; then
557 + myconf+=( --disable-python )
558 + else
559 + use python || myconf+=( --disable-python )
560 + fi
561 + waf-utils_src_configure "${myconf[@]}"
562 +}
563 +
564 +multilib_src_compile(){
565 + waf-utils_src_compile
566 + multilib_is_native_abi && use doc && doxygen Doxyfile
567 +}
568 +
569 +multilib_src_test() {
570 + if multilib_is_native_abi; then
571 + WAF_MAKE=1 \
572 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
573 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
574 + waf test || die
575 + fi
576 +}
577 +
578 +multilib_src_install() {
579 + waf-utils_src_install
580 +
581 + if multilib_is_native_abi && use doc; then
582 + doman apidocs/man/man3/*.3
583 + docinto html
584 + dodoc -r apidocs/html/*
585 + fi
586 +}
587 +
588 +pkg_postinst() {
589 + if has_version sys-auth/sssd; then
590 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
591 + ewarn "so please try to rebuild it before reporting bugs."
592 + ewarn "See https://bugs.gentoo.org/404281"
593 + fi
594 +}