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, 02 Jul 2020 19:38:27
Message-Id: 1593718694.6b42ae182d30779c088e4606faebe3d92c7f49bf.polynomial-c@gentoo
1 commit: 6b42ae182d30779c088e4606faebe3d92c7f49bf
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 2 19:23:12 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 2 19:38:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b42ae18
7
8 sys-libs/ldb: Bump to versions 2.0.12 and 2.1.4
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-libs/ldb/Manifest | 2 +
14 sys-libs/ldb/ldb-2.0.12.ebuild | 108 +++++++++++++++++++++++++++++++++++++++++
15 sys-libs/ldb/ldb-2.1.4.ebuild | 108 +++++++++++++++++++++++++++++++++++++++++
16 3 files changed, 218 insertions(+)
17
18 diff --git a/sys-libs/ldb/Manifest b/sys-libs/ldb/Manifest
19 index b3e6e607923..77405afdcc4 100644
20 --- a/sys-libs/ldb/Manifest
21 +++ b/sys-libs/ldb/Manifest
22 @@ -1,5 +1,7 @@
23 DIST ldb-2.0.10.tar.gz 1676630 BLAKE2B 9ae9e6579fd7b15b91a4c0f52ad5ea3a9ba3135efe408b76db53db211a48d3952a790f2f856e5f9573174b2203840b7d6a6ad10976a4b6bf3e0d294731b89b31 SHA512 51954969e3121295ea99856c254f455cb746102e9d7895fbd7c66997f33763ae4522ed456e4bae7921b2edd73575a0a10738d21a90a067a57ff770cf0fe35aef
24 +DIST ldb-2.0.12.tar.gz 1680114 BLAKE2B 44d7b8f9ff0c1d2adc59378b9da814fb280043c8bbf5ea59920a23448db5abdd53b69c93002e2d621268610ee202377a35676ecf6bd6601d2a2ef9269e71dd6c SHA512 9f26dadee16c50844b28edf03a05ad11067bfb7678cc3e8baf278709a813498a620db3dad463bfe54adb6a44cb5b551cf1224bc30316be5fc8d29ef17295bdd8
25 DIST ldb-2.0.8.tar.gz 1676902 BLAKE2B b86b24a597bd81ae11382311f3b60aeb8aca78ddbe63413b9a8cdbbfa4f52b05a0d2e325d483e260b15aa396c2ad9f2828ac4b6214af86d891281d05b24125b5 SHA512 23a44968c9b4b57deb3f7b7b2466f140b4d8534a07a5e866545dd108c3d305ee4b0ea9bceec3177fcd09a4efcb4876a8283ca58b5c496fcf323b810666e1e79a
26 DIST ldb-2.0.9.tar.gz 1676176 BLAKE2B 0d18a570ca61fcdf159b6398ecef74bc983c24ffd4d8f85bc9cfcbb182f787d0deb50c5f446684b851993146e03bdaf10d80c083a9534446b829714fff025b8f SHA512 f4d2480491f16aac7837fa2ff071e81e429bd9b3a365264723245791aad1831a236ffeff0f01f85becb998b224c321b166f3edd3f9a828714b7c3b24aed11a5e
27 DIST ldb-2.1.2.tar.gz 1670997 BLAKE2B 0622d39029819b89119bce6a570c56b247871a92685d4ca33153a141d4cbbcb52a041a33c6ddbf6b01d5195feeb49fcf24f15a571cad99d031f347374860b3fe SHA512 6b9a7e6e3f6532ccedb087394b1d2d28f53a034353288bac1ea8d9ca65da5981191e31de6493445daa87684e08cc587886dd7fce19391bd20f1c7d440dbf3fbf
28 DIST ldb-2.1.3.tar.gz 1673208 BLAKE2B 32723fb8cbf404258a1334589e08f1a1b1ee78a6260327e4793d338f73132ae89a5655f77ef4160a0c4b751f5e33e841420c2027034c78d371bf5fd7f3931a37 SHA512 3f5adf5ed6c98cefce56ba47c986c5d59619731def8fa66440957aba1483de19bcfdc4ec5498d34db70753312b1ad47b864020269df924d3d431c8d4d223af10
29 +DIST ldb-2.1.4.tar.gz 1673335 BLAKE2B 581ea127715d82d849f78c11fc66eb278e45f6c9ff9b379d5a3cfaa8c9c424004614a5a9c2120710d23feb1252294e2abd4983158a2a46e5d70180ad3c765dbd SHA512 7e0eecccc973881dde2390568dc71a2ffe7c7ed894daaa9cadf80c221e1b969fd9a8729f3c48a0f611a64b2941c295a2bc7bd8ba869881ba14f75b8bf331167e
30
31 diff --git a/sys-libs/ldb/ldb-2.0.12.ebuild b/sys-libs/ldb/ldb-2.0.12.ebuild
32 new file mode 100644
33 index 00000000000..484c8a1afd8
34 --- /dev/null
35 +++ b/sys-libs/ldb/ldb-2.0.12.ebuild
36 @@ -0,0 +1,108 @@
37 +# Copyright 1999-2020 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +PYTHON_COMPAT=( python3_{6,7,8} )
42 +PYTHON_REQ_USE="threads(+)"
43 +
44 +inherit python-single-r1 waf-utils multilib-minimal eutils
45 +
46 +DESCRIPTION="An LDAP-like embedded database"
47 +HOMEPAGE="https://ldb.samba.org"
48 +SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
49 +
50 +LICENSE="LGPL-3"
51 +SLOT="0/${PV}"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
53 +IUSE="doc +ldap +lmdb python test"
54 +
55 +RESTRICT="!test? ( test )"
56 +
57 +RDEPEND="
58 + !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
59 + dev-libs/popt[${MULTILIB_USEDEP}]
60 + >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
61 + >=sys-libs/talloc-2.2.0[python?,${MULTILIB_USEDEP}]
62 + >=sys-libs/tdb-1.4.2[python?,${MULTILIB_USEDEP}]
63 + >=sys-libs/tevent-0.10.0[python(+)?,${MULTILIB_USEDEP}]
64 + ldap? ( net-nds/openldap )
65 + lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
66 + python? ( ${PYTHON_DEPS} )
67 +"
68 +
69 +DEPEND="dev-libs/libxslt
70 + doc? ( app-doc/doxygen )
71 + virtual/pkgconfig
72 + ${PYTHON_DEPS}
73 + ${RDEPEND}
74 +"
75 +
76 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
77 + test? ( python )"
78 +
79 +WAF_BINARY="${S}/buildtools/bin/waf"
80 +
81 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
82 +
83 +PATCHES=(
84 + "${FILESDIR}"/${PN}-1.5.2-optional_packages.patch
85 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
86 +)
87 +
88 +pkg_setup() {
89 + python-single-r1_pkg_setup
90 +}
91 +
92 +src_prepare() {
93 + default
94 + multilib_copy_sources
95 +}
96 +
97 +multilib_src_configure() {
98 + local myconf=(
99 + $(usex ldap '' --disable-ldap)
100 + $(usex lmdb '' --without-ldb-lmdb)
101 + --disable-rpath
102 + --disable-rpath-install --bundled-libraries=NONE
103 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
104 + --builtin-libraries=NONE
105 + )
106 + if ! multilib_is_native_abi; then
107 + myconf+=( --disable-python )
108 + else
109 + use python || myconf+=( --disable-python )
110 + fi
111 + waf-utils_src_configure "${myconf[@]}"
112 +}
113 +
114 +multilib_src_compile() {
115 + waf-utils_src_compile
116 + multilib_is_native_abi && use doc && doxygen Doxyfile
117 +}
118 +
119 +multilib_src_test() {
120 + if multilib_is_native_abi; then
121 + WAF_MAKE=1 \
122 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
123 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
124 + waf test || die
125 + fi
126 +}
127 +
128 +multilib_src_install() {
129 + waf-utils_src_install
130 +
131 + if multilib_is_native_abi && use doc; then
132 + doman apidocs/man/man3/*.3
133 + docinto html
134 + dodoc -r apidocs/html/*
135 + fi
136 +}
137 +
138 +pkg_postinst() {
139 + if has_version sys-auth/sssd; then
140 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
141 + ewarn "so please try to rebuild it before reporting bugs."
142 + ewarn "See https://bugs.gentoo.org/404281"
143 + fi
144 +}
145
146 diff --git a/sys-libs/ldb/ldb-2.1.4.ebuild b/sys-libs/ldb/ldb-2.1.4.ebuild
147 new file mode 100644
148 index 00000000000..e1deb520305
149 --- /dev/null
150 +++ b/sys-libs/ldb/ldb-2.1.4.ebuild
151 @@ -0,0 +1,108 @@
152 +# Copyright 1999-2020 Gentoo Authors
153 +# Distributed under the terms of the GNU General Public License v2
154 +
155 +EAPI=6
156 +PYTHON_COMPAT=( python3_{6,7,8} )
157 +PYTHON_REQ_USE="threads(+)"
158 +
159 +inherit python-single-r1 waf-utils multilib-minimal eutils
160 +
161 +DESCRIPTION="An LDAP-like embedded database"
162 +HOMEPAGE="https://ldb.samba.org"
163 +SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
164 +
165 +LICENSE="LGPL-3"
166 +SLOT="0/${PV}"
167 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
168 +IUSE="doc +ldap +lmdb python test"
169 +
170 +RESTRICT="!test? ( test )"
171 +
172 +RDEPEND="
173 + !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
174 + dev-libs/popt[${MULTILIB_USEDEP}]
175 + >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
176 + >=sys-libs/talloc-2.3.1[python?,${MULTILIB_USEDEP}]
177 + >=sys-libs/tdb-1.4.3[python?,${MULTILIB_USEDEP}]
178 + >=sys-libs/tevent-0.10.2[python(+)?,${MULTILIB_USEDEP}]
179 + ldap? ( net-nds/openldap )
180 + lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
181 + python? ( ${PYTHON_DEPS} )
182 +"
183 +
184 +DEPEND="dev-libs/libxslt
185 + doc? ( app-doc/doxygen )
186 + virtual/pkgconfig
187 + ${PYTHON_DEPS}
188 + ${RDEPEND}
189 +"
190 +
191 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
192 + test? ( python )"
193 +
194 +WAF_BINARY="${S}/buildtools/bin/waf"
195 +
196 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
197 +
198 +PATCHES=(
199 + "${FILESDIR}"/${PN}-1.5.2-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 + $(usex lmdb '' --without-ldb-lmdb)
216 + --disable-rpath
217 + --disable-rpath-install --bundled-libraries=NONE
218 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
219 + --builtin-libraries=NONE
220 + )
221 + if ! multilib_is_native_abi; then
222 + myconf+=( --disable-python )
223 + else
224 + use python || myconf+=( --disable-python )
225 + fi
226 + waf-utils_src_configure "${myconf[@]}"
227 +}
228 +
229 +multilib_src_compile() {
230 + waf-utils_src_compile
231 + multilib_is_native_abi && use doc && doxygen Doxyfile
232 +}
233 +
234 +multilib_src_test() {
235 + if multilib_is_native_abi; then
236 + WAF_MAKE=1 \
237 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
238 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
239 + waf test || die
240 + fi
241 +}
242 +
243 +multilib_src_install() {
244 + waf-utils_src_install
245 +
246 + if multilib_is_native_abi && use doc; then
247 + doman apidocs/man/man3/*.3
248 + docinto html
249 + dodoc -r apidocs/html/*
250 + fi
251 +}
252 +
253 +pkg_postinst() {
254 + if has_version sys-auth/sssd; then
255 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
256 + ewarn "so please try to rebuild it before reporting bugs."
257 + ewarn "See https://bugs.gentoo.org/404281"
258 + fi
259 +}