freebsd-ports/devel/py-pip/Makefile
Nicola Vitale eeaf3324e3 - Update to 1.5.4
- Use GitHub as download site, so we can  build docs
- Build docs as HTML format with Sphinx
- Add a regression-test target (not active at the moment, because
  some tests fail)
- Update pkg-descr

Release Notes:	http://www.pip-installer.org/en/latest/news.html
2014-04-10 00:34:17 +00:00

57 lines
1.2 KiB
Makefile

# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
PORTNAME= pip
PORTVERSION= 1.5.4
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Tool for installing and managing Python packages
LICENSE= MIT
GH_ACCOUNT= pypa
GH_COMMIT= e3f9e25
OPTIONS_DEFINE= DOCS
USES= shebangfix
USE_GITHUB= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
# This port installs the following file in shared dirs
# PLIST_FILES= bin/pip
SHEBANG_FILES= pip/__init__.py
python_OLD_CMD= ${SETENV} python
python_CMD= ${PYTHON_CMD}
.if 0
TEST_DEPENDS= tox:${PORTSDIR}/devel/py-tox
TOX_CMD= ${LOCALBASE}/bin/tox
.endif
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= sphinx-build:${PORTSDIR}/textproc/py-sphinx
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
MAKE_ENV+= HOME=${WRKDIR}
PYDISTUTILS_BUILD_TARGET+= build_sphinx -n --all-files --fresh-env
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/build/sphinx/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objects.inv")
.endif
.if 0
regression-test: build
@cd ${WRKSRC} && \
${TOX_CMD} -e py${PYTHON_SUFFIX},docs
.endif
.include <bsd.port.mk>