sthen d7f0752227 bump all the py3 things, _SYSTEM_VERSION didn't quite work out how
we expected and it's easier|safer to do it this way than fiddle with
pkg_add now. thanks aja for update tests with a quick bulk.
2019-04-28 20:51:26 +00:00

41 lines
812 B
Makefile

# $OpenBSD: Makefile,v 1.32 2019/04/28 20:51:35 sthen Exp $
COMMENT = Python easy_install replacement
MODPY_EGG_VERSION = 9.0.3
DISTNAME = pip-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = devel
REVISION = 0
HOMEPAGE = https://pip.pypa.io/en/stable/
# MIT
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
BUILD_DEPENDS = textproc/py-sphinx${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
# No test suites in pypi tarball
NO_TEST = Yes
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>