Index: head/www/uwsgi/Makefile =================================================================== --- head/www/uwsgi/Makefile (revision 438453) +++ head/www/uwsgi/Makefile (revision 438454) @@ -1,72 +1,64 @@ # Created by: Daniel Gerzo # $FreeBSD$ PORTNAME= uwsgi PORTVERSION= 2.0.14 PORTREVISION= 2 CATEGORIES= www python MASTER_SITES= http://projects.unbit.it/downloads/ MAINTAINER= ports@FreeBSD.org COMMENT= Developer-friendly WSGI server which uses uwsgi protocol LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python ssl +USES= pkgconfig python ssl USE_PYTHON= distutils USE_RC_SUBR= uwsgi -USERS= uwsgi -GROUPS= uwsgi - -OPTIONS_DEFINE= DEBUG JSON PCRE XML - -DEBUG_VARS= PYDISTUTILS_BUILDARGS+=--debug -JSON_LIB_DEPENDS= libjansson.so:devel/jansson -PCRE_LIB_DEPENDS= libpcre.so:devel/pcre -XML_LIB_DEPENDS= libxml2.so:textproc/libxml2 - -.include - -.if ${PORT_OPTIONS:MJSON} -O_JSON= jansson -.else -O_JSON= false -.endif - -.if ${PORT_OPTIONS:MPCRE} -O_PCRE= true -.else -O_PCRE= false -.endif - -.if ${PORT_OPTIONS:MXML} -O_XML= libxml2 -.else -O_XML= false -.endif - CFLAGS+= -I${OPENSSLINC} LDFLAGS+= ${OPENSSL_LDFLAGS} MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_EMBED_PLUGINS=cgi PYSETUP= uwsgiconfig.py PYDISTUTILS_BUILD_TARGET= --build PYDISTUTILS_BUILDARGS= --verbose +USERS= uwsgi +GROUPS= uwsgi + PLIST_FILES= bin/uwsgi \ %%PYTHON_SITELIBDIR%%/uwsgidecorators.py +OPTIONS_DEFINE= DEBUG JSON PCRE XML + +DEBUG_VARS= PYDISTUTILS_BUILDARGS+=--debug + +JSON_VARS= BUILDCONF_JSON=jansson +JSON_LIB_DEPENDS= libjansson.so:devel/jansson + +PCRE_VARS= BUILDCONF_PCRE=true +PCRE_LIB_DEPENDS= libpcre.so:devel/pcre + +XML_VARS= BUILDCONF_XML=libxml2 +XML_LIB_DEPENDS= libxml2.so:textproc/libxml2 + +LIB_DEPENDS+= libjansson.so:devel/jansson libpcre.so:devel/pcre libxml2.so:textproc/libxml2 + +.include + post-patch: - ${REINPLACE_CMD} -e s#@JSON@#${O_JSON}# -e s#@XML@#${O_XML}# -e s#@PCRE@#${O_PCRE}# ${WRKSRC}/buildconf/base.ini +.for var in JSON PCRE XML + @${REINPLACE_CMD} -e '/^${var:tl} =/ s|= .*|= ${BUILDCONF_${var}:Ufalse}|' ${WRKSRC}/buildconf/base.ini +.endfor do-configure: @${DO_NADA} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ - ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + @${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${INSTALL_DATA} ${WRKSRC}/uwsgidecorators.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} .include Index: head/www/uwsgi/files/patch-buildconf-base.ini =================================================================== --- head/www/uwsgi/files/patch-buildconf-base.ini (revision 438453) +++ head/www/uwsgi/files/patch-buildconf-base.ini (nonexistent) @@ -1,15 +0,0 @@ ---- buildconf/base.ini.orig 2015-10-07 04:34:01 UTC -+++ buildconf/base.ini -@@ -1,9 +1,9 @@ - [uwsgi] --xml = auto -+xml = @XML@ - yaml = true --json = auto -+json = @JSON@ - ssl = auto --pcre = auto -+pcre = @PCRE@ - routing = auto - debug = false - unbit = false Property changes on: head/www/uwsgi/files/patch-buildconf-base.ini ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property