diff options
Diffstat (limited to 'sys-libs/ldb/ldb-1.1.0.ebuild')
-rw-r--r-- | sys-libs/ldb/ldb-1.1.0.ebuild | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sys-libs/ldb/ldb-1.1.0.ebuild b/sys-libs/ldb/ldb-1.1.0.ebuild index fcf13cc3ed1d..919cb973902d 100644 --- a/sys-libs/ldb/ldb-1.1.0.ebuild +++ b/sys-libs/ldb/ldb-1.1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ldb/ldb-1.1.0.ebuild,v 1.1 2011/08/04 18:33:24 maksbotan Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ldb/ldb-1.1.0.ebuild,v 1.2 2011/08/07 21:10:07 maksbotan Exp $ EAPI="3" PYTHON_DEPEND="2" @@ -17,8 +17,8 @@ KEYWORDS="~amd64 ~x86" IUSE="doc" RDEPEND="dev-libs/popt - >=sys-libs/talloc-2.0.0 - sys-libs/tdb + >=sys-libs/talloc-2.0.0[python] + sys-libs/tdb[python] sys-libs/tevent net-nds/openldap" @@ -31,6 +31,7 @@ WAF_BINARY="${S}/buildtools/bin/waf-svn" pkg_setup() { python_set_active_version 2 python_pkg_setup + python_need_rebuild } src_configure() { @@ -48,6 +49,12 @@ src_compile(){ use doc && doxygen Doxyfile } +src_test() { + WAF_MAKE=1 \ + PATH=buildtools/bin:../../../buildtools/bin:$PATH:"${S}"/bin/shared/private/ \ + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/"${S}"/bin/shared/private/ waf test || die +} + src_install() { waf-utils_src_install rm "${D}/$(python_get_sitedir)/"_tevent.so @@ -57,3 +64,7 @@ src_install() { doman apidocs/man/man3/*.3 fi } + +pkg_postinst() { + python_need_rebuild +} |