| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/tdb/tdb-1.2.9.ebuild,v 1.6 2012/03/08 06:18:13 patrick Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
PYTHON_DEPEND="python? 2"
|
| 7 |
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
|
| 8 |
|
| 9 |
inherit waf-utils python
|
| 10 |
|
| 11 |
DESCRIPTION="A simple database API"
|
| 12 |
HOMEPAGE="http://tdb.samba.org/"
|
| 13 |
SRC_URI="http://samba.org/ftp/tdb/${P}.tar.gz"
|
| 14 |
|
| 15 |
LICENSE="GPL-3"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd"
|
| 18 |
IUSE="python"
|
| 19 |
|
| 20 |
RDEPEND=""
|
| 21 |
DEPEND="|| ( dev-lang/python:2.7 dev-lang/python:2.6 )
|
| 22 |
app-text/docbook-xml-dtd:4.2"
|
| 23 |
|
| 24 |
WAF_BINARY="${S}/buildtools/bin/waf"
|
| 25 |
|
| 26 |
pkg_setup() {
|
| 27 |
python_set_active_version 2
|
| 28 |
python_pkg_setup
|
| 29 |
}
|
| 30 |
|
| 31 |
src_configure() {
|
| 32 |
local extra_opts=""
|
| 33 |
use python || extra_opts+=" --disable-python"
|
| 34 |
waf-utils_src_configure \
|
| 35 |
${extra_opts}
|
| 36 |
}
|
| 37 |
|
| 38 |
src_test() {
|
| 39 |
# the default src_test runs 'make test' and 'make check', letting
|
| 40 |
# the tests fail occasionally (reason: unknown)
|
| 41 |
emake check || die "emake check failed"
|
| 42 |
}
|