Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2012 22:10:21 +1100 (EST)
From:      Kubilay Kocak <koobs.freebsd@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172875: [MAINTAINER] www/py-gunicorn: update to 0.15.0, add TORNADO/TESTS options
Message-ID:  <20121019111021.0EE4D39EC2@freebsd-9-amd64.localdomain>
Resent-Message-ID: <201210191120.q9JBK1u0004091@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172875
>Category:       ports
>Synopsis:       [MAINTAINER] www/py-gunicorn: update to 0.15.0, add TORNADO/TESTS options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 19 11:20:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Kubilay Kocak
>Release:        FreeBSD 9.0-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD freebsd-9-amd64 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Sat Jul  7 21:26:56 EST
>Description:
- Update to 0.15.0
- Tweak USE_PYTHON version
- Add TEST_DEPENDS and regression-test: target
- Add LICENSE
- Add TORNADO and TESTS
- Add NO_OPTIONS_SORT
- Tweak OPTIONS descriptions
- Trim Makefile header
- Whitespace alignment

Changes:

https://github.com/benoitc/gunicorn/blob/0.15.0/docs/source/news.rst

====[QA]====

Supersedes ports/170227

portlint: looks fine.
porttest: OK
unittest: Ran 66 tests in 2.165s - OK (SKIP=3)
redports: https://redports.org/buildarchive/20121018203848-27590/

    Note: All redports builds include regression-test runs - All OK
============

Generated with FreeBSD Port Tools 0.99_6 (mode: update, diff: ports)
>How-To-Repeat:
>Fix:

--- py27-gunicorn-0.15.0.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/py-gunicorn/Makefile ./Makefile
--- /usr/ports/www/py-gunicorn/Makefile	2012-07-19 03:18:25.000000000 +1000
+++ ./Makefile	2012-10-19 20:08:52.000000000 +1100
@@ -1,12 +1,8 @@
-# New ports collection makefile for:	py-gunicorn
-# Date created:		2010-03-03
-# Whom:	Kristaps Kulis <kristaps.kulis@gmail.com>
-#
+# Created by: Kristaps Kulis <kristaps.kulis@gmail.com>
 # $FreeBSD: ports/www/py-gunicorn/Makefile,v 1.6 2012/07/18 17:18:25 olivierd Exp $
-#
 
 PORTNAME=	gunicorn
-PORTVERSION=	0.14.5
+PORTVERSION=	0.15.0
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,15 +10,22 @@
 MAINTAINER=	koobs.freebsd@gmail.com
 COMMENT=	Python WSGI server for unix
 
-USE_PYTHON=	2.5-2.7
+LICENSE=	MIT
+
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
+
+USE_PYTHON=		-2.7
 USE_PYDISTUTILS=	easy_install
 
-OPTIONS_DEFINE= EVENTLET GEVENT SETPROC
-EVENTLET_DESC=  Add Eventlet asynchronous worker
-GEVENT_DESC=    Add Gevent asynchronous worker
-SETPROC_DESC=   Change process name support
+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 nose for running unittests
 
-OPTIONSFILE?=   ${PORT_DBDIR}/py-${PORTNAME}/options
+OPTIONSFILE?=		${PORT_DBDIR}/py-${PORTNAME}/options
+NO_OPTIONS_SORT=	yes
 
 .include <bsd.port.options.mk>
 
@@ -34,8 +37,19 @@
 RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/gevent/__init__.py:${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_SITELIBDIR}/setproctitle.so:${PORTSDIR}/devel/py-setproctitle
 .endif
 
+.if ${PORT_OPTIONS:MTESTS}
+BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
+.endif
+
+regression-test: build
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} nosetests
+
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/www/py-gunicorn/distinfo ./distinfo
--- /usr/ports/www/py-gunicorn/distinfo	2012-07-19 03:18:25.000000000 +1000
+++ ./distinfo	2012-10-19 07:15:57.000000000 +1100
@@ -1,2 +1,2 @@
-SHA256 (gunicorn-0.14.5.tar.gz) = cef7820010cc5d1bf134e25b0ab22097b67886ae72c42a774d555be605a9b422
-SIZE (gunicorn-0.14.5.tar.gz) = 228742
+SHA256 (gunicorn-0.15.0.tar.gz) = 811f7e9b6b81f5ef4ba07ba071ee8f09ce2c9b16824b75fcaf6452af8bc9a9ad
+SIZE (gunicorn-0.15.0.tar.gz) = 119108
--- py27-gunicorn-0.15.0.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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