public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pygments/, dev-python/pygments/files/
@ 2017-01-30 18:56 Lars Wendler
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Wendler @ 2017-01-30 18:56 UTC (permalink / raw
  To: gentoo-commits

commit:     41385422ef4d6ac2dced5aa38352343702b26772
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 30 17:45:28 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Jan 30 18:56:05 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41385422

dev-python/pygments: Removed old.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-python/pygments/Manifest                       |  2 -
 dev-python/pygments/files/2.0.2-bytes-decode.patch | 16 ------
 .../files/2.0.2-shell-injection-backport.patch     | 29 -----------
 .../files/2.0.2-shell-injection-backport2.patch    | 56 ---------------------
 dev-python/pygments/pygments-2.0.2-r2.ebuild       | 58 ----------------------
 dev-python/pygments/pygments-2.1.ebuild            | 52 -------------------
 6 files changed, 213 deletions(-)

diff --git a/dev-python/pygments/Manifest b/dev-python/pygments/Manifest
index fb8c2a3..8f623f0 100644
--- a/dev-python/pygments/Manifest
+++ b/dev-python/pygments/Manifest
@@ -1,5 +1,3 @@
-DIST Pygments-2.0.2.tar.gz 3462280 SHA256 7320919084e6dac8f4540638a46447a3bd730fca172afc17d2c03eed22cf4f51 SHA512 b58e2cc535ba3f1fda7cb147e12af128bc2755de56cf465f8f1d642730eaef50c06551cc4cc44f25f726b00f3f1c9c2078977233b11c0b6a7e1add6a4069c27e WHIRLPOOL 4c98134f27dd29c89e4d6157284bdeecaa81c53d823e089292be21a6c418ba4ccfd458ced50326d5a356a7b6cb761a1990440096f5f3d820f776bb19fc0da09d
 DIST Pygments-2.1.1.tar.gz 2114190 SHA256 2df7d9a85b56e54c7c021dc98fc877bd216ead652c10da170779c004fb59c01b SHA512 7eb35865074f573ef7d41a1f1ee7576a83c32855018d03570eb70fd6864ddfbbc3f93ae082c4ac7e4a274a0ef387ea4ccb0909423e01efb6bb8e4fefea8f2807 WHIRLPOOL 6b1ebed4b3c456ada335be87d184bfe197f489b445c362c8f1326229e137e859388e1812290bf1d7f6ed19b780dc8487fe9744863833889d961604fb9489b381
 DIST Pygments-2.1.3.tar.gz 2116434 SHA256 88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81 SHA512 f6885abfa0033dc2b8894649c7a4626165af01e69268344f002efdfc536c776a9af86be4e76e5905bd31cb78096e1ed3c16d9dd4b29c6a97b4c9cc1bfd7a5b67 WHIRLPOOL c2315b8be55adc65f48675e58f946af6bf2118661beb0ab7ac149325a2d7f7b19aedef7b1ea6e070b5405c80c3b212cbe520ef23969bffb63bee1d7d6f589f41
-DIST Pygments-2.1.tar.gz 2078224 SHA256 13a0ef5fafd7b16cf995bc28fe7aab0780dab1b2fda0fc89e033709af8b8a47b SHA512 4103a636a23d4a7f26c1eb98dc0d2386be17031715ceabb0f1dafb78f2635d8a7f2fe02ff7659c63fbc5c778dff9053c8ef2d916bbbab53841e2b0fafe64c213 WHIRLPOOL 81c5c5d110d2813acc12b7fb1800560189a37b51a2720dae2c9b612ec7c694fa381953491eab336a92ebf290fec505bea850fc0a8288f4b0964cfab0134dae8b
 DIST Pygments-2.2.0.tar.gz 2113944 SHA256 dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc SHA512 cc0a4f73e19fa6cbf46314de2e809460c807c631e39ba05cbe5edb5f40db1a687aafcd9715585a0ed45f791710eb6038305e273f282f8682df76f30e63710b29 WHIRLPOOL f0562ce0b92245050657b6b8b0952bbd719ad8789434a2c87bb45594787839405bc2fcb05ed125fe1801a71739462be5be96263d27075427a4bafaa5b44e3fe7

diff --git a/dev-python/pygments/files/2.0.2-bytes-decode.patch b/dev-python/pygments/files/2.0.2-bytes-decode.patch
deleted file mode 100644
index 35f2e26..00000000
--- a/dev-python/pygments/files/2.0.2-bytes-decode.patch
+++ /dev/null
@@ -1,16 +0,0 @@
- pygments/formatters/img.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pygments/formatters/img.py b/pygments/formatters/img.py
-index db5bee3..12d53cd 100644
---- a/pygments/formatters/img.py
-+++ b/pygments/formatters/img.py
-@@ -84,7 +84,7 @@ class FontManager(object):
-         if not exit:
-             lines = out.splitlines()
-             if lines:
--                path = lines[0].strip().strip(':')
-+                path = lines[0].decode().strip().strip(':')
-                 return path
- 
-     def _create_nix(self):

diff --git a/dev-python/pygments/files/2.0.2-shell-injection-backport.patch b/dev-python/pygments/files/2.0.2-shell-injection-backport.patch
deleted file mode 100644
index 0a23adc..00000000
--- a/dev-python/pygments/files/2.0.2-shell-injection-backport.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-# HG changeset patch
-# User Javantea <jvoss@altsci.com>
-# Date 1443460403 25200
-# Node ID 6b4baae517b6aaff7142e66f1dbadf7b9b871f61
-# Parent  655dbebddc23943b8047b3c139c51c22ef18fd91
-Fix Shell Injection in FontManager._get_nix_font_path
-
-diff --git a/pygments/formatters/img.py b/pygments/formatters/img.py
---- a/pygments/formatters/img.py
-+++ b/pygments/formatters/img.py
-@@ -10,6 +10,7 @@
- """
- 
- import sys
-+import shlex
- 
- from pygments.formatter import Formatter
- from pygments.util import get_bool_opt, get_int_opt, get_list_opt, \
-@@ -79,8 +80,8 @@
-             from commands import getstatusoutput
-         except ImportError:
-             from subprocess import getstatusoutput
--        exit, out = getstatusoutput('fc-list "%s:style=%s" file' %
--                                    (name, style))
-+        exit, out = getstatusoutput('fc-list %s file' % 
-+                                    shlex.quote("%s:style=%s" % (name, style)))
-         if not exit:
-             lines = out.splitlines()
-             if lines:

diff --git a/dev-python/pygments/files/2.0.2-shell-injection-backport2.patch b/dev-python/pygments/files/2.0.2-shell-injection-backport2.patch
deleted file mode 100644
index 78bf447..00000000
--- a/dev-python/pygments/files/2.0.2-shell-injection-backport2.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-# HG changeset patch
-# User Tim Hatch <tim@timhatch.com>
-# Date 1445007300 25200
-# Node ID 0036ab1c99e256298094505e5e92fdacdfc5b0a8
-# Parent  c0c0d4049a7c325cd69b764c6ceb7747d319212d
-Avoid the shell entirely when finding fonts.
-
-Manually tested on OS X.
-
-diff --git a/pygments/formatters/img.py b/pygments/formatters/img.py
---- a/pygments/formatters/img.py
-+++ b/pygments/formatters/img.py
-@@ -10,12 +10,13 @@
- """
- 
- import sys
--import shlex
- 
- from pygments.formatter import Formatter
- from pygments.util import get_bool_opt, get_int_opt, get_list_opt, \
-     get_choice_opt, xrange
- 
-+import subprocess
-+
- # Import this carefully
- try:
-     from PIL import Image, ImageDraw, ImageFont
-@@ -76,14 +77,11 @@
-             self._create_nix()
- 
-     def _get_nix_font_path(self, name, style):
--        try:
--            from commands import getstatusoutput
--        except ImportError:
--            from subprocess import getstatusoutput
--        exit, out = getstatusoutput('fc-list %s file' % 
--                                    shlex.quote("%s:style=%s" % (name, style)))
--        if not exit:
--            lines = out.splitlines()
-+        proc = subprocess.Popen(['fc-list', "%s:style=%s" % (name, style), 'file'],
-+                                stdout=subprocess.PIPE, stderr=None)
-+        stdout, _ = proc.communicate()
-+        if proc.returncode == 0:
-+            lines = stdout.splitlines()
-             if lines:
-                 path = lines[0].strip().strip(':')
-                 return path
-@@ -198,7 +196,7 @@
-         bold and italic fonts will be generated.  This really should be a
-         monospace font to look sane.
- 
--        Default: "Bitstream Vera Sans Mono"
-+        Default: "Bitstream Vera Sans Mono" on Windows, Courier New on *nix
- 
-     `font_size`
-         The font size in points to be used.

diff --git a/dev-python/pygments/pygments-2.0.2-r2.ebuild b/dev-python/pygments/pygments-2.0.2-r2.ebuild
deleted file mode 100644
index ccc5206..00000000
--- a/dev-python/pygments/pygments-2.0.2-r2.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 python3_{4,5} 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}"
-
-PATCHES=(
-	"${FILESDIR}"/${PV}-shell-injection-backport.patch
-	"${FILESDIR}"/${PV}-shell-injection-backport2.patch
-	"${FILESDIR}"/${PV}-bytes-decode.patch
-)
-
-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 -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
-}

diff --git a/dev-python/pygments/pygments-2.1.ebuild b/dev-python/pygments/pygments-2.1.ebuild
deleted file mode 100644
index 1736ed9..00000000
--- a/dev-python/pygments/pygments-2.1.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 python3_{4,5} 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 -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
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/pygments/, dev-python/pygments/files/
@ 2018-10-31  2:22 Virgil Dupras
  0 siblings, 0 replies; 3+ messages in thread
From: Virgil Dupras @ 2018-10-31  2:22 UTC (permalink / raw
  To: gentoo-commits

commit:     af40b12d48b507c99b68cd41aa0bd936cbd299f0
Author:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 31 02:18:26 2018 +0000
Commit:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
CommitDate: Wed Oct 31 02:18:26 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af40b12d

dev-python/pygments: fix build with USE="doc"

Closes: https://bugs.gentoo.org/662640
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 .../pygments/files/pygments-2.2.0-sphinx17.patch   | 22 +++++++++
 dev-python/pygments/pygments-2.2.0-r1.ebuild       | 55 ++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/dev-python/pygments/files/pygments-2.2.0-sphinx17.patch b/dev-python/pygments/files/pygments-2.2.0-sphinx17.patch
new file mode 100644
index 00000000000..bb7c6074ff9
--- /dev/null
+++ b/dev-python/pygments/files/pygments-2.2.0-sphinx17.patch
@@ -0,0 +1,22 @@
+# HG changeset patch
+# User WAKAYAMA Shirou <shirou.faw@gmail.com>
+# Date 1500298269 -32400
+# Node ID 1a78f58afb5066cf35b04676d0d5ffbb18d5d540
+# Parent  7941677dc77d4f2bf0bbd6140ade85a9454b8b80
+Change to docutils.parsers in sphinxext.
+
+From Sphinx 1.7, sphinx.utils.compat will be removed.
+
+diff --git a/pygments/sphinxext.py b/pygments/sphinxext.py
+--- a/pygments/sphinxext.py
++++ b/pygments/sphinxext.py
+@@ -16,7 +16,7 @@
+ 
+ from docutils import nodes
+ from docutils.statemachine import ViewList
+-from sphinx.util.compat import Directive
++from docutils.parsers.rst import Directive
+ from sphinx.util.nodes import nested_parse_with_titles
+ 
+ 
+

diff --git a/dev-python/pygments/pygments-2.2.0-r1.ebuild b/dev-python/pygments/pygments-2.2.0-r1.ebuild
new file mode 100644
index 00000000000..617820a1b61
--- /dev/null
+++ b/dev-python/pygments/pygments-2.2.0-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 )
+
+inherit distutils-r1 bash-completion-r1
+
+MY_PN="Pygments"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Pygments is a syntax highlighting package written in Python"
+HOMEPAGE="http://pygments.org/ https://pypi.org/project/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 )"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+	# fix generators for python3.7+
+	"${FILESDIR}"/pygments-2.2.0-pep479.patch
+	# Fixing USE="doc" with sphinx1.7+. bug #662640
+	"${FILESDIR}"/pygments-2.2.0-sphinx17.patch
+)
+
+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
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/pygments/, dev-python/pygments/files/
@ 2022-04-24 17:47 Arthur Zamarin
  0 siblings, 0 replies; 3+ messages in thread
From: Arthur Zamarin @ 2022-04-24 17:47 UTC (permalink / raw
  To: gentoo-commits

commit:     e0577a6852cfd6d5e641d0f29d1e8a8b695c4961
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 24 17:21:27 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 24 17:23:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0577a68

dev-python/pygments: fix doc generation

Closes: https://bugs.gentoo.org/830364
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .../files/pygments-2.11.2-fix-docs-relative.patch  | 26 ++++++++++++++++++++++
 dev-python/pygments/pygments-2.11.2.ebuild         |  4 ++++
 2 files changed, 30 insertions(+)

diff --git a/dev-python/pygments/files/pygments-2.11.2-fix-docs-relative.patch b/dev-python/pygments/files/pygments-2.11.2-fix-docs-relative.patch
new file mode 100644
index 000000000000..199a88d28dbb
--- /dev/null
+++ b/dev-python/pygments/files/pygments-2.11.2-fix-docs-relative.patch
@@ -0,0 +1,26 @@
+Subject: Fix relative path for doc generation
+
+Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
+
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -244,7 +244,7 @@ def pg_context(app, pagename, templatename, ctx, event_arg):
+         ctx['languages'] = lexer_name_url
+
+     if pagename in ('styles', 'demo'):
+-        with open('examples/example.py') as f:
++        with open('doc/examples/example.py') as f:
+             html = f.read()
+         lexer = pygments.lexers.get_lexer_for_filename('example.py')
+         min_contrasts = test_contrasts.min_contrasts()
+@@ -280,7 +280,7 @@ def pg_context(app, pagename, templatename, ctx, event_arg):
+ def source_read(app, docname, source):
+     # linkify issue / PR numbers in changelog
+     if docname == 'docs/changelog':
+-        with open('../CHANGES') as f:
++        with open('CHANGES') as f:
+             changelog = f.read()
+
+         idx = changelog.find('\nVersion 2.4.2\n')
+--
+2.35.1

diff --git a/dev-python/pygments/pygments-2.11.2.ebuild b/dev-python/pygments/pygments-2.11.2.ebuild
index c4c5e5f41005..4df58e44053c 100644
--- a/dev-python/pygments/pygments-2.11.2.ebuild
+++ b/dev-python/pygments/pygments-2.11.2.ebuild
@@ -27,6 +27,10 @@ BDEPEND="
 		virtual/ttf-fonts
 	)"
 
+PATCHES=(
+	"${FILESDIR}/${PN}-2.11.2-fix-docs-relative.patch"
+)
+
 distutils_enable_sphinx doc \
 	dev-python/wcag-contrast-ratio
 distutils_enable_tests pytest


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-24 17:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-30 18:56 [gentoo-commits] repo/gentoo:master commit in: dev-python/pygments/, dev-python/pygments/files/ Lars Wendler
  -- strict thread matches above, loose matches on Subject: below --
2018-10-31  2:22 Virgil Dupras
2022-04-24 17:47 Arthur Zamarin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox