svn commit: r453888 - head/www/uwsgi

Eugene Grosbein eugen at FreeBSD.org
Fri Nov 10 08:48:58 UTC 2017


Author: eugen
Date: Fri Nov 10 08:48:57 2017
New Revision: 453888
URL: https://svnweb.freebsd.org/changeset/ports/453888

Log:
  www/uwsgi: enhance handling of plugins
  
  Add new option group with PSGI embedded plugin option to start with.
  Submitter agreed to take maintainership, so pass this unmaintained
  port to him.
  
  Default build not changed, so no PORTREVISION bump.
  
  PR:		223588
  Submitted by:	Eugene Zheganin (based on)

Modified:
  head/www/uwsgi/Makefile

Modified: head/www/uwsgi/Makefile
==============================================================================
--- head/www/uwsgi/Makefile	Fri Nov 10 08:41:59 2017	(r453887)
+++ head/www/uwsgi/Makefile	Fri Nov 10 08:48:57 2017	(r453888)
@@ -7,7 +7,7 @@ PORTREVISION=	2
 CATEGORIES=	www python
 MASTER_SITES=	http://projects.unbit.it/downloads/
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	eugene at zhegan.in
 COMMENT=	Developer-friendly WSGI server which uses uwsgi protocol
 
 LICENSE=	GPLv2
@@ -33,6 +33,12 @@ PLIST_FILES=	bin/uwsgi \
 
 OPTIONS_DEFINE=	DEBUG JSON PCRE XML
 
+OPTIONS_GROUP=		PLG
+OPTIONS_GROUP_PLG=	PSGI
+
+PLG_DESC=	Enable plugins
+PSGI_DESC=	PSGI embedded plugin
+
 DEBUG_VARS=		PYDISTUTILS_BUILDARGS+=--debug
 
 JSON_VARS=		BUILDCONF_JSON=jansson
@@ -52,6 +58,9 @@ post-patch:
 .for var in JSON PCRE XML
 	@${REINPLACE_CMD} -e '/^${var:tl} =/ s|= .*|= ${BUILDCONF_${var}:Ufalse}|' ${WRKSRC}/buildconf/base.ini
 .endfor
+
+post-patch-PSGI-on:
+	@${REINPLACE_CMD} -e 's/%(main_plugin)s,/%(main_plugin)s, psgi,/' ${WRKSRC}/buildconf/base.ini
 
 do-configure:
 	@${DO_NADA}


More information about the svn-ports-all mailing list