2009-02-12 00:55:50 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= webob
|
2012-09-09 00:56:22 +02:00
|
|
|
PORTVERSION= 1.2.2
|
2009-02-12 00:55:50 +01:00
|
|
|
CATEGORIES= www python
|
2012-02-11 15:41:47 +01:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2009-02-12 00:55:50 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2011-07-11 14:44:49 +02:00
|
|
|
DISTNAME= ${PYDISTUTILS_PKGNAME}-${DISTVERSION}
|
2009-02-12 00:55:50 +01:00
|
|
|
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
|
|
COMMENT= WSGI request and response Python object
|
|
|
|
|
2012-02-11 15:41:47 +01:00
|
|
|
LICENSE= MIT
|
|
|
|
|
2009-02-12 00:55:50 +01:00
|
|
|
PYDISTUTILS_PKGNAME= WebOb
|
2011-07-11 14:44:49 +02:00
|
|
|
PYDISTUTILS_PKGVERSION= ${DISTVERSION}
|
2012-07-28 11:57:15 +02:00
|
|
|
# Python3 ready
|
|
|
|
USE_PYTHON= yes
|
2009-02-12 00:55:50 +01:00
|
|
|
USE_PYDISTUTILS= easy_install
|
|
|
|
|
2014-03-10 19:01:09 +01:00
|
|
|
USES= zip
|
2011-02-20 22:25:57 +01:00
|
|
|
|
2012-07-28 11:57:15 +02:00
|
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
OPTIONS_DEFINE= DOCS TESTS
|
|
|
|
|
|
|
|
TESTS_DESC= Run tests with Nose
|
|
|
|
|
2013-09-21 01:36:50 +02:00
|
|
|
NO_STAGE= yes
|
2012-07-28 11:57:15 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
BUILD_DEPENDS+= sphinx-build:${PORTSDIR}/textproc/py-sphinx
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
PYDISTUTILS_BUILD_TARGET+= build_sphinx -a -E
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@cd ${WRKSRC}/build/sphinx/html && \
|
|
|
|
${COPYTREE_SHARE} . ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MTESTS}
|
|
|
|
BUILD_DEPENDS+= nosetests:${PORTSDIR}/devel/py-nose
|
|
|
|
PYDISTUTILS_BUILD_TARGET+= nosetests
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|