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

39 lines
820 B
Makefile

# $OpenBSD: Makefile,v 1.24 2019/04/28 20:51:55 sthen Exp $
COMMENT = process plaintext documentation into other formats
MODPY_EGG_VERSION = 0.12
DISTNAME = docutils-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = textproc
REVISION = 2
HOMEPAGE = http://docutils.sourceforge.net/
# BSD/GPL/Python Software License
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
RUN_DEPENDS = textproc/py-pygments${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
pre-build:
.for file in 2html 2s5 2latex 2xetex 2man 2xml 2pseudoxml 2odt 2odt_prepstyles pep2html
mv ${WRKSRC}/tools/rst${file}{.py,}
.endfor
post-install:
for i in ${PREFIX}/bin/*; do \
mv $${i} $${i}${MODPY_BIN_SUFFIX} ;\
done
do-test:
cd ${WRKSRC}/test${MODPY_BIN_SUFFIX:S/-//} && ${MODPY_BIN} ./alltests.py
.include <bsd.port.mk>