changeset 8:9bc73563b595

Use the UWSGI_PROFILE_OVERRIDE environment variable instead of appending to the build profile configuration file. For now: just plugin_dir is configured with this method.
author Franz Glasner <hg@dom66.de>
date Sat, 16 Sep 2017 00:52:44 +0200
parents a6ab1247fe1f
children c54e231ccdf7
files Makefile
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Sep 16 00:10:09 2017 +0200
+++ b/Makefile	Sat Sep 16 00:52:44 2017 +0200
@@ -23,7 +23,7 @@
 
 CFLAGS+=	-I${OPENSSLINC}
 LDFLAGS+=	${OPENSSL_LDFLAGS}
-MAKE_ENV+=	CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_PROFILE=nolang.ini UWSGI_BIN_NAME=${PORTNAME} UWSGI_EMBED_PLUGINS=cgi,clock_realtime,echo,logpipe
+MAKE_ENV+=	CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_PROFILE=nolang.ini UWSGI_BIN_NAME=${PORTNAME} UWSGI_EMBED_PLUGINS=cgi,clock_realtime,echo,logpipe UWSGI_PROFILE_OVERRIDE=plugin_dir=${PREFIX}/${PLUGIN_DIR}
 
 PYSETUP=			uwsgiconfig.py
 PYDISTUTILS_BUILD_TARGET=	--build
@@ -55,7 +55,6 @@
 .for var in JSON PCRE XML
 	@${REINPLACE_CMD} -e '/^${var:tl} =/ s|= .*|= ${BUILDCONF_${var}:Ufalse}|' ${WRKSRC}/buildconf/base.ini
 .endfor
-	echo "plugin_dir = ${PREFIX}/${PLUGIN_DIR}" >> ${WRKSRC}/buildconf/nolang.ini
 
 do-configure:
 	@${DO_NADA}