Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/asciidoc Update asciidoc to 9.0.1.
details: https://anonhg.NetBSD.org/pkgsrc/rev/76dce33b6a30
branches: trunk
changeset: 435536:76dce33b6a30
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Wed Jul 08 19:05:56 2020 +0000
description:
Update asciidoc to 9.0.1.
Version 9.0.1 (2020-06-26)
Bug fixes
- Fix a2x crashing on decoding generated HTML pages
Building
- Fix generated tar.gz not having files under top-level asciidoc folder
Testing
- Test against Python 3.9
Version 9.0.0 (2020-06-02)
Additions and changes
- Port asciidoc to run on Python 3.5+ (see
https://github.com/asciidoc/asciidoc for the EOL Python 2 implementation)
- Drop internal implementation of OrderedDict and use the standard library
collections.OrderedDict instead
- Implement Dockerfile for running asciidoc
- Add Catalan translation
- Add docbook5 backend
- Fix misspellings in various files and documents
- Use UTC for testing instead of Pacific/Auckland (which observes daylight
saving time)
- Use "with" context statement for opening and closing files instead of older
try/finally pattern
- Search sibling paths before system wide paths in asciidocapi
- Add manpage for testasciidoc.py
- Use argparse instead of optparse for argument parsing
- Add simplified Chinese translation (thanks @muirmok)
- vim-asciidoc: speed up the refresh process for big files (thanks
@aerostitch)
- Allow specifying floatstyle attribute for figures, tables, equations,
examples in docbook (thanks @psaris)
- Use trans python module (if available) to better handle character
decomposition to ascii for ascii-ids (thanks @rkel)
- Use lru_cache to memoize repeated calls to macro look-up, giving potential
~15% speed-up on parsing
Bug fixes
- Fix index terms requiring two characters instead of just one (see
https://github.com/asciidoc/asciidoc-py3/pull/2#issuecomment-392605876)
- Properly capture and use colophon, dedication, and preface for docbooks in
Japanese (see
https://github.com/asciidoc/asciidoc-py3/pull/2#issuecomment-392623181)
- make install did not include the unwraplatex.py filter
- Fix a2x option collection from input file with non-ascii encoding
- Fix options attribute not being properly parsed in Delimited Blocks
attribute list
Building
- Migrate from hierarchical A-A-P build system to top-level Makefile
- Add make help target that prints out usage message for make
- Fix double slash issue in Makefile when installing asciidoc or its docs
Testing
- Commit generated test files to the repository for continuous integration
- Test against Python 3.5+ on Travis-CI
- Remove symlink tests/asciidocapi.py in favor of just appending to sys.path
- Add requires directive to testasciidoc.conf to indicate necessary external
dependencies (e.g. source-highlight)
diffstat:
textproc/asciidoc/Makefile | 5 +--
textproc/asciidoc/distinfo | 11 ++++-----
textproc/asciidoc/patches/patch-a2x.py | 35 ----------------------------------
3 files changed, 7 insertions(+), 44 deletions(-)
diffs (69 lines):
diff -r 3d0acb6bbb85 -r 76dce33b6a30 textproc/asciidoc/Makefile
--- a/textproc/asciidoc/Makefile Wed Jul 08 17:11:52 2020 +0000
+++ b/textproc/asciidoc/Makefile Wed Jul 08 19:05:56 2020 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.50 2020/06/02 08:24:49 adam Exp $
+# $NetBSD: Makefile,v 1.51 2020/07/08 19:05:56 bsiegert Exp $
-DISTNAME= asciidoc-py3-9.0.0rc2
+DISTNAME= asciidoc-py3-9.0.1
PKGNAME= ${DISTNAME:S/-py3//}
-PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=asciidoc/}
GITHUB_PROJECT= asciidoc-py3
diff -r 3d0acb6bbb85 -r 76dce33b6a30 textproc/asciidoc/distinfo
--- a/textproc/asciidoc/distinfo Wed Jul 08 17:11:52 2020 +0000
+++ b/textproc/asciidoc/distinfo Wed Jul 08 19:05:56 2020 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.20 2020/05/03 12:03:51 tnn Exp $
+$NetBSD: distinfo,v 1.21 2020/07/08 19:05:56 bsiegert Exp $
-SHA1 (asciidoc-py3-9.0.0rc2.tar.gz) = 4e241ba6fc84a78fd07cceec120daf14cbbc3b7c
-RMD160 (asciidoc-py3-9.0.0rc2.tar.gz) = 9a4c31acadafd92d360697e2462981ee62c07684
-SHA512 (asciidoc-py3-9.0.0rc2.tar.gz) = 61ea1eb74a2e2da76f92e32ef279f8940fa4ea77a82078e15b54c7c6f134e9d177b0425c6eb8a239cfd2dc6a6f85ad5e93883a447a3e0e92850c0898747b5ea3
-Size (asciidoc-py3-9.0.0rc2.tar.gz) = 1145229 bytes
-SHA1 (patch-a2x.py) = 34e7c7c44b9a9a9e416e617ec03692a2b64f63f6
+SHA1 (asciidoc-py3-9.0.1.tar.gz) = 8a9dfb86fcc101d3a3377c41a32ecb088a4fcade
+RMD160 (asciidoc-py3-9.0.1.tar.gz) = ffdb7537ac831755d2810beb5384306f6a4d07eb
+SHA512 (asciidoc-py3-9.0.1.tar.gz) = 6906d8fbfd8fad9dd6971f0671f4f0c88e59424710c25b2b1374a1fb8a80dad7a537edba19d9731c8f0f9096624cdfdd25e0b952e312fd36faac105f748fb105
+Size (asciidoc-py3-9.0.1.tar.gz) = 1143167 bytes
diff -r 3d0acb6bbb85 -r 76dce33b6a30 textproc/asciidoc/patches/patch-a2x.py
--- a/textproc/asciidoc/patches/patch-a2x.py Wed Jul 08 17:11:52 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-$NetBSD: patch-a2x.py,v 1.1 2020/05/03 12:03:51 tnn Exp $
-
-From 665d86fa0003584b6a62da66be56309e59333d79 Mon Sep 17 00:00:00 2001
-From: Christopher Kent Hoadley <chris.hoadley%gmail.com@localhost>
-Date: Wed, 29 Apr 2020 20:12:01 -0500
-Subject: [PATCH] Fix a2x option collection from input file with non-ascii
- encoding (#104)
-
-* Fix a2x Option Collection From Input File With Non-ASCII Encoding
-
---- a2x.py.orig 2020-03-12 00:31:53.000000000 +0000
-+++ a2x.py
-@@ -364,11 +364,19 @@ def get_source_options(asciidoc_file):
- result = []
- if os.path.isfile(asciidoc_file):
- options = ''
-- with open(asciidoc_file) as f:
-+ with open(asciidoc_file, 'rb') as f:
-+ line_number = 0
- for line in f:
-- mo = re.search(r'^//\s*a2x:', line)
-+ line_number += 1
-+ mo = re.search(b'^//\s*a2x:', line)
- if mo:
-- options += ' ' + line[mo.end():].strip()
-+ try:
-+ options += ' ' + line[mo.end():].strip().decode('ascii')
-+ except UnicodeDecodeError as e:
-+ warning(
-+ "Could not decode option to %s " % e.encoding +
-+ "on line %s in %s" % (line_number, asciidoc_file)
-+ )
- parse_options()
- return result
-
Home |
Main Index |
Thread Index |
Old Index