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: Wed, 03 Jul 2019 21:05:23
Message-Id: 1562187911.516ca0cd08cf4ff64baaee788c1b81752a101b33.polynomial-c@gentoo
1 commit: 516ca0cd08cf4ff64baaee788c1b81752a101b33
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 3 20:59:55 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 3 21:05:11 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=516ca0cd
7
8 sys-libs/ldb: Bump to versions 1.4.7 and 1.5.5
9
10 Package-Manager: Portage-2.3.68, Repoman-2.3.16
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-libs/ldb/Manifest | 2 +
14 sys-libs/ldb/ldb-1.4.7.ebuild | 105 ++++++++++++++++++++++++++++++++++++++++++
15 sys-libs/ldb/ldb-1.5.5.ebuild | 105 ++++++++++++++++++++++++++++++++++++++++++
16 3 files changed, 212 insertions(+)
17
18 diff --git a/sys-libs/ldb/Manifest b/sys-libs/ldb/Manifest
19 index 2aa9b8ad86a..db0b4ee53c7 100644
20 --- a/sys-libs/ldb/Manifest
21 +++ b/sys-libs/ldb/Manifest
22 @@ -6,6 +6,8 @@ DIST ldb-1.2.4.tar.gz 1346413 BLAKE2B 441cdf679ab4852e1c8d90ca8d9544d7983436c864
23 DIST ldb-1.3.6.tar.gz 1374574 BLAKE2B 654f35eb25aeb373540ead7cb10da66c92970ea6b100631cb14bacf937fec64e09b19ed3e09a976406e3f8d6347c4e17144c0a0bff8795316559be45353edbf7 SHA512 8fcd72598e948c55adaa832d6ebcbc03b979281032cb900af4304c1c68ce9cc94a1e1d4729d0c2a0b83a618cab716749d851160005a0093cf8a178e6dbea298d
24 DIST ldb-1.3.8.tar.gz 1375782 BLAKE2B dbca935e762af86b268308253615019b24af6727411e77947ceeadd3e0114c2ad2a14d4a4f1121bf58ccb080d44a8513d2094314b043604d885977a26e622c57 SHA512 06d1b4c2badbf0c27733a64f979c48af8b599747cef7cd7f5417cd55a76447e8f8987bd061694c5af63261fdb35433e3844122c14103d5cc8b4eaab1f4752541
25 DIST ldb-1.4.6.tar.gz 1431798 BLAKE2B 748d6054af4b898fa475692a425d96541fa2c055ffdd4b8ca6635fea04d7b143b4e7301886f307300662140bc449a3ee3932801c7c5df10f6ba3ee5a10c7a46b SHA512 fb2be7842ecfda8788e8982831e34487f016814d1e8a757e93f8716019aaba4b9b7dd469e4ba11eb3990846fb55cdb2db2ec494eb7b0ff04f261d8309b1c98f4
26 +DIST ldb-1.4.7.tar.gz 1430560 BLAKE2B b6b9a12b6f17ffee8e9a47673786d1247310655ca87bb0280fb8ce04a69c52435721fe5e8ab1ce18406e28dfeef57fe30b3b3fc42a4951505f8772bf5e7553ce SHA512 e53bdd831d37b87b5adaf17f46b883f177f97541ad957d134dbfc196bc37749074df7c8cafb8e2993c6aae9bc150ae8d88daad56c26de9f62c5259c479da7016
27 DIST ldb-1.5.4.tar.gz 1629123 BLAKE2B 3c71af079f2e5cb81e493d16d453c53bd0ee4c63720b0261ea6116244b2652ca581499c0b8c64949dccc95460aba7b4ef3afe7850563a830f3fb4b8753bdea2f SHA512 fc323e4283671c14d6dd4feb7e9ca943a63a166688077dbf3591f9d957cf821f9e739869842e15ca1ec4fd3764123d5afc6f4954b1af437bd1ec54df58366a22
28 +DIST ldb-1.5.5.tar.gz 1629070 BLAKE2B 374042c77c9ec7bd88ad1d97757f171ae831a630751fc06bf22190355c1448fa8c2327d308cdbe5b46ca21236738548d2c1041c3dfb428e1dfee8053edf90050 SHA512 562e08b3d6564d08fed80dc43ca299c38fbd958dbe27ed1400e5eb5c3df0f4c7b7eaf502b13eec5544b168f26c5e6537615f65e28dcaeb6473d2ff3c3c7a4e4b
29 DIST ldb-1.6.2.tar.gz 1629794 BLAKE2B 5219479c773aa87c4bd6917e60b963df9cf3c481468ed020b4e9c4a175110ce80fd1c7a4ca4e28d99c972e0891287485261310eab1bbd7b8b138ea59f168ac8c SHA512 089dee2465efe0811ff745b52b15d2d7638b940112a06680706d5401231864859605ff0392245d4c815e9b85f5a4ba782fc61d8dba215cc8198e7d9a6ddd255e
30 DIST ldb-1.6.3.tar.gz 1628668 BLAKE2B e9b6535eddf49496151e544f6879641c58a614f6de95463f7d0bf1953744953a5d55dde935d39b690d4c87e66914d8de0f0f5d4816a61fdecc81f8797584013e SHA512 a41b1fd2afa9a02dec37519f28e0e720b649c2a0aa6caebeb6697dbefdc6a055ef26500c5ccb0439b495d8c03218920b389fb9601d1cf5ca4d5046f192a5fefd
31
32 diff --git a/sys-libs/ldb/ldb-1.4.7.ebuild b/sys-libs/ldb/ldb-1.4.7.ebuild
33 new file mode 100644
34 index 00000000000..deef89dbbf0
35 --- /dev/null
36 +++ b/sys-libs/ldb/ldb-1.4.7.ebuild
37 @@ -0,0 +1,105 @@
38 +# Copyright 1999-2019 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=6
42 +PYTHON_COMPAT=( python2_7 )
43 +PYTHON_REQ_USE="threads"
44 +
45 +inherit python-single-r1 waf-utils multilib-minimal eutils
46 +
47 +DESCRIPTION="An LDAP-like embedded database"
48 +HOMEPAGE="https://ldb.samba.org"
49 +SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
50 +
51 +LICENSE="LGPL-3"
52 +SLOT="0/${PV}"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
54 +IUSE="doc +ldap +lmdb python"
55 +
56 +RDEPEND="
57 + !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
58 + dev-libs/popt[${MULTILIB_USEDEP}]
59 + >=dev-util/cmocka-1.1.1[${MULTILIB_USEDEP}]
60 + >=sys-libs/talloc-2.1.14[python?,${MULTILIB_USEDEP}]
61 + >=sys-libs/tdb-1.3.16[python?,${MULTILIB_USEDEP}]
62 + >=sys-libs/tevent-0.9.37[python(+)?,${MULTILIB_USEDEP}]
63 + ldap? ( net-nds/openldap )
64 + lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
65 + python? ( ${PYTHON_DEPS} )
66 +"
67 +
68 +DEPEND="dev-libs/libxslt
69 + doc? ( app-doc/doxygen )
70 + virtual/pkgconfig
71 + ${PYTHON_DEPS}
72 + ${RDEPEND}
73 +"
74 +
75 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
76 +
77 +WAF_BINARY="${S}/buildtools/bin/waf"
78 +
79 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
80 +
81 +PATCHES=(
82 + "${FILESDIR}"/${PN}-1.4.0-optional_packages.patch
83 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
84 +)
85 +
86 +pkg_setup() {
87 + python-single-r1_pkg_setup
88 +}
89 +
90 +src_prepare() {
91 + default
92 + multilib_copy_sources
93 +}
94 +
95 +multilib_src_configure() {
96 + local myconf=(
97 + $(usex ldap '' --disable-ldap)
98 + $(usex lmdb '' --without-ldb-lmdb)
99 + --disable-rpath
100 + --disable-rpath-install --bundled-libraries=NONE
101 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
102 + --builtin-libraries=NONE
103 + )
104 + if ! multilib_is_native_abi; then
105 + myconf+=( --disable-python )
106 + else
107 + use python || myconf+=( --disable-python )
108 + fi
109 + waf-utils_src_configure "${myconf[@]}"
110 +}
111 +
112 +multilib_src_compile(){
113 + waf-utils_src_compile
114 + multilib_is_native_abi && use doc && doxygen Doxyfile
115 +}
116 +
117 +multilib_src_test() {
118 + if multilib_is_native_abi; then
119 + WAF_MAKE=1 \
120 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
121 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
122 + waf test || die
123 + fi
124 +}
125 +
126 +multilib_src_install() {
127 + waf-utils_src_install
128 +
129 + if multilib_is_native_abi && use doc; then
130 + doman apidocs/man/man3/*.3
131 + docinto html
132 + dodoc -r apidocs/html/*
133 + fi
134 +}
135 +
136 +pkg_postinst() {
137 + if has_version sys-auth/sssd; then
138 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
139 + ewarn "so please try to rebuild it before reporting bugs."
140 + ewarn "See https://bugs.gentoo.org/404281"
141 + fi
142 +}
143
144 diff --git a/sys-libs/ldb/ldb-1.5.5.ebuild b/sys-libs/ldb/ldb-1.5.5.ebuild
145 new file mode 100644
146 index 00000000000..102b52891a1
147 --- /dev/null
148 +++ b/sys-libs/ldb/ldb-1.5.5.ebuild
149 @@ -0,0 +1,105 @@
150 +# Copyright 1999-2019 Gentoo Authors
151 +# Distributed under the terms of the GNU General Public License v2
152 +
153 +EAPI=6
154 +PYTHON_COMPAT=( python3_{5,6,7} )
155 +PYTHON_REQ_USE="threads(+)"
156 +
157 +inherit python-single-r1 waf-utils multilib-minimal eutils
158 +
159 +DESCRIPTION="An LDAP-like embedded database"
160 +HOMEPAGE="https://ldb.samba.org"
161 +SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
162 +
163 +LICENSE="LGPL-3"
164 +SLOT="0/${PV}"
165 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
166 +IUSE="doc +ldap +lmdb python"
167 +
168 +RDEPEND="
169 + !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
170 + dev-libs/popt[${MULTILIB_USEDEP}]
171 + >=dev-util/cmocka-1.1.3[${MULTILIB_USEDEP}]
172 + >=sys-libs/talloc-2.1.16[python?,${MULTILIB_USEDEP}]
173 + >=sys-libs/tdb-1.3.18[python?,${MULTILIB_USEDEP}]
174 + >=sys-libs/tevent-0.9.39[python(+)?,${MULTILIB_USEDEP}]
175 + ldap? ( net-nds/openldap )
176 + lmdb? ( >=dev-db/lmdb-0.9.16[${MULTILIB_USEDEP}] )
177 + python? ( ${PYTHON_DEPS} )
178 +"
179 +
180 +DEPEND="dev-libs/libxslt
181 + doc? ( app-doc/doxygen )
182 + virtual/pkgconfig
183 + ${PYTHON_DEPS}
184 + ${RDEPEND}
185 +"
186 +
187 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
188 +
189 +WAF_BINARY="${S}/buildtools/bin/waf"
190 +
191 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pyldb.h )
192 +
193 +PATCHES=(
194 + "${FILESDIR}"/${PN}-1.5.2-optional_packages.patch
195 + "${FILESDIR}"/${PN}-1.1.31-fix_PKGCONFIGDIR-when-python-disabled.patch
196 +)
197 +
198 +pkg_setup() {
199 + python-single-r1_pkg_setup
200 +}
201 +
202 +src_prepare() {
203 + default
204 + multilib_copy_sources
205 +}
206 +
207 +multilib_src_configure() {
208 + local myconf=(
209 + $(usex ldap '' --disable-ldap)
210 + $(usex lmdb '' --without-ldb-lmdb)
211 + --disable-rpath
212 + --disable-rpath-install --bundled-libraries=NONE
213 + --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba
214 + --builtin-libraries=NONE
215 + )
216 + if ! multilib_is_native_abi; then
217 + myconf+=( --disable-python )
218 + else
219 + use python || myconf+=( --disable-python )
220 + fi
221 + waf-utils_src_configure "${myconf[@]}"
222 +}
223 +
224 +multilib_src_compile(){
225 + waf-utils_src_compile
226 + multilib_is_native_abi && use doc && doxygen Doxyfile
227 +}
228 +
229 +multilib_src_test() {
230 + if multilib_is_native_abi; then
231 + WAF_MAKE=1 \
232 + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${BUILD_DIR}"/bin/shared/private/ \
233 + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${BUILD_DIR}"/bin/shared/private/:"${BUILD_DIR}"/bin/shared \
234 + waf test || die
235 + fi
236 +}
237 +
238 +multilib_src_install() {
239 + waf-utils_src_install
240 +
241 + if multilib_is_native_abi && use doc; then
242 + doman apidocs/man/man3/*.3
243 + docinto html
244 + dodoc -r apidocs/html/*
245 + fi
246 +}
247 +
248 +pkg_postinst() {
249 + if has_version sys-auth/sssd; then
250 + ewarn "You have sssd installed. It is known to break after ldb upgrades,"
251 + ewarn "so please try to rebuild it before reporting bugs."
252 + ewarn "See https://bugs.gentoo.org/404281"
253 + fi
254 +}