blob: 8d3f653619cf38dabe6569b8dcda041e15443dfe (
plain)
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
49
50
51
52
53
54
|
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
PORTNAME= pip
PORTVERSION= 8.0.2
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Tool for installing and managing Python packages
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
# Tests also need bzr, git, otherwise they fail
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest \
${PYTHON_PKGNAMEPREFIX}pytest-capturelog>0:devel/py-pytest-capturelog \
${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout \
${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist \
${PYTHON_PKGNAMEPREFIX}virtualenv>=1.10:devel/py-virtualenv \
${PYTHON_PKGNAMEPREFIX}scripttest>=1.3:devel/py-scripttest \
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock \
${PYTHON_PKGNAMEPREFIX}pretend>0:devel/py-pretend \
${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun \
git>0:devel/git \
bzr>0:devel/bzr
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
DOCS_PORTDOCS= *
DOCS_VARS= PYDISTUTILS_BUILD_TARGET=build_sphinx \
PYDISTUTILS_BUILDARGS="-n --all-files --fresh-env"
NO_ARCH= yes
USES= python shebangfix
USE_GITHUB= yes
USE_PYTHON= autoplist concurrent distutils
SHEBANG_FILES= pip/__init__.py
GH_ACCOUNT= pypa
NO_ARCH= yes
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/build/sphinx/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objects.inv")
do-test:
cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>
|