diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-07 15:13:16 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-07 15:13:16 +0000 |
commit | 1ad6d7ed7005d7d7b9db085129efa0af662a34b8 (patch) | |
tree | 6e7a0189903c730b34ef6cdcf219015e60ec9f7f /dev-python/chaco | |
parent | Delete older ebuild. (diff) | |
download | gentoo-2-1ad6d7ed7005d7d7b9db085129efa0af662a34b8.tar.gz gentoo-2-1ad6d7ed7005d7d7b9db085129efa0af662a34b8.tar.bz2 gentoo-2-1ad6d7ed7005d7d7b9db085129efa0af662a34b8.zip |
Version bump.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/chaco')
-rw-r--r-- | dev-python/chaco/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/chaco/chaco-3.3.1.ebuild | 77 |
2 files changed, 84 insertions, 1 deletions
diff --git a/dev-python/chaco/ChangeLog b/dev-python/chaco/ChangeLog index 2c390fe29b31..5357d23b811a 100644 --- a/dev-python/chaco/ChangeLog +++ b/dev-python/chaco/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/chaco # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/chaco/ChangeLog,v 1.6 2010/04/23 05:57:59 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/chaco/ChangeLog,v 1.7 2010/07/07 15:13:16 arfrever Exp $ + +*chaco-3.3.1 (07 Jul 2010) + + 07 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + -chaco-3.2.0.ebuild, +chaco-3.3.1.ebuild: + Version bump. 23 Apr 2010; Sébastien Fabbro <bicatali@gentoo.org> chaco-3.3.0.ebuild: Added virtualx for tests diff --git a/dev-python/chaco/chaco-3.3.1.ebuild b/dev-python/chaco/chaco-3.3.1.ebuild new file mode 100644 index 000000000000..61dfabc0b2ee --- /dev/null +++ b/dev-python/chaco/chaco-3.3.1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/chaco/chaco-3.3.1.ebuild,v 1.1 2010/07/07 15:13:16 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" +DISTUTILS_SRC_TEST="setup.py" + +inherit distutils virtualx + +MY_PN="Chaco" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Interactive plotting toolkit" +HOMEPAGE="http://code.enthought.com/projects/chaco http://pypi.python.org/pypi/Chaco" +SRC_URI="http://www.enthought.com/repo/ETS/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples test" + +RDEPEND=">=dev-python/enable-3.3.1" +DEPEND="dev-python/setuptools + dev-python/numpy + doc? ( dev-python/setupdocs ) + test? ( >=dev-python/nose-0.10.3 + dev-python/coverage + >=dev-python/enable-3.3.1 + >=dev-python/enthoughtbase-3.0.5 + x11-apps/xhost + media-fonts/font-misc-misc + media-fonts/font-cursor-misc )" + +S="${WORKDIR}/${MY_P}" + +PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") + +PYTHON_MODNAME="enthought" + +src_prepare() { + # "${S}/enthought/chaco2/tests does not exist. + sed -e "s:,enthought/chaco2/tests::" -i setup.cfg || die "sed setup.cfg failed" + + sed \ + -e "s/self.run_command('build_docs')/pass/" \ + -e "/setupdocs>=1.0/d" \ + -i setup.py || die "sed setup.py failed" +} + +src_compile() { + distutils_src_compile + + if use doc; then + einfo "Generation of documentation" + "$(PYTHON -f)" setup.py build_docs --formats=html,pdf || die "Generation of documentation failed" + fi +} + +src_test() { + maketype="distutils_src_test" virtualmake +} + +src_install() { + find "${S}" -name "*LICENSE.txt" -delete + distutils_src_install + dodoc docs/*.txt + insinto /usr/share/doc/${PF} + if use doc; then + doins -r build/docs/html build/docs/latex/*.pdf || die + fi + if use examples; then + doins -r examples || die + fi +} |