/[gentoo-x86]/dev-python/pychroot/pychroot-9999.ebuild
Gentoo

Contents of /dev-python/pychroot/pychroot-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Aug 5 02:14:51 2015 UTC (4 years, 5 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -1 lines
Add conditional 3to2 build dep.

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

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/pychroot/pychroot-9999.ebuild,v 1.6 2015/08/02 03:51:09 radhermit Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
7 inherit distutils-r1
8
9 if [[ ${PV} == *9999 ]] ; then
10 EGIT_REPO_URI="https://github.com/pkgcore/pychroot.git"
11 inherit git-r3
12 else
13 KEYWORDS="~amd64 ~x86"
14 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 fi
16
17 DESCRIPTION="a python library and cli tool that simplify chroot handling"
18 HOMEPAGE="https://github.com/pkgcore/pychroot"
19
20 LICENSE="BSD"
21 SLOT="0"
22 IUSE="test"
23
24 RDEPEND="
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 =dev-python/snakeoil-9999[${PYTHON_USEDEP}]
27 "
28 DEPEND="${RDEPEND}
29 $(python_gen_cond_dep 'dev-python/3to2[${PYTHON_USEDEP}]' python2_7)
30 test? (
31 $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
32 dev-python/pytest[${PYTHON_USEDEP}]
33 )"
34 [[ ${PV} == *9999 ]] && DEPEND+=" dev-python/sphinx[${PYTHON_USEDEP}]"
35
36 python_compile_all() {
37 [[ ${PV} == *9999 ]] && emake -C doc man
38 }
39
40 python_test() {
41 esetup.py test
42 }
43
44 python_install_all() {
45 distutils-r1_python_install_all
46 emake -C doc PREFIX=/usr DESTDIR="${D}" install_man
47 }

  ViewVC Help
Powered by ViewVC 1.1.20