-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Maslowski
committed
Aug 1, 2018
1 parent
63efa7a
commit 8832a51
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
AUX python3.patch 826 BLAKE2B e84349f172b1cc2a18844c3ab36c8bdd2517e451513d34a25f05017e0e09f8c506cad0f5f1fed8e7e51617b5bc170185351f18f6a5a4c26a455bba6ab9038cf2 SHA512 deb700073dd3af01cff01c332791b9004bc77c585709fc481eb0ed2e7162c8410a1bc584bf24cbeecc8d21dfc715bf7d8edd677e303cfc730b25aed33c9c8d66 | ||
DIST mdv-1.6.3.tar.gz 40918 BLAKE2B 8ce1913981d45e1e123268dd065e2467fe1659a83af53a8e69758ca7b7209e3486e731f5cf105c2740ec7e84e372130ec5393969235721d393354a97159f9b2f SHA512 2529c30e5f7f25aa62af9e39731661effb67ee21bb7c522fb879469d4fb04cc7a5f2b88a71c57b261c6307443963f13ec2bcb3a7d6455ba973d3ce0ecd116b2c | ||
EBUILD mdv-1.6.3.ebuild 548 BLAKE2B c891dc6bcc8c27a95c5e9e72ed3519dd4365cd148b738d08f615f89dd94c1d26a583a72a15943cf8ea667a90d7f92af621fff15bdc73abf87d70cd593841661e SHA512 77add6092ba925b09f5d3b566a227e0c1872509fa12a1f31e1f77dc83b8db17ba4734823f0998d1b7a27119edbe39a25cf6be4c5273ec04c7b4b13185e6d896f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff -rua terminal_markdown_viewer-1.6.3.b/mdv/markdownviewer.py terminal_markdown_viewer-1.6.3/mdv/markdownviewer.py | ||
--- terminal_markdown_viewer-1.6.3.b/mdv/markdownviewer.py 2016-12-08 04:26:24.000000000 +0100 | ||
+++ terminal_markdown_viewer-1.6.3/mdv/markdownviewer.py 2018-07-30 16:51:19.408298758 +0200 | ||
@@ -126,9 +126,11 @@ | ||
""" | ||
|
||
|
||
+import sys | ||
+# grrr | ||
+PY3 = True if sys.version_info[0] > 2 else False | ||
import io | ||
import os | ||
-import sys | ||
import textwrap | ||
is_app = 0 | ||
# code analysis for hilite: | ||
@@ -158,6 +160,12 @@ | ||
from HTMLParser import HTMLParser | ||
envget = os.environ.get | ||
|
||
+ | ||
+# adaptions: | ||
+if PY3: | ||
+ unichr = chr | ||
+ | ||
+ | ||
# ---------------------------------------------------------------------- Config | ||
hr_sep, txt_block_cut, code_pref, list_pref, bquote_pref, hr_ends = \ | ||
'─', '✂', '| ', '- ', '|', '◈' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 1999-2018 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
PYTHON_COMPAT=( python3_4 python3_5 python3_6 ) | ||
inherit distutils-r1 | ||
|
||
DESCRIPTION="Styled Terminal Markdown Viewer" | ||
HOMEPAGE="https://github.com/axiros/terminal_markdown_viewer" | ||
SRC_URI="mirror://pypi/m/${PN}/${P}.tar.gz" | ||
PATCHES=( | ||
"${FILESDIR}/python3.patch" | ||
) | ||
|
||
LICENSE="BSD" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="" | ||
|
||
DEPEND="" | ||
RDEPEND=" | ||
${DEPEND} | ||
dev-python/markdown | ||
dev-python/pyyaml | ||
dev-python/pygments | ||
dev-python/docopt | ||
" |