/[gentoo-x86]/dev-python/fabric/fabric-1.10.2.ebuild
Gentoo

Contents of /dev-python/fabric/fabric-1.10.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Aug 5 08:00:42 2015 UTC (4 years, 5 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
bump; tidy test phase

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/fabric/fabric-1.10.1.ebuild,v 1.1 2015/02/07 06:20:19 idella4 Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 )
7
8 inherit distutils-r1
9
10 MY_PN="Fabric"
11 MY_P="${MY_PN}-${PV}"
12
13 DESCRIPTION="A simple pythonic tool for remote execution and deployment"
14 HOMEPAGE="http://fabfile.org http://pypi.python.org/pypi/Fabric"
15 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="doc test"
21
22 RDEPEND="
23 >=dev-python/paramiko-1.10[${PYTHON_USEDEP}]"
24 DEPEND="${RDEPEND}
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
27 >=dev-python/python-docs-2.7.6-r1:2.7
28 dev-python/alabaster[${PYTHON_USEDEP}] )
29 test? ( dev-python/nose[${PYTHON_USEDEP}]
30 <dev-python/fudge-1.0[${PYTHON_USEDEP}]
31 dev-python/jinja[${PYTHON_USEDEP}] )"
32
33 S="${WORKDIR}/${MY_P}"
34
35 python_prepare_all() {
36 # Re-set intersphinx_mapping for doc build
37 if use doc; then
38 local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
39 local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
40 local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
41 local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
42 sed -e "s|'http://docs.python.org/2.6', None|'${PYTHON_DOC}', '${PYTHON_DOC_INVENTORY}'|" \
43 -e "s| 'www'| #'www'|" \
44 -i sites/docs/conf.py || die
45 fi
46 distutils-r1_python_prepare_all
47 }
48
49 python_compile_all() {
50 if use doc; then
51 sphinx-build -b html -c sites/docs/ sites/docs/ sites/docs/html || die
52 fi
53 }
54
55 python_test() {
56 # 1 failure, reported https://github.com/fabric/fabric/issues/1360
57 esetup.py test
58 }
59
60 python_install_all() {
61 use doc && local HTML_DOCS=( sites/docs/html/. )
62 distutils-r1_python_install_all
63 }

  ViewVC Help
Powered by ViewVC 1.1.20