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/ply/
Date: Sun, 11 Oct 2015 11:25:23
Message-Id: 1444562669.8ad387acd52815a6cda63e079cd8b83ddfe06f2c.jlec@gentoo
1 commit: 8ad387acd52815a6cda63e079cd8b83ddfe06f2c
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 10:31:59 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=8ad387ac
7
8 dev-python/ply: 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/ply/ply-3.8-r1.ebuild | 44 ++++++++++++++++++++++++++++++++++++++++
14 1 file changed, 44 insertions(+)
15
16 diff --git a/dev-python/ply/ply-3.8-r1.ebuild b/dev-python/ply/ply-3.8-r1.ebuild
17 new file mode 100644
18 index 0000000..d32b5aa
19 --- /dev/null
20 +++ b/dev-python/ply/ply-3.8-r1.ebuild
21 @@ -0,0 +1,44 @@
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="Python Lex-Yacc library"
33 +HOMEPAGE="http://www.dabeaz.com/ply/ https://pypi.python.org/pypi/ply"
34 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="BSD"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
39 +IUSE="examples"
40 +
41 +RDEPEND=""
42 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
43 +
44 +# See bug #458648 for reference
45 +RESTRICT="test"
46 +
47 +DOCS=( ANNOUNCE CHANGES TODO )
48 +
49 +PATCHES=( "${FILESDIR}/3.6-picklefile-IOError.patch" )
50 +
51 +python_test() {
52 + cp -r -l test "${BUILD_DIR}"/ || die
53 + cd "${BUILD_DIR}"/test || die
54 +
55 + local t
56 + for t in testlex.py testyacc.py; do
57 + "${PYTHON}" "${t}" || die "${t} fails with ${EPYTHON}"
58 + done
59 +}
60 +
61 +python_install_all() {
62 + local HTML_DOCS=( doc/. )
63 + use examples && local EXAMPLES=( example/. )
64 + distutils-r1_python_install_all
65 +}