shadchin d7d33fe909 * Switch on py3-sphinx for python3
* Prevent build from calling out to the internet

ok ajacoutot@
2016-04-16 19:06:25 +00:00

38 lines
780 B
Makefile

# $OpenBSD: Makefile,v 1.26 2016/04/16 19:06:26 shadchin Exp $
COMMENT = Python easy_install replacement
MODPY_EGG_VERSION = 8.1.1
DISTNAME = pip-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = devel
REVISION = 1
HOMEPAGE = https://pip.pypa.io/en/stable/
# MIT
PERMIT_PACKAGE_CDROM = Yes
MODPY_PI = Yes
MODULES = lang/python
BUILD_DEPENDS = textproc/py-sphinx${MODPY_FLAVOR}
MODPY_SETUPTOOLS = Yes
NO_TEST = Yes
FLAVORS = python3
FLAVOR ?=
DOCSRC = ${WRKSRC}/docs
post-build:
cd ${DOCSRC} && PYTHONPATH=${WRKSRC} \
${LOCALBASE}/bin/sphinx-build${MODPY_BIN_SUFFIX} -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>