Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app-text/mdv/Manifest
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 621 BLAKE2B 34c340d257c42cb9b1682e0396ceaed38dc26de769b357cd1fcfb810db20d61c64bf232e3f1610848ce13fbcf3b39f0f50c45f8d3c2d9439202e94c2bee7a317 SHA512 19ded2e17d3fe363bdfa8da100f7c8b5912aaba5b94142d081174aecd3606a1b37c9016352125b8d8715b3b7f6b5e2027cae3c5938a2daedf732c0508ecae628
29 changes: 29 additions & 0 deletions app-text/mdv/files/python3.patch
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 = \
'─', '✂', '| ', '- ', '|', '◈'
29 changes: 29 additions & 0 deletions app-text/mdv/mdv-1.6.3.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
dev-python/docopt[${PYTHON_USEDEP}]

"