Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2019 16:50:01 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r489508 - in head/devel/py-mdv: . files
Message-ID:  <201901061650.x06Go1Zm068324@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901061650.x06Go1Zm068324>