summaryrefslogtreecommitdiff
blob: 8dce143027a99f79810c1003eea17f20ca826449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-cdb/python-cdb-0.32-r1.ebuild,v 1.1 2006/09/25 18:41:34 marienz Exp $

inherit distutils eutils

DESCRIPTION="A Python extension module for cdb"
SRC_URI="http://pilcrow.madison.wi.us/python-cdb/${P}.tar.gz"
HOMEPAGE="http://pilcrow.madison.wi.us/#pycdb"

SLOT="0"
IUSE=""
LICENSE="GPL-2"
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc-macos ~sparc ~x86"

DEPEND=">=dev-lang/python-2.2
	dev-db/cdb"
RDEPEND="${DEPEND}"

DOCS="Example"


src_unpack() {
	unpack ${A}
	cd "${S}"

	epatch "${FILESDIR}/${P}-python-2.5-compat.patch"
}

src_test() {
	"${python}" setup.py install --home "${T}/test"
	# This is not really intended as test but it is better than nothing.
	PYTHONPATH="${T}/test/lib/python" "${python}" < Example || \
		die "Test failed."
	rm -rf "${T}/test"
}