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/pyyaml/
Date: Sun, 11 Oct 2015 11:25:33
Message-Id: 1444562669.ab1330d67a723c13bc55e670e0e022480ceae786.jlec@gentoo
1 commit: ab1330d67a723c13bc55e670e0e022480ceae786
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 10:45:20 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=ab1330d6
7
8 dev-python/pyyaml: 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/pyyaml/pyyaml-3.11-r1.ebuild | 42 +++++++++++++++++++++++++++++++++
14 1 file changed, 42 insertions(+)
15
16 diff --git a/dev-python/pyyaml/pyyaml-3.11-r1.ebuild b/dev-python/pyyaml/pyyaml-3.11-r1.ebuild
17 new file mode 100644
18 index 0000000..364e467
19 --- /dev/null
20 +++ b/dev-python/pyyaml/pyyaml-3.11-r1.ebuild
21 @@ -0,0 +1,42 @@
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 +MY_P="PyYAML-${PV}"
33 +
34 +DESCRIPTION="YAML parser and emitter for Python"
35 +HOMEPAGE="http://pyyaml.org/wiki/PyYAML https://pypi.python.org/pypi/PyYAML"
36 +SRC_URI="http://pyyaml.org/download/${PN}/${MY_P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
41 +IUSE="examples libyaml"
42 +
43 +RDEPEND="libyaml? ( dev-libs/libyaml )"
44 +DEPEND="${RDEPEND}
45 + libyaml? ( $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' python2_7 'python3*') )"
46 +
47 +S="${WORKDIR}/${MY_P}"
48 +
49 +python_configure_all() {
50 + mydistutilsargs=( $(use_with libyaml) )
51 +}
52 +
53 +python_test() {
54 + esetup.py test
55 +}
56 +
57 +python_install_all() {
58 + distutils-r1_python_install_all
59 + if use examples; then
60 + dodoc -r examples
61 + docompress -x /usr/share/doc/${PF}
62 + fi
63 +}