pkgsrc/textproc/py-docutils/Makefile
adam 6b73ca542c py-docutils: updatede to 0.15.2
Release 0.15.2:

* docutils/nodes.py
  - Fix 366: circular import when docutils nodes is iported before docutils.utils
    by putting import docutils.utils into astext.
  - Fix 366: as it is done in trunk Commit [r8294], moving the function.


Release 0.15:

* General
  - Dropped support for Python 2.4, 2.5, 3.1, and 3.2.
  - Infrastructure automation.

* docs/ref/rst/restructuredtext.txt:
  - Document rST syntax change: Tokens like :this:example: are now valid
    field list names (instead of ordinary text).

* docutils/io.py
  - Fix [ 348 ] Since Python 3.4, the 'U' universal newlines mode has been
    deprecated (thanks to hugovk).

*  docutils/languages/la.py
   docutils/parsers/rst/languages/la.py:
  - Apply [ 153 ] Korean mappings by Thomas Sungjin Kang.

* docutils/nodes.py
  - Fix [ 251 ] system_message.copy() TypeError.
  - Element.copy() also copies document, line, and source attributes.

* docutils/parsers/rst/__init__.py:
  - Apply [ 152 ] reset default role at end of document.

* docutils/parsers/rst/states.py:
  - Allow embedded colons in field list field names.
  - Add rawsource attribute for text of inline elements.

* docutils/parsers/rst/directives/html.py:
  - Fix bug 281: Remove escaping backslashes in meta directive content.

* docutils/parsers/rst/directives/misc.py:
  - Don't convert tabs to spaces, if tab_width is negative in
    include directive with code option.

* docutils/parsers/rst/directives/tables.py:
  - Apply patch 121: Add "width" option for the table directives.

* docutils/transforms/frontmatter.py:
  - Add field name as class argument to generic docinfo fields unconditionally.

* docutils/transforms/references.py:
  - Fix bug 331: fixed the "trim" options of the "unicode" directive.

* docutils/utils/__init__.py:
  - Deprecate unique_combinations (obsoleted by itertools.combinations).

* docutils/utils/smartquotes.py:
  - Fix bug 332: use open quote after whitespace, ZWSP, and ZWNJ.

* docutils/writers/html5_polyglot/
  - automatically add HTML5-compatible meta tags for docinfo items
    "authors", "date", and "copyright".

* docutils/writers/_html_base.py
  - Fix bug 358: Non-breaking space removed from fixed-width literal.

* docutils/writers/latex2e/__init__.py:
  - Fix bug 323: spurious \phantomsection and whitespace in
    parts['title'].
  - Fix bug 324: Invalid LaTeX for table with empty multicolumn cell.
  - Fixes to literal block handling.
2019-08-13 12:35:12 +00:00

44 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.48 2019/08/13 12:35:12 adam Exp $
DISTNAME= docutils-0.15.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=d/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}-expat>=0:../../textproc/py-expat
DEPENDS+= ${PYPKGPREFIX}-roman>=1.4:../../math/py-roman
USE_LANGUAGES= # none
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
post-install:
.for bin in rst2html rst2html4 rst2html5 rst2latex rst2man rst2odt \
rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html
cd ${DESTDIR}${PREFIX}/bin && \
${MV} ${bin}.py ${bin}-${PYVERSSUFFIX} || ${TRUE}
.endfor
.include "../../lang/python/pyversion.mk"
do-test:
.if ${_PYTHON_VERSION} == 27
cd ${WRKSRC} && ${PYTHONBIN} test/alltests.py
.else
cd ${WRKSRC} && ${PYTHONBIN} test3/alltests.py
.endif
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"