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