New package: terminal_markdown_viewer-1.6.2
This commit is contained in:
parent
ef1d8e00c8
commit
1292456722
2 changed files with 41 additions and 0 deletions
22
srcpkgs/terminal_markdown_viewer/patches/unichr.patch
Normal file
22
srcpkgs/terminal_markdown_viewer/patches/unichr.patch
Normal file
|
@ -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 = \
|
||||||
|
'─', '✂', '| ', '- ', '|', '◈'
|
19
srcpkgs/terminal_markdown_viewer/template
Normal file
19
srcpkgs/terminal_markdown_viewer/template
Normal file
|
@ -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 <abenson@gmail.com>"
|
||||||
|
license="BSD-3-Clause"
|
||||||
|
homepage="https://github.com/axiros/terminal_markdown_viewer"
|
||||||
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||||
|
checksum=58dbdf8c051a2d7f8c00e4dc13c655c335cbc2bc96851dd0388d73a21c4507b6
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue