/[gentoo-x86]/sys-libs/ldb/ldb-1.1.12.ebuild
Gentoo

Contents of /sys-libs/ldb/ldb-1.1.12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Jan 3 13:06:57 2015 UTC (5 years, 8 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +3 -2 lines
Add PYTHON_REQ_USE as necessary for waf.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/ldb/ldb-1.1.12.ebuild,v 1.9 2014/05/26 19:52:14 mgorny Exp $
4
5 EAPI="4"
6 PYTHON_DEPEND="2"
7 PYTHON_REQ_USE="threads"
8
9 inherit python waf-utils multilib
10
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"
14
15 LICENSE="LGPL-3"
16 SLOT="0"
17 KEYWORDS="~alpha amd64 hppa ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
18 IUSE="doc"
19
20 RDEPEND="dev-libs/popt
21 >=sys-libs/talloc-2.0.7[python]
22 >=sys-libs/tevent-0.9.17[python(+)]
23 >=sys-libs/tdb-1.2.10[python]
24 net-nds/openldap
25 !!<net-fs/samba-3.6.0[ldb]
26 !!>=net-fs/samba-4.0.0[ldb]
27 "
28
29 DEPEND="dev-libs/libxslt
30 doc? ( app-doc/doxygen )
31 virtual/pkgconfig
32 ${RDEPEND}"
33
34 WAF_BINARY="${S}/buildtools/bin/waf"
35
36 pkg_setup() {
37 python_set_active_version 2
38 python_pkg_setup
39 python_need_rebuild
40 }
41
42 src_configure() {
43 waf-utils_src_configure \
44 --disable-rpath \
45 --disable-rpath-install --bundled-libraries=NONE \
46 --with-modulesdir="${EPREFIX}"/usr/$(get_libdir)/ldb/modules \
47 --builtin-libraries=NONE
48 }
49
50 src_compile(){
51 waf-utils_src_compile
52 use doc && doxygen Doxyfile
53 }
54
55 src_test() {
56 WAF_MAKE=1 \
57 PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${S}"/bin/shared/private/ \
58 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${S}"/bin/shared/private/:"${S}"/bin/shared waf test || die
59 }
60
61 src_install() {
62 waf-utils_src_install
63
64 if use doc; then
65 dohtml -r apidocs/html/*
66 doman apidocs/man/man3/*.3
67 fi
68 }
69
70 pkg_postinst() {
71 python_need_rebuild
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 http://bugs.gentoo.org/404281"
76 fi
77 }

  ViewVC Help
Powered by ViewVC 1.1.20