Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jul 2014 19:17:41 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r360805 - head/devel/hgreviewboard
Message-ID:  <201407051917.s65JHfxn019016@svn.freebsd.org>

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



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