blob: cf40d4ca1c5d52c606a9d2f78a840dbfc4561840 (
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
58
59
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/kiwi/kiwi-1.9.36.2.ebuild,v 1.1 2013/01/22 06:02:43 patrick Exp $
EAPI="4"
PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 2.5 3.* *-jython *-pypy-*"
inherit distutils versionator virtualx
DESCRIPTION="Kiwi is a pure Python framework and set of enhanced PyGTK widgets"
HOMEPAGE="http://www.async.com.br/projects/kiwi/
https://launchpad.net/kiwi
http://pypi.python.org/pypi/kiwi-gtk"
MY_PN="${PN}-gtk"
MY_P="${MY_PN}-${PV}"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-interix ~amd64-linux ~x86-linux"
IUSE="examples test"
RDEPEND="dev-python/pygtk"
DEPEND="${RDEPEND}
test? (
dev-python/pep8
dev-python/pyflakes
dev-python/twisted
)
"
S="${WORKDIR}/${MY_P}"
src_prepare() {
distutils_src_prepare
sed -e "s:share/doc/kiwi:share/doc/${PF}:g" -i setup.py || die "sed failed"
}
src_test() {
# Tarballs are missing files.
# https://code.launchpad.net/~floppym/kiwi/testfiles/+merge/106505
rm tests/test_ui.py tests/test_Delegate.py
testing() {
"$(PYTHON)" tests/run_all_tests.py
}
VIRTUALX_COMMAND=python_execute_function virtualmake testing
}
src_install() {
distutils_src_install
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
|