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/pygments/
Date: Sun, 11 Oct 2015 11:25:23
Message-Id: 1444562669.72de70a94e4f730877948ccb9ebdeef75aeaf61f.jlec@gentoo
1 commit: 72de70a94e4f730877948ccb9ebdeef75aeaf61f
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 10:35:44 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=72de70a9
7
8 dev-python/pygments: 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/pygments/pygments-2.0.2-r1.ebuild | 52 ++++++++++++++++++++++++++++
14 1 file changed, 52 insertions(+)
15
16 diff --git a/dev-python/pygments/pygments-2.0.2-r1.ebuild b/dev-python/pygments/pygments-2.0.2-r1.ebuild
17 new file mode 100644
18 index 0000000..33077c7
19 --- /dev/null
20 +++ b/dev-python/pygments/pygments-2.0.2-r1.ebuild
21 @@ -0,0 +1,52 @@
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 bash-completion-r1 vcs-snapshot
31 +
32 +MY_PN="Pygments"
33 +MY_P="${MY_PN}-${PV}"
34 +
35 +DESCRIPTION="Pygments is a syntax highlighting package written in Python"
36 +HOMEPAGE="http://pygments.org/ https://pypi.python.org/pypi/Pygments"
37 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
38 +
39 +LICENSE="BSD"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
42 +IUSE="doc test"
43 +
44 +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
45 +DEPEND="${RDEPEND}
46 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
47 + test? (
48 + dev-python/nose[${PYTHON_USEDEP}]
49 + virtual/ttf-fonts )"
50 +# dev-texlive/texlive-latexrecommended
51 +# Removing / commenting out this dep. I can find no mention of it in tests other than
52 +# importing pygment's own tex module. If it's there and I missed it just uncomment and re-add
53 +# Tests pass without it
54 +
55 +S="${WORKDIR}/${MY_P}"
56 +
57 +python_compile_all() {
58 + use doc && emake -C doc html
59 +}
60 +
61 +python_test() {
62 + cp -r -l tests "${BUILD_DIR}"/ || die
63 + # With pypy3 there is 1 error out of 1556 tests when run as is and
64 + # (SKIP=8, errors=1, failures=1) when run with 2to3; meh
65 + nosetests -w "${BUILD_DIR}"/tests || die "Tests fail with ${EPYTHON}"
66 +}
67 +
68 +python_install_all() {
69 + use doc && local HTML_DOCS=( doc/_build/html/. )
70 +
71 + distutils-r1_python_install_all
72 + newbashcomp external/pygments.bashcomp pygmentize
73 +}