textproc/docbook2mdoc: patch to support <address>

The xdg-utils docbook uses a "address" tag, this allows to use
docbook2mdoc to convert xdg-utils docbook files to manpages or
text files
This commit is contained in:
Baptiste Daroussin 2022-09-15 12:07:27 +02:00
parent af5813bedf
commit eafaf14b79
3 changed files with 21 additions and 0 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= docbook2mdoc
PORTVERSION= 1.1.0
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://mdocml.bsd.lv/docbook2mdoc/snapshots/

View File

@ -0,0 +1,10 @@
--- node.c.orig 2022-09-15 07:09:04 UTC
+++ node.c
@@ -33,6 +33,7 @@ static const struct nodeprop properties[] = {
static const struct nodeprop properties[] = {
{ "abstract", CLASS_BLOCK },
+ { "address", CLASS_LINE },
{ "appendix", CLASS_BLOCK },
{ "arg", CLASS_ENCL },
{ "author", CLASS_LINE },

View File

@ -0,0 +1,10 @@
--- node.h.orig 2019-05-02 13:37:55 UTC
+++ node.h
@@ -41,6 +41,7 @@ enum nodeid {
*/
enum nodeid {
NODE_ABSTRACT,
+ NODE_ADDRESS,
NODE_APPENDIX,
NODE_ARG,
NODE_AUTHOR,