Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2014 09:29:29 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339338 - head/www/py-gunicorn
Message-ID:  <201401100929.s0A9TTH4020920@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk>
-
-.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
 



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