blob: b0345d8eeb899141e502558fa4686a5d2f3729f2 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/rdflib/rdflib-2.4.1.ebuild,v 1.2 2010/01/26 22:17:16 darkside Exp $
EAPI="2"
NEED_PYTHON="2.3"
SUPPORT_PYTHON_ABIS="1"
inherit distutils
DESCRIPTION="RDF library containing a triple store and parser/serializer"
HOMEPAGE="http://rdflib.net/"
SRC_URI="http://rdflib.net/${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-linux"
IUSE="berkdb examples mysql redland sqlite zodb"
DEPEND=">=dev-python/setuptools-0.6_rc5"
# test? ( dev-python/nose )"
RDEPEND="mysql? ( dev-python/mysql-python )
sqlite? (
>=dev-db/sqlite-3.3.13
|| ( dev-python/pysqlite >=dev-lang/python-2.5 ) )
berkdb? ( sys-libs/db )
redland? ( dev-libs/redland-bindings[python] )
zodb? ( net-zope/zodb )"
RESTRICT="test"
RESTRICT_PYTHON_ABIS="3*"
PYTHON_MODNAME="rdflib rdflib_tools"
src_prepare() {
# Don't install tests. Remove tests_require to prevent setuptools
# from trying to download deps that it can't find
sed -i \
-e '/packages = find_packages/s/"test"/&, "test.*"/' \
-e "/tests_require/d" \
setup.py || die "sed in setup.py failed"
}
src_test() {
testing() {
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" setup.py test
}
python_execute_function testing
}
src_install() {
distutils_src_install
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins -r examples/*
fi
}
|