summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/traitsgui/traitsgui-3.0.3.ebuild')
-rw-r--r--dev-python/traitsgui/traitsgui-3.0.3.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/traitsgui/traitsgui-3.0.3.ebuild b/dev-python/traitsgui/traitsgui-3.0.3.ebuild
new file mode 100644
index 000000000000..208b3483b57e
--- /dev/null
+++ b/dev-python/traitsgui/traitsgui-3.0.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/traitsgui/traitsgui-3.0.3.ebuild,v 1.1 2009/01/15 10:12:57 bicatali Exp $
+
+EAPI=2
+inherit distutils
+
+MY_PN="TraitsGUI"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Traits-capable windowing framework"
+HOMEPAGE="http://code.enthought.com/projects/traits_gui"
+SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+IUSE="doc examples qt4 test wxwindows"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+LICENSE="BSD"
+
+RDEPEND="dev-python/traits
+ qt4? ( dev-python/traitsbackendqt )
+ wxwindows? ( dev-python/traitsbackendwx )"
+
+DEPEND="dev-python/setuptools
+ test? ( >=dev-python/nose-0.10.3 )"
+
+# test needs X display
+RESTRICT=test
+S="${WORKDIR}/${MY_P}"
+
+PYTHON_MODNAME="enthought"
+
+src_prepare() {
+ sed -i -e "/self.run_command('build_docs')/d" setup.py || die
+}
+
+src_test() {
+ PYTHONPATH=build/lib ${python} setup.py test || die "tests failed"
+}
+
+src_install() {
+ find "${S}" -name \*LICENSE.txt -delete
+ distutils_src_install
+ insinto /usr/share/doc/${PF}
+ if use doc; then
+ doins -r docs/*.pdf || die
+ fi
+ if use examples; then
+ doins -r examples || die
+ fi
+}