svn commit: r532400 - head/devel/py-ijson

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Tue Apr 21 19:48:13 UTC 2020


Author: sunpoet
Date: Tue Apr 21 19:48:08 2020
New Revision: 532400
URL: https://svnweb.freebsd.org/changeset/ports/532400

Log:
  Add YAJL option
  
  PR:		245423
  Submitted by:	amdmi3

Modified:
  head/devel/py-ijson/Makefile

Modified: head/devel/py-ijson/Makefile
==============================================================================
--- head/devel/py-ijson/Makefile	Tue Apr 21 19:48:03 2020	(r532399)
+++ head/devel/py-ijson/Makefile	Tue Apr 21 19:48:08 2020	(r532400)
@@ -16,6 +16,14 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 USES=		python
 USE_PYTHON=	autoplist concurrent distutils
 
-NO_ARCH=	yes
+OPTIONS_DEFINE=	YAJL
+YAJL_DESC=	Enable yajl2_c backend
+
+YAJL_LIB_DEPENDS=	libyajl.so:devel/yajl
+YAJL_USES=		localbase:ldflags
+YAJL_VARS_OFF=		NO_ARCH=yes
+
+post-patch-YAJL-off:
+	@${REINPLACE_CMD} -e 's|if yajl_present()|if False|' ${WRKSRC}/setup.py
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list