mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 10:01:32 +02:00
dev-python/pygments: Sync with gentoo
It's from gentoo commit 91d0efbd9d87e4a7a0c95209798e519e4815a4e4.
This commit is contained in:
parent
6f7bb2a810
commit
4c25ac0ba2
@ -1,2 +1 @@
|
|||||||
DIST Pygments-2.1.1.tar.gz 2114190 SHA256 2df7d9a85b56e54c7c021dc98fc877bd216ead652c10da170779c004fb59c01b SHA512 7eb35865074f573ef7d41a1f1ee7576a83c32855018d03570eb70fd6864ddfbbc3f93ae082c4ac7e4a274a0ef387ea4ccb0909423e01efb6bb8e4fefea8f2807 WHIRLPOOL 6b1ebed4b3c456ada335be87d184bfe197f489b445c362c8f1326229e137e859388e1812290bf1d7f6ed19b780dc8487fe9744863833889d961604fb9489b381
|
DIST Pygments-2.10.0.tar.gz 4052321 BLAKE2B 003d13344a2c5fe448a23d7bb45a401dc839cac10be262f5831c9547444d395811c92b74d1b18663a11a2e6cedf29b5a74cbd75267157429d61375bd9df6eb49 SHA512 28fdf35e333717795f199e0ef936d6df16ac0752324839ac36cabd2f9f6759a57663527d37f1c2f470258d63c3cf190f6dd4b631b21c849fc76575036fbdae12
|
||||||
DIST Pygments-2.2.0.tar.gz 2113944 SHA256 dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc SHA512 cc0a4f73e19fa6cbf46314de2e809460c807c631e39ba05cbe5edb5f40db1a687aafcd9715585a0ed45f791710eb6038305e273f282f8682df76f30e63710b29 WHIRLPOOL f0562ce0b92245050657b6b8b0952bbd719ad8789434a2c87bb45594787839405bc2fcb05ed125fe1801a71739462be5be96263d27075427a4bafaa5b44e3fe7
|
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>python@gentoo.org</email>
|
<email>python@gentoo.org</email>
|
||||||
<name>Python</name>
|
<name>Python</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<longdescription>Pygments is a syntax highlighting package written in Python. Pygments can output to html, bbcode, latex, rtf and other formats.</longdescription>
|
<longdescription>Pygments is a syntax highlighting package written in Python. Pygments can output to html, bbcode, latex, rtf and other formats.</longdescription>
|
||||||
|
<stabilize-allarches/>
|
||||||
<upstream>
|
<upstream>
|
||||||
<remote-id type="pypi">Pygments</remote-id>
|
<remote-id type="pypi">Pygments</remote-id>
|
||||||
<remote-id type="bitbucket">birkenfeld/pygments-main</remote-id>
|
<remote-id type="github">pygments/pygments</remote-id>
|
||||||
</upstream>
|
</upstream>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -1,52 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
|
|
||||||
|
|
||||||
inherit distutils-r1 bash-completion-r1 vcs-snapshot
|
|
||||||
|
|
||||||
MY_PN="Pygments"
|
|
||||||
MY_P="${MY_PN}-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="Pygments is a syntax highlighting package written in Python"
|
|
||||||
HOMEPAGE="http://pygments.org/ https://pypi.python.org/pypi/Pygments"
|
|
||||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
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"
|
|
||||||
IUSE="doc test"
|
|
||||||
|
|
||||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
|
||||||
test? (
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
virtual/ttf-fonts )"
|
|
||||||
# dev-texlive/texlive-latexrecommended
|
|
||||||
# Removing / commenting out this dep. I can find no mention of it in tests other than
|
|
||||||
# importing pygment's own tex module. If it's there and I missed it just uncomment and re-add
|
|
||||||
# Tests pass without it
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
python_compile_all() {
|
|
||||||
use doc && emake -C doc html
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
cp -r -l tests "${BUILD_DIR}"/ || die
|
|
||||||
# With pypy3 there is 1 error out of 1556 tests when run as is and
|
|
||||||
# (SKIP=8, errors=1, failures=1) when run with 2to3; meh
|
|
||||||
nosetests --verbosity=3 -w "${BUILD_DIR}"/tests \
|
|
||||||
|| die "Tests fail with ${EPYTHON}"
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
newbashcomp external/pygments.bashcomp pygmentize
|
|
||||||
}
|
|
33
sdk_container/src/third_party/portage-stable/dev-python/pygments/pygments-2.10.0.ebuild
vendored
Normal file
33
sdk_container/src/third_party/portage-stable/dev-python/pygments/pygments-2.10.0.ebuild
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||||
|
inherit distutils-r1 bash-completion-r1
|
||||||
|
|
||||||
|
MY_P=${P^}
|
||||||
|
DESCRIPTION="Pygments is a syntax highlighting package written in Python"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pygments.org/
|
||||||
|
https://github.com/pygments/pygments/
|
||||||
|
https://pypi.org/project/Pygments/"
|
||||||
|
SRC_URI="mirror://pypi/${MY_P:0:1}/${PN^}/${MY_P}.tar.gz"
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
virtual/ttf-fonts
|
||||||
|
)"
|
||||||
|
|
||||||
|
distutils_enable_sphinx doc
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
newbashcomp external/pygments.bashcomp pygmentize
|
||||||
|
}
|
@ -1,52 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
|
|
||||||
|
|
||||||
inherit distutils-r1 bash-completion-r1 vcs-snapshot
|
|
||||||
|
|
||||||
MY_PN="Pygments"
|
|
||||||
MY_P="${MY_PN}-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="Pygments is a syntax highlighting package written in Python"
|
|
||||||
HOMEPAGE="http://pygments.org/ https://pypi.python.org/pypi/Pygments"
|
|
||||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="doc test"
|
|
||||||
|
|
||||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
|
||||||
test? (
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
virtual/ttf-fonts )"
|
|
||||||
# dev-texlive/texlive-latexrecommended
|
|
||||||
# Removing / commenting out this dep. I can find no mention of it in tests other than
|
|
||||||
# importing pygment's own tex module. If it's there and I missed it just uncomment and re-add
|
|
||||||
# Tests pass without it
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
python_compile_all() {
|
|
||||||
use doc && emake -C doc html
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
cp -r -l tests "${BUILD_DIR}"/ || die
|
|
||||||
# With pypy3 there is 1 error out of 1556 tests when run as is and
|
|
||||||
# (SKIP=8, errors=1, failures=1) when run with 2to3; meh
|
|
||||||
nosetests --verbosity=3 -w "${BUILD_DIR}"/tests \
|
|
||||||
|| die "Tests fail with ${EPYTHON}"
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
newbashcomp external/pygments.bashcomp pygmentize
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user