# Created by: Nicola Vitale # $FreeBSD$ PORTNAME= pip PORTVERSION= 8.1.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