svn commit: r489508 - in head/devel/py-mdv: . files
Emanuel Haupt
ehaupt at FreeBSD.org
Sun Jan 6 16:50:02 UTC 2019
Author: ehaupt
Date: Sun Jan 6 16:50:00 2019
New Revision: 489508
URL: https://svnweb.freebsd.org/changeset/ports/489508
Log:
Fix with python3
PR: 233996
Reported by: 0mp
Submitted by: novel (patch)
MFH= 2019Q1 (blanket)
Added:
head/devel/py-mdv/files/
head/devel/py-mdv/files/patch-mdv_markdownviewer.py (contents, props changed)
Modified:
head/devel/py-mdv/Makefile
Modified: head/devel/py-mdv/Makefile
==============================================================================
--- head/devel/py-mdv/Makefile Sun Jan 6 16:39:41 2019 (r489507)
+++ head/devel/py-mdv/Makefile Sun Jan 6 16:50:00 2019 (r489508)
@@ -3,7 +3,7 @@
PORTNAME= mdv
PORTVERSION= 1.6.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Added: head/devel/py-mdv/files/patch-mdv_markdownviewer.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-mdv/files/patch-mdv_markdownviewer.py Sun Jan 6 16:50:00 2019 (r489508)
@@ -0,0 +1,16 @@
+--- mdv/markdownviewer.py.orig 2016-12-07 10:29:16 UTC
++++ mdv/markdownviewer.py
+@@ -129,7 +129,13 @@ Setting both to all will probably spin your beach ball
+ import io
+ import os
+ import sys
++PY3 = True if sys.version_info[0] > 2 else False
+ import textwrap
++
++ # adaptions:
++if PY3:
++ unichr = chr
++
+ is_app = 0
+ # code analysis for hilite:
+ try:
More information about the svn-ports-all
mailing list