[BACK]Return to patch-doc_pfedoc_docbookdocument.py CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / pfe / patches

File: [cvs.NetBSD.org] / pkgsrc / lang / pfe / patches / patch-doc_pfedoc_docbookdocument.py (download)

Revision 1.1, Thu Dec 28 12:46:58 2017 UTC (4 years, 5 months ago) by dholland
Branch: MAIN
CVS Tags: pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, HEAD

Fix broken build:
  - extend upstream hack to work around invalid xml generated by the
    docstrings tool;
  - add a bunch of missing html files to the PLIST;
  - disable build/install of the test modules as they don't understand
    the distinction between build dirs and install dirs;
  - bump PKGREVISION to 10 for the PLIST changes, although this is
    probably unnecessary.

$NetBSD: patch-doc_pfedoc_docbookdocument.py,v 1.1 2017/12/28 12:46:58 dholland Exp $

Extend existing upstream hack in the docstrings processor to an
apparently similar case of garbled output that's currently breaking
the build.

--- doc/pfedoc/docbookdocument.py~	2009-10-04 13:06:40.000000000 +0000
+++ doc/pfedoc/docbookdocument.py
@@ -4,6 +4,7 @@ from match import Match
 def _hack_fixup(text):
     T = text & Match(r"(<function>[^<>]+)\\&lt\\;/link>") >> "\\1</function>"
+    T = T & Match(r"(<literal>[^<>]+)\\&lt\\;/code>") >> "\\1</literal>"
     if T != text:
         pass # print "HACK FIXUP:", text
     return T