2009-02-12 00:55:50 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= webob
|
2014-05-18 05:29:57 +02:00
|
|
|
PORTVERSION= 1.4
|
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}
|
2014-05-18 05:29:57 +02:00
|
|
|
DISTNAME= WebOb-${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
|
|
|
|
|
2014-05-18 05:29:57 +02:00
|
|
|
DOCS_BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
|
2009-02-12 00:55:50 +01:00
|
|
|
|
2014-05-18 05:29:57 +02:00
|
|
|
OPTIONS_DEFINE= DOCS TESTS
|
2011-02-20 22:25:57 +01:00
|
|
|
|
2014-05-18 05:29:57 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2015-01-03 09:41:20 +01:00
|
|
|
USES= python
|
|
|
|
USE_PYTHON= distutils autoplist
|
2012-07-28 11:57:15 +02:00
|
|
|
|
2014-05-18 05:29:57 +02:00
|
|
|
TESTS_BUILD_DEPENDS= nosetests:${PORTSDIR}/devel/py-nose
|
2012-07-28 11:57:15 +02:00
|
|
|
TESTS_DESC= Run tests with Nose
|
|
|
|
|
2014-05-18 05:29:57 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2012-07-28 11:57:15 +02:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
PYDISTUTILS_BUILD_TARGET+= build_sphinx -a -E
|
|
|
|
|
|
|
|
post-install:
|
2014-05-18 05:29:57 +02:00
|
|
|
@(cd ${WRKSRC}/build/sphinx/html && \
|
|
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objectiv.inv")
|
2012-07-28 11:57:15 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MTESTS}
|
|
|
|
PYDISTUTILS_BUILD_TARGET+= nosetests
|
|
|
|
.endif
|
|
|
|
|
2014-05-18 05:29:57 +02:00
|
|
|
.include <bsd.port.mk>
|