From owner-svn-ports-all@FreeBSD.ORG Fri Jan 10 09:29:29 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8840D838; Fri, 10 Jan 2014 09:29:29 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 68DDD1816; Fri, 10 Jan 2014 09:29:29 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s0A9TTXP020921; Fri, 10 Jan 2014 09:29:29 GMT (envelope-from koobs@svn.freebsd.org) Received: (from koobs@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s0A9TTH4020920; Fri, 10 Jan 2014 09:29:29 GMT (envelope-from koobs@svn.freebsd.org) Message-Id: <201401100929.s0A9TTH4020920@svn.freebsd.org> From: Kubilay Kocak Date: Fri, 10 Jan 2014 09:29:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r339338 - head/www/py-gunicorn X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 09:29:29 -0000 Author: koobs Date: Fri Jan 10 09:29:28 2014 New Revision: 339338 URL: http://svnweb.freebsd.org/changeset/ports/339338 Log: www/py-gunicorn: Refactor OPTIONS and modernise - Enable STAGE support - Refactor OPTIONS and group WORKER options - Tweak OPTIONS descriptions - Use OPTIONS helpers - Switch easy_install to install - OPTIONSFILE is no longer needed - Remove NO_OPTIONS_SORT - Switch TEST_DEPENDS to a BUILD_ not RUN_ time DEPENDS Modified: head/www/py-gunicorn/Makefile Modified: head/www/py-gunicorn/Makefile ============================================================================== --- head/www/py-gunicorn/Makefile Fri Jan 10 09:29:04 2014 (r339337) +++ head/www/py-gunicorn/Makefile Fri Jan 10 09:29:28 2014 (r339338) @@ -3,6 +3,7 @@ PORTNAME= gunicorn PORTVERSION= 18.0 +PORTREVISION= 1 CATEGORIES= www python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,47 +14,30 @@ LICENSE= MIT TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest +OPTIONS_DEFINE= SETPROC TESTS +OPTIONS_GROUP= WORKERS +OPTIONS_GROUP_WORKERS= EVENTLET GEVENT TORNADO + +EVENTLET_DESC= Eventlet async worker support +GEVENT_DESC= Gevent async worker support +TORNADO_DESC= Tornado async worker support +SETPROC_DESC= Support custom process names (setproctitle) +TESTS_DESC= Install pytest for unit tests + +EVENTLET_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}eventlet>=0.9.7:${PORTSDIR}/net/py-eventlet +GEVENT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gevent>=0.12.2:${PORTSDIR}/devel/py-gevent +TORNADO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tornado>=2.2:${PORTSDIR}/www/py-tornado +SETPROC_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setproctitle>0:${PORTSDIR}/devel/py-setproctitle +TESTS_BUILD_DEPENDS= ${TEST_DEPENDS} + USE_GITHUB= yes USE_PYTHON= yes -USE_PYDISTUTILS= easy_install +USE_PYDISTUTILS= yes PYDISTUTILS_AUTOPLIST= yes GH_ACCOUNT= benoitc GH_COMMIT= 24fe380 -OPTIONS_DEFINE= EVENTLET GEVENT TORNADO SETPROC TESTS -EVENTLET_DESC= Add Eventlet async worker -GEVENT_DESC= Add Gevent async worker -TORNADO_DESC= Add Tornado async worker -SETPROC_DESC= Support changing process title (setproctitle) -TESTS_DESC= Install pytest for unit tests - -OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options -NO_OPTIONS_SORT= yes - -NO_STAGE= yes -.include - -.if ${PORT_OPTIONS:MEVENTLET} -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}eventlet>=0.9.7:${PORTSDIR}/net/py-eventlet -.endif - -.if ${PORT_OPTIONS:MGEVENT} -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}gevent>=0.12.2:${PORTSDIR}/devel/py-gevent -.endif - -.if ${PORT_OPTIONS:MTORNADO} -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tornado>=2.2:${PORTSDIR}/www/py-tornado -.endif - -.if ${PORT_OPTIONS:MSETPROC} -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setproctitle>0:${PORTSDIR}/devel/py-setproctitle -.endif - -.if ${PORT_OPTIONS:MTESTS} -RUN_DEPENDS+= ${TEST_DEPENDS} -.endif - regression-test: build @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test