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