diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2011-08-03 23:49:29 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2011-08-03 23:49:29 +0000 |
commit | f89a562ca9ff1206025786a9241fb294fcd1a21c (patch) | |
tree | 47814791bf32edafbadcb2d137023e3cbdf5bb4f /dev-python/traitsui | |
parent | Initial import (diff) | |
download | gentoo-2-f89a562ca9ff1206025786a9241fb294fcd1a21c.tar.gz gentoo-2-f89a562ca9ff1206025786a9241fb294fcd1a21c.tar.bz2 gentoo-2-f89a562ca9ff1206025786a9241fb294fcd1a21c.zip |
Initial import
(Portage version: 2.1.10.10/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/traitsui')
-rw-r--r-- | dev-python/traitsui/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/traitsui/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/traitsui/traitsui-4.0.1.ebuild | 63 |
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-python/traitsui/ChangeLog b/dev-python/traitsui/ChangeLog new file mode 100644 index 000000000000..f9513a3bc509 --- /dev/null +++ b/dev-python/traitsui/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/traitsui +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/traitsui/ChangeLog,v 1.1 2011/08/03 23:49:29 bicatali Exp $ + +*traitsui-4.0.1 (03 Aug 2011) + + 03 Aug 2011; Sébastien Fabbro <bicatali@gentoo.org> +traitsui-4.0.1.ebuild, + +metadata.xml: + Initial import + diff --git a/dev-python/traitsui/metadata.xml b/dev-python/traitsui/metadata.xml new file mode 100644 index 000000000000..14d79a6401cd --- /dev/null +++ b/dev-python/traitsui/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>python</herd> +<longdescription lang="en"> + The traitsui project contains a toolkit-independent GUI abstraction + layer, which is used to support the "visualization" features of the + Traits package. Thus, you can write code in terms of the Traits API + (views, items, editors, etc.), and let traitsui and your selected + toolkit and back-end take care of the details of displaying them. +</longdescription> +</pkgmetadata> diff --git a/dev-python/traitsui/traitsui-4.0.1.ebuild b/dev-python/traitsui/traitsui-4.0.1.ebuild new file mode 100644 index 000000000000..b36ce07eaff9 --- /dev/null +++ b/dev-python/traitsui/traitsui-4.0.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/traitsui/traitsui-4.0.1.ebuild,v 1.1 2011/08/03 23:49:29 bicatali Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython" +DISTUTILS_SRC_TEST="nosetests" + +inherit distutils virtualx + +DESCRIPTION="Enthought Tool Suite: traits-capable user interfaces" +HOMEPAGE="https://github.com/enthought/traitsui http://pypi.python.org/pypi/traitsui" +SRC_URI="http://www.enthought.com/repo/ets/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc examples test" + +RDEPEND="dev-python/pyface + dev-python/traits" +DEPEND="dev-python/setuptools + doc? ( dev-python/sphinx ) + test? ( + ${RDEPEND} + media-fonts/font-cursor-misc + media-fonts/font-misc-misc + )" + +DOCS="docs/*.txt" + +src_compile() { + distutils_src_compile + if use doc; then + einfo "Generation of documentation" + pushd docs > /dev/null + emake html || die "Generation of documentation failed" + popd > /dev/null + fi +} + +src_test() { + VIRTUALX_COMMAND="distutils_src_test" virtualmake +} + +src_install() { + find -name "*LICENSE*.txt" -delete + distutils_src_install + + if use doc; then + pushd docs/build/html > /dev/null + insinto /usr/share/doc/${PF}/html + doins -r [a-z]* _static || die "Installation of documentation failed" + popd > /dev/null + fi + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples || die "Installation of examples failed" + fi +} |