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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Feb 7 06:20:19 2015 UTC (4 years, 11 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
bump

(Portage version: 2.2.14/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.0-r1.ebuild,v 1.1 2014/11/25 17:16:46 floppym 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 "
25 DEPEND="${RDEPEND}
26 dev-python/setuptools[${PYTHON_USEDEP}]
27 doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
28 >=dev-python/python-docs-2.7.6-r1:2.7
29 dev-python/alabaster[${PYTHON_USEDEP}] )
30 test? ( dev-python/nose[${PYTHON_USEDEP}]
31 <dev-python/fudge-1.0[${PYTHON_USEDEP}]
32 dev-python/jinja[${PYTHON_USEDEP}] )"
33
34 S="${WORKDIR}/${MY_P}"
35
36 python_prepare_all() {
37 # Re-set intersphinx_mapping for doc build
38 if use doc; then
39 local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
40 local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
41 local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
42 local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
43 sed -e "s|'http://docs.python.org/2.6', None|'${PYTHON_DOC}', '${PYTHON_DOC_INVENTORY}'|" \
44 -e "s| 'www'| #'www'|" \
45 -i sites/docs/conf.py || die
46 fi
47 distutils-r1_python_prepare_all
48 }
49
50 python_compile_all() {
51 if use doc; then
52 sphinx-build -b html -c sites/docs/ sites/docs/ sites/docs/html || die
53 fi
54 }
55
56 python_test() {
57 nosetests tests || die "Tests failed under ${EPYTHON}"
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