diff --git a/srcpkgs/terminal_markdown_viewer/patches/unichr.patch b/srcpkgs/terminal_markdown_viewer/patches/unichr.patch new file mode 100644 index 00000000000..996e27b2aa7 --- /dev/null +++ b/srcpkgs/terminal_markdown_viewer/patches/unichr.patch @@ -0,0 +1,22 @@ +--- mdv/markdownviewer.py.orig ++++ mdv/markdownviewer.py +@@ -129,6 +129,9 @@ + import io + import os + import sys ++ ++PY3 = True if sys.version_info[0] > 2 else False ++ + import textwrap + is_app = 0 + # code analysis for hilite: +@@ -158,6 +161,9 @@ + from HTMLParser import HTMLParser + envget = os.environ.get + ++if PY3: ++ unichr = chr ++ + # ---------------------------------------------------------------------- Config + hr_sep, txt_block_cut, code_pref, list_pref, bquote_pref, hr_ends = \ + '─', '✂', '| ', '- ', '|', '◈' diff --git a/srcpkgs/terminal_markdown_viewer/template b/srcpkgs/terminal_markdown_viewer/template new file mode 100644 index 00000000000..5cf55c57f30 --- /dev/null +++ b/srcpkgs/terminal_markdown_viewer/template @@ -0,0 +1,19 @@ +# Template file for 'terminal_markdown_viewer' +pkgname=terminal_markdown_viewer +version=1.6.3 +revision=1 +noarch=yes +build_style=python3-module +pycompile_module="mdv" +hostmakedepends="python3-setuptools" +depends="python3-docopt python3-Markdown python3-Pygments python3-tabulate python3-yaml" +short_desc="Styled Terminal Markdown Viewer" +maintainer="Andrew Benson " +license="BSD-3-Clause" +homepage="https://github.com/axiros/terminal_markdown_viewer" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=58dbdf8c051a2d7f8c00e4dc13c655c335cbc2bc96851dd0388d73a21c4507b6 + +post_install() { + vlicense LICENSE +}