Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Apr 2020 19:48:09 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r532400 - head/devel/py-ijson
Message-ID:  <202004211948.03LJm9QX006827@repo.freebsd.org>

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



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