From c74a4dc93304d4f957824c8c245c3e67c6c5ae1e Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Sat, 5 Jul 2014 19:17:41 +0000 Subject: [PATCH] hgreviewboard: fix the json import Newer Python versions include a json module, but hgreviewboard tries to use the simplejson module included in its tarball. We don't install the included simplejson module, so fix the import line. Reviewed by: bapt --- devel/hgreviewboard/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devel/hgreviewboard/Makefile b/devel/hgreviewboard/Makefile index d7623ce08f3b..f3fa4b0c7c9d 100644 --- a/devel/hgreviewboard/Makefile +++ b/devel/hgreviewboard/Makefile @@ -2,6 +2,7 @@ PORTNAME= hgreviewboard PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= https://bitbucket.org/ccaughie/hgreviewboard/get/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -21,6 +22,10 @@ USE_PYTHON= yes NO_BUILD= yes +post-patch: + ${SED} -i '' -e 's/import simplejson/import json as simplejson/' \ + ${WRKSRC}/reviewboard.py + do-install: ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/reviewboard ${INSTALL_DATA} ${WRKSRC}/__init__.py \