| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyface/pyface-4.1.0.ebuild,v 1.3 2012/11/08 15:03:12 idella4 Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
SUPPORT_PYTHON_ABIS="1" |
| 8 |
RESTRICT_PYTHON_ABIS="3.* *-jython 2.5" |
| 9 |
DISTUTILS_SRC_TEST="nosetests" |
| 10 |
PYTHON_TESTS_RESTRICTED_ABIS="2.[56] 2.7-pypy-*" |
| 11 |
inherit distutils virtualx |
| 12 |
|
| 13 |
DESCRIPTION="Enthought Tool Suite: Traits-capable windowing framework" |
| 14 |
HOMEPAGE="https://github.com/enthought/pyface http://pypi.python.org/pypi/pyface" |
| 15 |
SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz" |
| 16 |
|
| 17 |
LICENSE="BSD" |
| 18 |
SLOT="0" |
| 19 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
| 20 |
IUSE="doc examples test" |
| 21 |
|
| 22 |
RDEPEND=">=dev-python/traits-4.1 |
| 23 |
|| ( dev-python/wxpython dev-python/PyQt4 dev-python/pyside )" |
| 24 |
DEPEND="dev-python/setuptools |
| 25 |
doc? ( dev-python/sphinx ) |
| 26 |
test? ( |
| 27 |
${RDEPEND} |
| 28 |
dev-python/traitsui |
| 29 |
media-fonts/font-cursor-misc |
| 30 |
media-fonts/font-misc-misc |
| 31 |
)" |
| 32 |
|
| 33 |
DOCS="docs/*.txt" |
| 34 |
|
| 35 |
src_compile() { |
| 36 |
distutils_src_compile |
| 37 |
use doc && emake -C docs html |
| 38 |
} |
| 39 |
|
| 40 |
src_test() { |
| 41 |
VIRTUALX_COMMAND="nosetests -I test_editor_area_pane*" virtualmake |
| 42 |
} |
| 43 |
|
| 44 |
src_install() { |
| 45 |
find -name "*LICENSE*.txt" -delete |
| 46 |
distutils_src_install |
| 47 |
|
| 48 |
use doc && dohtml -r docs/build/html/* |
| 49 |
|
| 50 |
if use examples; then |
| 51 |
insinto /usr/share/doc/${PF} |
| 52 |
doins -r examples |
| 53 |
fi |
| 54 |
} |