shadchin 6249cf1e2f Update to py-pip-7.1.2
ok benoit@
2015-12-23 10:10:36 +00:00

38 lines
765 B
Makefile

# $OpenBSD: Makefile,v 1.22 2015/12/23 10:10:36 shadchin Exp $
COMMENT = Python easy_install replacement
MODPY_EGG_VERSION = 7.1.2
DISTNAME = pip-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = devel
HOMEPAGE = https://pip.pypa.io/en/stable/
# MIT
PERMIT_PACKAGE_CDROM = Yes
MODPY_PI = Yes
MODULES = lang/python
BUILD_DEPENDS = textproc/py-sphinx
MODPY_SETUPTOOLS = Yes
NO_TEST = Yes
FLAVORS = python3
FLAVOR ?=
MAKE_ENV += PYTHONPATH=${WRKSRC}
DOCSRC = ${WRKSRC}/docs
post-build:
cd ${DOCSRC} && PYTHONPATH=${WRKSRC} \
${LOCALBASE}/bin/sphinx-build -N . _build/html
DOCS = ${PREFIX}/share/doc/${MODPY_PY_PREFIX}pip
post-install:
${INSTALL_DATA_DIR} ${DOCS}
cd ${DOCSRC}/_build/html && pax -rw * ${DOCS}
.include <bsd.port.mk>