summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-01-15 10:22:07 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-01-15 10:22:07 +0000
commitac48fecfd5391d024e576410bc87e9ed0024bb9b (patch)
tree8548a1bebc7b6172152784e25c44574a53dbe108 /dev-python/codetools
parentInitial import (diff)
downloadgentoo-2-ac48fecfd5391d024e576410bc87e9ed0024bb9b.tar.gz
gentoo-2-ac48fecfd5391d024e576410bc87e9ed0024bb9b.tar.bz2
gentoo-2-ac48fecfd5391d024e576410bc87e9ed0024bb9b.zip
Initial import
(Portage version: 2.2_rc20/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'dev-python/codetools')
-rw-r--r--dev-python/codetools/ChangeLog10
-rw-r--r--dev-python/codetools/codetools-3.0.1.ebuild58
-rw-r--r--dev-python/codetools/metadata.xml19
3 files changed, 87 insertions, 0 deletions
diff --git a/dev-python/codetools/ChangeLog b/dev-python/codetools/ChangeLog
new file mode 100644
index 000000000000..eba1a8e65851
--- /dev/null
+++ b/dev-python/codetools/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-python/codetools
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/codetools/ChangeLog,v 1.1 2009/01/15 10:22:06 bicatali Exp $
+
+*codetools-3.0.1 (15 Jan 2009)
+
+ 15 Jan 2009; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml,
+ +codetools-3.0.1.ebuild:
+ Initial import
+
diff --git a/dev-python/codetools/codetools-3.0.1.ebuild b/dev-python/codetools/codetools-3.0.1.ebuild
new file mode 100644
index 000000000000..45b4af7ac1f8
--- /dev/null
+++ b/dev-python/codetools/codetools-3.0.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/codetools/codetools-3.0.1.ebuild,v 1.1 2009/01/15 10:22:07 bicatali Exp $
+
+EAPI=2
+inherit distutils
+
+MY_PN="CodeTools"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Enthought Tool Suite code analysis and execution tools"
+HOMEPAGE="http://code.enthought.com/projects/code_tools.php"
+SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+IUSE="doc examples test"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+LICENSE="BSD"
+
+RDEPEND=">=dev-python/numpy-1.1
+ dev-python/traits"
+DEPEND="dev-python/setuptools
+ doc? ( dev-python/setupdocs )
+ test? ( >=dev-python/nose-0.10.3
+ dev-python/apptools
+ dev-python/blockcanvas )"
+
+S="${WORKDIR}/${MY_P}"
+
+PYTHON_MODNAME="enthought"
+
+src_prepare() {
+ sed -i -e "/self.run_command('build_docs')/d" setup.py || die
+}
+
+src_compile() {
+ distutils_src_compile
+ if use doc; then
+ ${python} setup.py build_docs --formats=html,pdf \
+ || die "doc building failed"
+ fi
+}
+
+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 build/docs/html || die
+ doins build/docs/latex/*.pdf || die
+ fi
+ if use examples; then
+ doins -r examples || die
+ fi
+}
diff --git a/dev-python/codetools/metadata.xml b/dev-python/codetools/metadata.xml
new file mode 100644
index 000000000000..48bd6ec4a98c
--- /dev/null
+++ b/dev-python/codetools/metadata.xml
@@ -0,0 +1,19 @@
+<?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 CodeTools project from the Enthought Tool Suite
+ includes packages that simplify meta-programming
+ and help the programmer separate data from code in Python. This
+ library contains classes that allow defining simple snippets, or
+ "blocks", of Python code, analyze variable dependencies in the code
+ block, and use these dependencies to construct or restrict an
+ execution graph. These (restricted) code blocks can then be executed
+ in any namespace. However, this project also provides a
+ Traits-event-enhanced namespace, called a "context", which can be used
+ in place of a vanilla namespace to allow actions to be performed
+ whenever variables are assigned or retrieved from the namespace. This
+ project is used as the foundation for the BlockCanvas project.
+ </longdescription>
+</pkgmetadata>