Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/asciidoc asciidoc: switch to the py3 port of ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7ad8f0372d44
branches: trunk
changeset: 430702:7ad8f0372d44
user: tnn <tnn%pkgsrc.org@localhost>
date: Sun May 03 12:03:51 2020 +0000
description:
asciidoc: switch to the py3 port of asciidoc, update to 9.0.0rc2.
This is technically a release candidate but it has been tested in a limited
pbulk build and it lets us get rid of another python2 dependency.
diffstat:
textproc/asciidoc/Makefile | 8 +++---
textproc/asciidoc/PLIST | 5 +++-
textproc/asciidoc/distinfo | 11 +++++----
textproc/asciidoc/patches/patch-a2x.py | 35 ++++++++++++++++++++++++++++++++++
4 files changed, 49 insertions(+), 10 deletions(-)
diffs (111 lines):
diff -r 3abc6220a69e -r 7ad8f0372d44 textproc/asciidoc/Makefile
--- a/textproc/asciidoc/Makefile Sun May 03 12:02:19 2020 +0000
+++ b/textproc/asciidoc/Makefile Sun May 03 12:03:51 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.47 2019/04/25 07:33:23 maya Exp $
+# $NetBSD: Makefile,v 1.48 2020/05/03 12:03:51 tnn Exp $
-DISTNAME= asciidoc-8.6.10
-PKGREVISION= 1
+DISTNAME= asciidoc-py3-9.0.0rc2
+PKGNAME= ${DISTNAME:S/-py3//}
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=asciidoc/}
@@ -32,7 +32,7 @@
REPLACE_PYTHON+= tests/asciidocapi.py
REPLACE_PYTHON+= tests/testasciidoc.py
-PYTHON_VERSIONS_ACCEPTED= 27
+PYTHON_VERSIONS_INCOMPATIBLE= 27
INSTALLATION_DIRS= bin share/asciidoc share/asciidoc/filters \
share/asciidoc/docbook-xsl share/asciidoc/stylesheets \
diff -r 3abc6220a69e -r 7ad8f0372d44 textproc/asciidoc/PLIST
--- a/textproc/asciidoc/PLIST Sun May 03 12:02:19 2020 +0000
+++ b/textproc/asciidoc/PLIST Sun May 03 12:03:51 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.18 2018/07/03 03:48:38 adam Exp $
+@comment $NetBSD: PLIST,v 1.19 2020/05/03 12:03:51 tnn Exp $
bin/a2x
bin/asciidoc
man/man1/a2x.1
@@ -16,6 +16,7 @@
share/asciidoc/docbook-xsl/text.xsl
share/asciidoc/docbook-xsl/xhtml.xsl
share/asciidoc/docbook45.conf
+share/asciidoc/docbook5.conf
share/asciidoc/filters/code/code-filter-readme.txt
share/asciidoc/filters/code/code-filter-test.txt
share/asciidoc/filters/code/code-filter.conf
@@ -68,6 +69,7 @@
share/asciidoc/javascripts/asciidoc.js
share/asciidoc/javascripts/slidy.js
share/asciidoc/javascripts/toc.js
+share/asciidoc/lang-ca.conf
share/asciidoc/lang-cs.conf
share/asciidoc/lang-de.conf
share/asciidoc/lang-el.conf
@@ -86,6 +88,7 @@
share/asciidoc/lang-ru.conf
share/asciidoc/lang-sv.conf
share/asciidoc/lang-uk.conf
+share/asciidoc/lang-zh-CN.conf
share/asciidoc/latex.conf
share/asciidoc/slidy.conf
share/asciidoc/stylesheets/asciidoc.css
diff -r 3abc6220a69e -r 7ad8f0372d44 textproc/asciidoc/distinfo
--- a/textproc/asciidoc/distinfo Sun May 03 12:02:19 2020 +0000
+++ b/textproc/asciidoc/distinfo Sun May 03 12:03:51 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.19 2018/07/03 03:48:38 adam Exp $
+$NetBSD: distinfo,v 1.20 2020/05/03 12:03:51 tnn Exp $
-SHA1 (asciidoc-8.6.10.tar.gz) = 53b9c916bb4e29d2a4b850446be070ef81dcd792
-RMD160 (asciidoc-8.6.10.tar.gz) = 42346e7f17f136c0e7c5abb61216ef570aaa2dd9
-SHA512 (asciidoc-8.6.10.tar.gz) = 6ecc86977baaf1c756691e3f661e43ef2bb24e606898f6075bfa6f174d1fdc5e77d00853ffe014847e295364349d6ad34f3b8209cb97870e0233012fc38a281a
-Size (asciidoc-8.6.10.tar.gz) = 577208 bytes
+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
diff -r 3abc6220a69e -r 7ad8f0372d44 textproc/asciidoc/patches/patch-a2x.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/asciidoc/patches/patch-a2x.py Sun May 03 12:03:51 2020 +0000
@@ -0,0 +1,35 @@
+$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