aboutsummaryrefslogtreecommitdiffstats
path: root/dev-python
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/markdown2/Manifest4
-rw-r--r--dev-python/markdown2/files/2.3.8/0001-Fixed-code-highlighting-unit-tests.patch76
-rw-r--r--dev-python/markdown2/markdown2-2.3.8.ebuild34
-rw-r--r--dev-python/markdown2/metadata.xml20
4 files changed, 134 insertions, 0 deletions
diff --git a/dev-python/markdown2/Manifest b/dev-python/markdown2/Manifest
new file mode 100644
index 0000000..671addd
--- /dev/null
+++ b/dev-python/markdown2/Manifest
@@ -0,0 +1,4 @@
+AUX 2.3.8/0001-Fixed-code-highlighting-unit-tests.patch 4412 BLAKE2B b6e3c0a84aeb468833ca7adece5da3e26dba471e681ee416f6b19674cb2a25cd3d15b8cb58201769f34c3a094d0fb887c3ea0ec6d6df0dc360c1ea93627d096d SHA512 ae068062d144a75c0bc79fa6acca2072abdfa43d690c9a6c9553caa0bfb095280ea965e8852ae8514b9416ab258de0be8b9ab480a5044d69038e312457d55572
+DIST markdown2-2.3.8.tar.gz 86850 BLAKE2B e227139d4ac368095872b09bcaac78ad49c7ae43b63036563c3b80b2ff6a78c3d302d8a2c56b68a5ba1d01967ab1861f842986316bb6d0a6625cb21b644e46eb SHA512 76abbbb2fa5f6a4cc43f358812079a2561f45ba5c2aed1a1860256440f7c48ca5e766c00c2464b973ef0cbbff9db58bca4398dc15ef8b5d203a6565b226bd7cd
+EBUILD markdown2-2.3.8.ebuild 748 BLAKE2B 6cadf134892cfc90890828e46a5526aa9a2ad7f4cbc9f0c1239375c16c72370cd45bd03c3f68fe4797b6ae4c91be3c21f5b7f0e9c010feb7c8e9dae6e81709ff SHA512 351fb8127459ab120c35479b2c9d6b313bcd4db05489486c8074abae91b12b9d3a5072b811efc17cc6dc1f69ed6dd83fa8deaddbf4d02497041c54687dffe549
+MISC metadata.xml 641 BLAKE2B f1c0e61b9c9e1229be9dbc2d913af9398d8ed41dc69afa0d46dcbc3c74aa583eedea6e1c8132de436b10b288f76a9657e3c74f7e546d357bba817e38b01606f6 SHA512 ece3faf6646450ac53797ac77c91f7e7a9953dcc419f98738cb8529722d04fa00a9a0e9fbe0958c2119b6e0909fe1ca6eee50749a133e2aec8b2d242071348f7
diff --git a/dev-python/markdown2/files/2.3.8/0001-Fixed-code-highlighting-unit-tests.patch b/dev-python/markdown2/files/2.3.8/0001-Fixed-code-highlighting-unit-tests.patch
new file mode 100644
index 0000000..9a28e6b
--- /dev/null
+++ b/dev-python/markdown2/files/2.3.8/0001-Fixed-code-highlighting-unit-tests.patch
@@ -0,0 +1,76 @@
+From 55ba78e29ac983978806970ce4b81718fe68275b Mon Sep 17 00:00:00 2001
+From: ryanvilbrandt <ryan.vilbrandt@gmail.com>
+Date: Tue, 26 Nov 2019 13:54:27 -0800
+Subject: [PATCH] Fixed code highlighting unit tests
+
+Which broke for some reason??
+---
+ test/tm-cases/fenced_code_blocks_leading_lang_space.html | 4 ++--
+ test/tm-cases/fenced_code_blocks_safe_highlight.html | 4 ++--
+ test/tm-cases/fenced_code_blocks_syntax_highlighting.html | 4 ++--
+ test/tm-cases/fenced_code_blocks_syntax_indentation.html | 4 ++--
+ test/tm-cases/issue3_bad_code_color_hack.html | 4 ++--
+ 5 files changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/test/tm-cases/fenced_code_blocks_leading_lang_space.html b/test/tm-cases/fenced_code_blocks_leading_lang_space.html
+index 8f7a090..a61524b 100644
+--- a/test/tm-cases/fenced_code_blocks_leading_lang_space.html
++++ b/test/tm-cases/fenced_code_blocks_leading_lang_space.html
+@@ -1,3 +1,3 @@
+-<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="bp">True</span><span class="p">:</span>
+- <span class="k">print</span> <span class="s2">&quot;hi&quot;</span>
++<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="kc">True</span><span class="p">:</span>
++ <span class="nb">print</span> <span class="s2">&quot;hi&quot;</span>
+ </code></pre></div>
+diff --git a/test/tm-cases/fenced_code_blocks_safe_highlight.html b/test/tm-cases/fenced_code_blocks_safe_highlight.html
+index df5bbec..a08985a 100644
+--- a/test/tm-cases/fenced_code_blocks_safe_highlight.html
++++ b/test/tm-cases/fenced_code_blocks_safe_highlight.html
+@@ -1,5 +1,5 @@
+-<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="bp">True</span><span class="p">:</span>
+- <span class="k">print</span> <span class="s2">&quot;hi&quot;</span>
++<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="kc">True</span><span class="p">:</span>
++ <span class="nb">print</span> <span class="s2">&quot;hi&quot;</span>
+ </code></pre></div>
+
+ <p>That's using the <em>fenced-code-blocks</em> extra with Python
+diff --git a/test/tm-cases/fenced_code_blocks_syntax_highlighting.html b/test/tm-cases/fenced_code_blocks_syntax_highlighting.html
+index df5bbec..a08985a 100644
+--- a/test/tm-cases/fenced_code_blocks_syntax_highlighting.html
++++ b/test/tm-cases/fenced_code_blocks_syntax_highlighting.html
+@@ -1,5 +1,5 @@
+-<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="bp">True</span><span class="p">:</span>
+- <span class="k">print</span> <span class="s2">&quot;hi&quot;</span>
++<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="kc">True</span><span class="p">:</span>
++ <span class="nb">print</span> <span class="s2">&quot;hi&quot;</span>
+ </code></pre></div>
+
+ <p>That's using the <em>fenced-code-blocks</em> extra with Python
+diff --git a/test/tm-cases/fenced_code_blocks_syntax_indentation.html b/test/tm-cases/fenced_code_blocks_syntax_indentation.html
+index 11a7c24..37b5723 100644
+--- a/test/tm-cases/fenced_code_blocks_syntax_indentation.html
++++ b/test/tm-cases/fenced_code_blocks_syntax_indentation.html
+@@ -1,5 +1,5 @@
+ <div class="codehilite"><pre><span></span><code><span class="k">def</span> <span class="nf">foo</span><span class="p">():</span>
+- <span class="k">print</span> <span class="s2">&quot;foo&quot;</span>
++ <span class="nb">print</span> <span class="s2">&quot;foo&quot;</span>
+
+- <span class="k">print</span> <span class="s2">&quot;bar&quot;</span>
++ <span class="nb">print</span> <span class="s2">&quot;bar&quot;</span>
+ </code></pre></div>
+diff --git a/test/tm-cases/issue3_bad_code_color_hack.html b/test/tm-cases/issue3_bad_code_color_hack.html
+index 46f329a..8aedb76 100644
+--- a/test/tm-cases/issue3_bad_code_color_hack.html
++++ b/test/tm-cases/issue3_bad_code_color_hack.html
+@@ -7,6 +7,6 @@
+ <p>Some python code:</p>
+
+ <div class="codehilite"><pre><span></span><code><span class="c1"># комментарий</span>
+-<span class="k">if</span> <span class="bp">True</span><span class="p">:</span>
+- <span class="k">print</span> <span class="s2">&quot;hi&quot;</span>
++<span class="k">if</span> <span class="kc">True</span><span class="p">:</span>
++ <span class="nb">print</span> <span class="s2">&quot;hi&quot;</span>
+ </code></pre></div>
+--
+2.26.1
+
diff --git a/dev-python/markdown2/markdown2-2.3.8.ebuild b/dev-python/markdown2/markdown2-2.3.8.ebuild
new file mode 100644
index 0000000..69b43c5
--- /dev/null
+++ b/dev-python/markdown2/markdown2-2.3.8.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python Markdown language reimplementation"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+HOMEPAGE="https://github.com/trentm/python-markdown2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-python/pygments[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PV}/0001-Fixed-code-highlighting-unit-tests.patch" )
+
+python_prepare_all() {
+ # [issue52, knownfailure]
+ rm -f test/tm-cases/issue52* || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ cd test || die
+ "${PYTHON}" test.py || die "Tests fail with ${EPYTHON}"
+}
diff --git a/dev-python/markdown2/metadata.xml b/dev-python/markdown2/metadata.xml
new file mode 100644
index 0000000..6718605
--- /dev/null
+++ b/dev-python/markdown2/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <name>Trent Mick</name>
+ </maintainer>
+ <bugs-to>https://github.com/trentm/python-markdown2/issues</bugs-to>
+ <remote-id type="pypi">markdown2</remote-id>
+ <remote-id type="github">trentm/python-markdown2</remote-id>
+ </upstream>
+</pkgmetadata>