blob: 61d8f10c7cc349606bed0ad151601a119cae0c0b (
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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/enaml/enaml-0.9.8.ebuild,v 1.1 2014/11/17 02:40:54 idella4 Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1 virtualx flag-o-matic
DESCRIPTION="Enthought Tool Suite: framework for writing declarative interfaces"
HOMEPAGE="http://code.enthought.com/projects/enaml/ http://pypi.python.org/pypi/enaml"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="examples test"
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/atom-0.3.8[${PYTHON_USEDEP}]
>=dev-python/kiwisolver-0.1.2[${PYTHON_USEDEP}]
>=dev-python/ply-3.4[${PYTHON_USEDEP}]
|| ( dev-python/wxpython[${PYTHON_USEDEP}] \
dev-python/PyQt4[${PYTHON_USEDEP}] \
dev-python/pyside[${PYTHON_USEDEP}] )"
DEPEND="${RDEPEND}
test? ( dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/wxpython[${PYTHON_USEDEP}]
dev-python/pyside[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}] )"
# The testsuite antagonises gentoo conventions far beyond what can currently be dealt with
# It also passes all once run
RESTRICT="test"
# Doc build now fails, missing required folder, use doc removed for now
# https://github.com/nucleic/enaml/issues/170
#python_compile_all() {
# use doc && emake -C docs html
#}
python_prepare_all() {
append-flags -fno-strict-aliasing
distutils-r1_python_prepare_all
}
python_test() {
export ETS_TOOLKIT=qt4
export QT_API=pyside
VIRTUALX_COMMAND="nosetests -v" virtualmake
}
python_install_all() {
# use doc && local HTML_DOCS=( docs/build/html/. )
use examples && local EXAMPLES=( examples/. )
distutils-r1_python_install_all
}
|