blob: 4d23d90b53382946d8a895e9cfc3fc471ccfcd4a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $FreeBSD$
PORTNAME= webob
PORTVERSION= 1.4
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= WebOb-${DISTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= WSGI request and response Python object
LICENSE= MIT
DOCS_BUILD_DEPENDS= sphinx-build:${PORTSDIR}/textproc/py-sphinx
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
OPTIONS_DEFINE= DOCS TESTS
PORTDOCS= *
PYDISTUTILS_AUTOPLIST= yes
PYDISTUTILS_PKGVERSION= ${DISTVERSION}
TESTS_BUILD_DEPENDS= nosetests:${PORTSDIR}/devel/py-nose
TESTS_DESC= Run tests with Nose
USE_PYDISTUTILS= yes
USE_PYTHON= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
PYDISTUTILS_BUILD_TARGET+= build_sphinx -a -E
post-install:
@(cd ${WRKSRC}/build/sphinx/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objectiv.inv")
.endif
.if ${PORT_OPTIONS:MTESTS}
PYDISTUTILS_BUILD_TARGET+= nosetests
.endif
.include <bsd.port.mk>
|