Mercurial > hg > portage
annotate dev-python/pygments/pygments-2.1.3.ebuild @ 489:42fc528852c9
updated ebuild
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 11 Oct 2019 05:45:49 +0200 |
parents | 151df3031a78 |
children |
rev | line source |
---|---|
442
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # Copyright 1999-2017 Gentoo Foundation |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 EAPI=6 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 inherit distutils-r1 bash-completion-r1 vcs-snapshot |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 MY_PN="Pygments" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 MY_P="${MY_PN}-${PV}" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 DESCRIPTION="Pygments is a syntax highlighting package written in Python" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 HOMEPAGE="http://pygments.org/ https://pypi.python.org/pypi/Pygments" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 LICENSE="BSD" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 SLOT="0" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 IUSE="doc test" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 DEPEND="${RDEPEND} |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 test? ( |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 dev-python/nose[${PYTHON_USEDEP}] |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 virtual/ttf-fonts )" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 # dev-texlive/texlive-latexrecommended |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 # Removing / commenting out this dep. I can find no mention of it in tests other than |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 # importing pygment's own tex module. If it's there and I missed it just uncomment and re-add |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 # Tests pass without it |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 S="${WORKDIR}/${MY_P}" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 python_compile_all() { |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 use doc && emake -C doc html |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 } |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 python_test() { |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 cp -r -l tests "${BUILD_DIR}"/ || die |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
41 # With pypy3 there is 1 error out of 1556 tests when run as is and |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 # (SKIP=8, errors=1, failures=1) when run with 2to3; meh |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
43 nosetests --verbosity=3 -w "${BUILD_DIR}"/tests \ |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
44 || die "Tests fail with ${EPYTHON}" |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
45 } |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 python_install_all() { |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
48 use doc && local HTML_DOCS=( doc/_build/html/. ) |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
49 |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
50 distutils-r1_python_install_all |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
51 newbashcomp external/pygments.bashcomp pygmentize |
151df3031a78
revive the pygments 2.1.3 ebuild as it's still installed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
52 } |