blob: 296759b40715bc39680c6bc340c9f67462a2a64e (
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
46
47
48
|
# $FreeBSD$
PORTNAME= webob
PORTVERSION= 1.2.2
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PYDISTUTILS_PKGNAME}-${DISTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= WSGI request and response Python object
LICENSE= MIT
PYDISTUTILS_PKGNAME= WebOb
PYDISTUTILS_PKGVERSION= ${DISTVERSION}
# Python3 ready
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
USE_ZIP= yes
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE= DOCS TESTS
TESTS_DESC= Run tests with Nose
NO_STAGE= yes
.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>
|