Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/click/
Date: Sun, 11 Oct 2015 11:25:24
Message-Id: 1444562669.0e9c98b12c175756d6b0d2b182c055aafce7982d.jlec@gentoo
1 commit: 0e9c98b12c175756d6b0d2b182c055aafce7982d
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 10:43:17 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 11:24:29 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e9c98b1
7
8 dev-python/click: Add python3.5 support
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/click/click-5.1-r1.ebuild | 43 ++++++++++++++++++++++++++++++++++++
14 1 file changed, 43 insertions(+)
15
16 diff --git a/dev-python/click/click-5.1-r1.ebuild b/dev-python/click/click-5.1-r1.ebuild
17 new file mode 100644
18 index 0000000..71da877
19 --- /dev/null
20 +++ b/dev-python/click/click-5.1-r1.ebuild
21 @@ -0,0 +1,43 @@
22 +# Copyright 1999-2015 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=5
27 +
28 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
29 +
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="A Python package for creating beautiful command line interfaces"
33 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
34 +HOMEPAGE="http://click.pocoo.org/ https://pypi.python.org/pypi/click"
35 +
36 +LICENSE="BSD"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE="doc examples test"
40 +
41 +DEPEND="
42 + dev-python/setuptools[${PYTHON_USEDEP}]
43 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )
44 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
45 +
46 +python_prepare_all() {
47 + # Prevent un-needed d'loading
48 + sed -e "s/, 'sphinx.ext.intersphinx'//" -i docs/conf.py || die
49 + distutils-r1_python_prepare_all
50 +}
51 +
52 +python_compile_all() {
53 + use doc && emake -C docs html
54 +}
55 +
56 +python_test() {
57 + emake test
58 +}
59 +
60 +python_install_all() {
61 + use doc && local HTML_DOCS=( docs/_build/html/. )
62 + use examples && local EXAMPLES=( examples/. )
63 + distutils-r1_python_install_all
64 +}