freebsd-ports/www/py-gunicorn/Makefile
Kubilay Kocak c9ab7f022f www/py-gunicorn: Update to 17.5, add TESTS option
- Update to 17.5 (new upstream version convention)
- Add TESTS option
- Limit scope of bsd.port.pre.mk for future OPTIONS := use (Thanks ak!)

Changes:

http://docs.gunicorn.org/en/R17.5/2013-news.html#r17-5-2013-07-03

Reviewed by:	ak
2013-07-06 14:33:06 +00:00

64 lines
1.5 KiB
Makefile

# Created by: Kristaps Kulis <kristaps.kulis@gmail.com>
# $FreeBSD$
PORTNAME= gunicorn
PORTVERSION= 17.5
CATEGORIES= www python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Python WSGI server for UNIX
LICENSE= MIT
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest
USE_GITHUB= yes
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
GH_ACCOUNT= benoitc
GH_COMMIT= cf0527f
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
.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
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} >= 320
.include "${PORTSDIR}/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc"
.endif
.include <bsd.port.post.mk>