39 lines
821 B
Makefile
39 lines
821 B
Makefile
# $OpenBSD: Makefile,v 1.23 2017/01/03 19:27:52 landry Exp $
|
|
|
|
COMMENT = process plaintext documentation into other formats
|
|
|
|
MODPY_EGG_VERSION = 0.12
|
|
DISTNAME = docutils-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
CATEGORIES = textproc
|
|
REVISION = 1
|
|
|
|
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>
|