svn commit: r360805 - head/devel/hgreviewboard

Rui Paulo rpaulo at FreeBSD.org
Sat Jul 5 19:17:41 UTC 2014


Author: rpaulo (src committer)
Date: Sat Jul  5 19:17:41 2014
New Revision: 360805
URL: http://svnweb.freebsd.org/changeset/ports/360805
QAT: https://qat.redports.org/buildarchive/r360805/

Log:
  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

Modified:
  head/devel/hgreviewboard/Makefile

Modified: head/devel/hgreviewboard/Makefile
==============================================================================
--- head/devel/hgreviewboard/Makefile	Sat Jul  5 19:15:41 2014	(r360804)
+++ head/devel/hgreviewboard/Makefile	Sat Jul  5 19:17:41 2014	(r360805)
@@ -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 \


More information about the svn-ports-all mailing list