We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

comparison dev-python/webob/webob-1.0.8.ebuild @ 12:c3acf66affe4

adding everything related to rhodecode; most likely got some transitive dependencies in rhodecode ebuild, needs cleaning
author Daniel Neugebauer <dneuge@energiequant.de>
date Tue, 24 Jul 2012 23:20:53 +0200
parents
children
comparison
equal deleted inserted replaced
11:60c9e5c6cdce 12:c3acf66affe4
1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/webob/webob-1.0.7.ebuild,v 1.6 2011/07/20 22:42:44 halcy0n Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.*"
9 DISTUTILS_SRC_TEST="nosetests"
10
11 inherit distutils eutils
12
13 MY_PN="WebOb"
14 MY_P="${MY_PN}-${PV}"
15
16 DESCRIPTION="WSGI request and response object"
17 HOMEPAGE="http://pythonpaste.org/webob/ http://pypi.python.org/pypi/WebOb"
18 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
19
20 LICENSE="MIT"
21 SLOT="0"
22 KEYWORDS="~alpha amd64 ~arm ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
23 IUSE="doc test"
24
25 DEPEND="app-arch/unzip
26 dev-python/setuptools
27 doc? ( dev-python/sphinx )
28 test? ( dev-python/webtest )"
29 RDEPEND=""
30
31 S="${WORKDIR}/${MY_P}"
32
33 src_prepare() {
34 distutils_src_prepare
35 }
36
37 src_compile() {
38 distutils_src_compile
39
40 if use doc; then
41 einfo "Generation of documentation"
42 "$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed"
43 fi
44 }
45
46 src_install() {
47 distutils_src_install
48
49 if use doc; then
50 pushd build/sphinx/html > /dev/null
51 insinto /usr/share/doc/${PF}/html
52 doins -r [a-z]* _static || die "Installation of documentation failed"
53 popd > /dev/null
54 fi
55 }