mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
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
This commit is contained in:
parent
3d1b7d9e54
commit
c74a4dc933
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360805
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user