1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
7 PYTHON_REQ_USE="threads"
9 inherit python-single-r1 waf-utils multilib
11 DESCRIPTION="An LDAP-like embedded database"
12 HOMEPAGE="http://ldb.samba.org"
13 SRC_URI="http://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
17 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh x86 ~amd64-fbsd ~x86-fbsd"
20 RDEPEND="dev-libs/popt
21 >=sys-libs/talloc-2.1.0[python]
22 >=sys-libs/tevent-0.9.21[python(+)]
23 >=sys-libs/tdb-1.2.12[python]
25 !!<net-fs/samba-3.6.0[ldb]
26 !!>=net-fs/samba-4.0.0[ldb]
30 DEPEND="dev-libs/libxslt
31 doc? ( app-doc/doxygen )
35 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
37 WAF_BINARY="${S}/buildtools/bin/waf"
40 python-single-r1_pkg_setup
44 waf-utils_src_configure \
46 --disable-rpath-install --bundled-libraries=NONE \
47 --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/samba \
48 --builtin-libraries=NONE
53 use doc && doxygen Doxyfile
58 PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${S}"/bin/shared/private/ \
59 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${S}"/bin/shared/private/:"${S}"/bin/shared waf test || die
66 dohtml -r apidocs/html/*
67 doman apidocs/man/man3/*.3
72 if has_version sys-auth/sssd; then
73 ewarn "You have sssd installed. It is known to break after ldb upgrades,"
74 ewarn "so please try to rebuild it before reporting bugs."
75 ewarn "See https://bugs.gentoo.org/404281"