Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/hy/
Date: Mon, 21 Dec 2015 15:49:44
Message-Id: 1450712938.4aa525ab0f2bd3b2b1a6b51d3b776c66ff6ecbfd.patrick@gentoo
1 commit: 4aa525ab0f2bd3b2b1a6b51d3b776c66ff6ecbfd
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 21 15:48:58 2015 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 21 15:48:58 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aa525ab
7
8 dev-lang/hy: Fix docs and examples install #562160
9
10 Package-Manager: portage-2.2.26
11
12 dev-lang/hy/hy-0.11.0-r1.ebuild | 43 +++++++++++++++++++++++++++++++++++++++++
13 1 file changed, 43 insertions(+)
14
15 diff --git a/dev-lang/hy/hy-0.11.0-r1.ebuild b/dev-lang/hy/hy-0.11.0-r1.ebuild
16 new file mode 100644
17 index 0000000..c0e9079
18 --- /dev/null
19 +++ b/dev-lang/hy/hy-0.11.0-r1.ebuild
20 @@ -0,0 +1,43 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +RESTRICT="test" # needs some pointy sticks. Seriously.
28 +PYTHON_COMPAT=(python2_7 python3_3 python3_4)
29 +
30 +inherit distutils-r1
31 +DESCRIPTION="A LISP dialect running in python"
32 +HOMEPAGE="http://hylang.org/"
33 +SRC_URI="https://github.com/hylang/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
34 +LICENSE="MIT"
35 +SLOT="0"
36 +
37 +KEYWORDS="~amd64 ~x86"
38 +IUSE="test doc examples"
39 +
40 +RDEPEND="dev-python/flake8[${PYTHON_USEDEP}]
41 + >=dev-python/rply-0.7.0[${PYTHON_USEDEP}]
42 + >=dev-python/astor-0.5[${PYTHON_USEDEP}]
43 + dev-python/clint[${PYTHON_USEDEP}]
44 + "
45 +DEPEND="${RDEPEND}
46 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
47 + test? ( dev-python/tox[${PYTHON_USEDEP}]
48 + dev-python/nose[${PYTHON_USEDEP}]
49 + dev-python/sphinx[${PYTHON_USEDEP}]
50 + dev-python/coverage[${PYTHON_USEDEP}]
51 + )"
52 +src_prepare() {
53 + use examples && EXAMPLES=( eg/. )
54 + use doc && HTML_DOCS=( docs/_build/html/. )
55 +}
56 +
57 +python_compile_all() {
58 + use doc && make docs || die
59 +}
60 +
61 +python_test() {
62 + nosetests || die "Tests failed under ${EPYTHON}"
63 +}