diff options
author | Ian Delaney <della5@iinet.com.au> | 2012-05-21 02:55:13 +0800 |
---|---|---|
committer | Ian Delaney <della5@iinet.com.au> | 2012-05-21 02:55:13 +0800 |
commit | e0ef03ad4f32413bfb1c27e1f2c8f43949969ca2 (patch) | |
tree | c8c88454ea83224ceaf406613614990df0550cd5 | |
parent | [dev-python/workerpoo] New ebuild (diff) | |
download | improvise-e0ef03ad4f32413bfb1c27e1f2c8f43949969ca2.tar.gz improvise-e0ef03ad4f32413bfb1c27e1f2c8f43949969ca2.tar.bz2 improvise-e0ef03ad4f32413bfb1c27e1f2c8f43949969ca2.zip |
[dev-python/starcluster] new ebuild review
(Portage version: 2.1.10.56/git/Linux x86_64, unsigned Manifest commit)
-rw-r--r-- | dev-python/starcluster/Manifest | 1 | ||||
-rw-r--r-- | dev-python/starcluster/metadata.xml | 13 | ||||
-rw-r--r-- | dev-python/starcluster/starcluster-0.93.3.ebuild | 86 |
3 files changed, 100 insertions, 0 deletions
diff --git a/dev-python/starcluster/Manifest b/dev-python/starcluster/Manifest new file mode 100644 index 0000000..d68905d --- /dev/null +++ b/dev-python/starcluster/Manifest @@ -0,0 +1 @@ +DIST StarCluster-0.93.3.tar.gz 2334885 SHA256 fcda894be33ba309b1c7a94d6c28f1674c3f05ec756133138a39db2138d080d0 SHA512 f81cfc528a00f45f6e720645f44666947f1c51dd3453ac5d78b201d6c3a3cd9f6d97cb7a2802eaf04603d9a19810045ca6071722c9af884ba7e407ffc99078ea WHIRLPOOL b6bfde98f3b660211c5e08965cc6ee31fc9038ec4039ef5aa12ab9c5d474f60f66c1745fb93cce7e05cb361cff6091f60714168ffca81e4033f2fecc5d9d448f diff --git a/dev-python/starcluster/metadata.xml b/dev-python/starcluster/metadata.xml new file mode 100644 index 0000000..947234e --- /dev/null +++ b/dev-python/starcluster/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <maintainer><email>tampakrap@gentoo.org</email></maintainer> + <maintainer> + <email>johneed@hotmail.com,della5@iinet.com.au</email> + <name>Ian Delaney aka idella4 proxy maintainer</name> + </maintainer> + <use> + <flag name='epydoc'>Enable build of apidocs in html using epydoc</flag> + </use> +</pkgmetadata> diff --git a/dev-python/starcluster/starcluster-0.93.3.ebuild b/dev-python/starcluster/starcluster-0.93.3.ebuild new file mode 100644 index 0000000..c081e3d --- /dev/null +++ b/dev-python/starcluster/starcluster-0.93.3.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +#dev-python/starcluster-0.93.3.ebuild 2011/04/19 jtriley + +EAPI="4" + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" +DISTUTILS_SRC_TEST="nosetests" + +inherit distutils bash-completion-r1 + +MY_PN="StarCluster" +MY_P="${MY_PN}-${PV}" + +# description is much too long +DESCRIPTION="StarCluster is a utility for creating and managing general purpose computing" +# clusters hosted on Amazonn's Elastic Compute Cloud" +HOMEPAGE="http://web.mit.edu/star/cluster" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +#SRC_URI="http://pypi.python.org/packages/source/S/${MY_PN}/${MY_P}.tar.gz" +LICENSE="LGPL-3" +KEYWORDS="~amd64" +SLOT="0" + +IUSE="doc bash-completion epydoc" + +RDEPEND=">=dev-python/ssh-1.7.13 + >=dev-python/boto-2.3.0 + >=dev-python/jinja-2.6 + >=dev-python/decorator-3.1.1 + >=dev-python/pyasn1-0.0.13_beta + >=dev-python/workerpool-0.9.2" + +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx + dev-python/epydoc ) + dev-python/setuptools" + +S="${WORKDIR}/${MY_P}" + +PYTHON_MODNAME="${PN}" + +src_compile() { + distutils_src_compile + + # epydoc and doc selections make entriely distinct documentation. epydoc builds apidocs + # Note: made shorter by avoiding if then clause. Ensures exit if build fails + use doc && emake -C docs/sphinx html + + mkdocs() { + local exit_status=0 + local msg="build with epydoc failed" + pushd docs/epydoc/ + PATH=$PATH:./ PYTHONPATH="${S}/build-${PYTHON_ABI}/lib" ./build.sh || exit_status=1 + ! [[ exit_status ]] && eerror "$msg" + popd + return $exit_status + } + use epydoc && python_execute_function -f mkdocs +} + +src_install() { + distutils_src_install + # --install-scripts="/usr/bin" is taken care of by distutils anyway + dobashcompletion completion/${PN}-completion.sh ${PN} + + # code in initial copy + # dohtml -A txt -r docs/sphinx/_build/html/* prefer mine but the results differ + use doc && dohtml -r docs/sphinx/_build/html/ + if use epydoc; then + insinto usr/share/doc/${P}/ + doins -r docs/apidocs/ + fi +} + +src_test() { + distutils_src_test -v ${PN}/tests +} + +pkg_postinst() { + bash-completion_pkg_postinst + distutils_pkg_postinst +} |