blob: 0cf8111aa3a91c2057fd14aca87243666ae34fdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $NetBSD: Makefile,v 1.43 2015/02/24 11:03:05 markd Exp $
DISTNAME= docutils-0.12
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=docutils/}
MAINTAINER= darcy@NetBSD.org
HOMEPAGE= http://docutils.sourceforge.net/
COMMENT= Python tool to generate documents
LICENSE= public-domain AND 2-clause-bsd
DEPENDS+= ${PYPKGPREFIX}-roman>=1.4:../../math/py-roman
DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat
USE_LANGUAGES= #none
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
FILES_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
REPLACE_PYTHON+= docutils/utils/code_analyzer.py
REPLACE_PYTHON+= docutils/utils/error_reporting.py
REPLACE_PYTHON+= docutils/utils/math/latex2mathml.py
REPLACE_PYTHON+= docutils/utils/math/math2html.py
REPLACE_PYTHON+= docutils/utils/punctuation_chars.py
REPLACE_PYTHON+= docutils/utils/smartquotes.py
REPLACE_PYTHON+= docutils/writers/xetex/__init__.py
CMDS= rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5
CMDS+= rst2xetex rst2xml rstpep2html
post-install:
for f in ${CMDS}; do \
${MV} ${DESTDIR}${PREFIX}/bin/$$f.py ${DESTDIR}${PREFIX}/bin/$$f-${PYVERSSUFFIX}.py; \
done
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
|