1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
7 PYTHON_REQ_USE="threads(+)"
9 inherit waf-utils multilib-minimal python-single-r1
11 DESCRIPTION="A simple database API"
12 HOMEPAGE="http://tdb.samba.org/"
13 SRC_URI="http://samba.org/ftp/tdb/${P}.tar.gz"
17 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
20 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
22 RDEPEND="!elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
23 python? ( ${PYTHON_DEPS} )"
27 app-text/docbook-xml-dtd:4.2"
29 WAF_BINARY="${S}/buildtools/bin/waf"
39 multilib_src_configure() {
41 if ! multilib_is_native_abi || ! use python; then
42 extra_opts+=( --disable-python )
45 waf-utils_src_configure "${extra_opts[@]}"
48 multilib_src_compile() {
49 # need to avoid parallel building, this looks like the sanest way with waf-utils/multiprocessing eclasses
55 # the default src_test runs 'make test' and 'make check', letting
56 # the tests fail occasionally (reason: unknown)
60 multilib_src_install() {