blob: 89ec69a20942e2ca49082def3010dd6f957ddfe4 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/bottle/bottle-0.10.9.ebuild,v 1.3 2012/05/20 16:52:17 xarthisius Exp $
EAPI=4
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="*-jython"
inherit distutils
DESCRIPTION="A fast and simple micro-framework for small web-applications"
HOMEPAGE="http://pypi.python.org/pypi/bottle http://bottlepy.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-python/simplejson"
RDEPEND="${DEPEND}"
PYTHON_MODNAME=bottle.py
src_prepare() {
distutils_src_prepare
sed -e "/^sys.path.insert/d" -i test/{servertest.py,testall.py} || die
2to3_tests() {
local p_maj=$(python_get_version -l --major)
if [[ ! -d test-${p_maj} ]]; then
cp -r test test-${p_maj}
if [[ $p_maj == 3 ]]; then
2to3-${PYTHON_ABI} -nw --no-diffs test-${p_maj}
fi
fi
}
python_execute_function 2to3_tests
}
src_test() {
testing() {
local p_maj=$(python_get_version -l --major)
PYTHONPATH="build-${PYTHON_ABI}/lib/" "$(PYTHON)" test-${p_maj}/testall.py
}
python_execute_function testing
}
|