projects/guix·blob python-team · refs

216 lines · 7.4 KiB

1# Source: <https://sources.debian.org/patches/docbook-utils/0.6.14-4/remove-jade-sp.patch/>
2Description: Change dependencies on jade and sp to openjade and opensp
3Author: Neil Roeth <[email protected]>
4Last-Update: 2016-07-24
5
6Edit by Bruno Victal <[email protected]>:
7 Patch was edited so that it could be applied against the original
8 docbook-utils-0.6.14 sources.
9---
10This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
11--- a/doc/HTML/Makefile.am
12+++ b/doc/HTML/Makefile.am
13@@ -1,4 +1,4 @@
14-htmldir = $(docdir)/html/docbook-utils-@VERSION@
15+htmldir = $(docdir)/html
16 html_DATA = api.html \
17 backend-spec.html \
18 docbook2man.html \
19@@ -25,6 +25,6 @@
20 $(top_srcdir)/doc/refentry/sgmldiff.sgml
21 SGML_CATALOG_FILES=/etc/sgml/catalog \
22 SGML_SEARCH_PATH=$(top_srcdir):$(top_srcdir)/doc:.. \
23- jade -t sgml -i html -d $(top_srcdir)/docbook-utils.dsl\#html \
24+ openjade -t sgml -i html -d $(top_srcdir)/docbook-utils.dsl\#html \
25 -V '%use-id-as-filename%' $<
26
27--- a/doc/man/Makefile.am
28+++ b/doc/man/Makefile.am
29@@ -12,5 +12,5 @@
30 $(top_srcdir)/helpers/docbook2man-spec.pl
31 SGML_CATALOG_FILES=/etc/sgml/catalog \
32 SGML_SEARCH_PATH=$(top_srcdir)/doc:.. \
33- nsgmls $< | \
34+ onsgmls $< | \
35 sgmlspl $(top_srcdir)/helpers/docbook2man-spec.pl
36--- a/backends/man.in
37+++ b/backends/man.in
38@@ -7,8 +7,8 @@
39 TMPDIR=`mktemp -d /tmp/man.XXXXXX` || \
40 { echo >&2 "man backend: could not create secure temporary directory"; exit 1;}
41 trap 'rm -rf "${TMPDIR}"' EXIT
42-nsgmls $SGML_FILE > "${TMPDIR}/nsgmls.tmp"
43-sgmlspl $HELPER <"${TMPDIR}/nsgmls.tmp" 2>"${TMPDIR}/errs"
44+onsgmls $SGML_FILE > "${TMPDIR}/onsgmls.tmp"
45+sgmlspl $HELPER <"${TMPDIR}/onsgmls.tmp" 2>"${TMPDIR}/errs"
46 if [ $? -ne 0 ]
47 then
48 cat "${TMPDIR}/errs"
49@@ -18,7 +18,7 @@
50 if grep unresolved "${TMPDIR}/errs" >/dev/null 2>&1
51 then
52 echo "Resolving references.."
53- sgmlspl $HELPER <"${TMPDIR}/nsgmls.tmp"
54+ sgmlspl $HELPER <"${TMPDIR}/onsgmls.tmp"
55 if [ $? -ne 0 ]
56 then exit 1
57 fi
58--- a/backends/texi.in
59+++ b/backends/texi.in
60@@ -3,7 +3,7 @@
61 # This program is under GPL license. See LICENSE file for details.
62
63 # Convert to texinfo
64-nsgmls $SGML_FILE | sgmlspl $SGML_BASE_DIR/docbook/utils-@VERSION@/helpers/docbook2texi-spec.pl >$SGML_FILE_NAME.texi
65+onsgmls $SGML_FILE | sgmlspl docbook2texi-spec.pl >$SGML_FILE_NAME.texi
66 if [ $? -ne 0 ]
67 then exit 1
68 fi
69--- a/bin/sgmldiff.in
70+++ b/bin/sgmldiff.in
71@@ -22,13 +22,13 @@
72
73 use strict;
74 use integer;
75-use vars qw($nsgmls $errors $errorlog $VERSION);
76+use vars qw($onsgmls $errors $errorlog $VERSION);
77 use Getopt::Long 2.01;
78
79 $VERSION = 1.03;
80
81-my $nsgmls;
82-$nsgmls = "@jade_bindir@/nsgmls";
83+my $onsgmls;
84+$onsgmls = "@jade_bindir@/onsgmls";
85
86 #----------------------------------------------------------------------
87 # TODO:
88@@ -37,7 +37,7 @@
89 # - Wait for suggestions ;-)
90 #
91 # Note: the input file need not be valid, nor is it necessary to have
92-# the DTDs. nsgmls always returns a structure.
93+# the DTDs. onsgmls always returns a structure.
94 #----------------------------------------------------------------------
95
96 # Get file name
97@@ -141,11 +141,11 @@
98 unlink $diff2;
99
100 #---------------------------------------------------------------------
101-# Process nsgmls output: keep all stuff that is important for the
102+# Process onsgmls output: keep all stuff that is important for the
103 # structure comparison. Make two structures: one that is diffed
104 # (without text) (DIFF) and one that is used to present the
105 # differences to the user (@full). For more info: see SP
106-# documentation, nsgmls output format.
107+# documentation, onsgmls output format.
108
109 sub prepare {
110 my($filename,$todiffname) = @_;
111@@ -161,7 +161,7 @@
112 my @line_numbered = ();
113 my $line = 0;
114
115- open(ESIS, "$nsgmls -l $errors $errorlog -onotation-sysid -oid -oempty $filename | "); #-oentity generates strange output; ? -ononsgml
116+ open(ESIS, "$onsgmls -l $errors $errorlog -onotation-sysid -oid -oempty $filename | "); #-oentity generates strange output; ? -ononsgml
117 open(DIFF, "> $todiffname");
118 while (<ESIS>) {
119 chomp $_;
120@@ -375,7 +375,7 @@
121 };
122
123 #----------------------------------------------------------------------
124-# Normalise data text from nsgmls (i.e. don't print the escaped text).
125+# Normalise data text from onsgmls (i.e. don't print the escaped text).
126 sub normalise_text {
127 my($string,$prefix) = @_;
128 my $result = "$prefix";
129--- a/configure.in
130+++ b/configure.in
131@@ -21,7 +21,7 @@
132
133 dnl Checks for programs.
134 jade_bindirs="/usr/bin /usr/local/bin"
135-AC_FIND_PROGRAM(nsgmls, $jade_bindirs, jade_bindir)
136+AC_FIND_PROGRAM(onsgmls, $jade_bindirs, jade_bindir)
137 AC_SUBST(jade_bindir)
138
139 perl_bindirs="/usr/bin /usr/local/bin"
140--- a/doc/refentry/docbook2man-spec.pl.sgml
141+++ b/doc/refentry/docbook2man-spec.pl.sgml
142@@ -19,7 +19,7 @@
143 <!-- docbook2man-spec.pl BREAKAGE HERE! -->
144
145 <CmdSynopsis>
146-<Command>nsgmls</command>
147+<Command>onsgmls</command>
148 <Arg><Replaceable>sgml document</replaceable></Arg>
149 <Command>| sgmlspl</command>
150 <Arg choice=req>docbook2man-spec.pl</arg>
151@@ -35,7 +35,7 @@
152 </Para>
153
154 <Para>
155-The program reads ESIS produced by nsgmls (or other SGML parsers) from
156+The program reads ESIS produced by onsgmls (or other SGML parsers) from
157 standard input. Markup not found in RefEntry is discarded.
158 </Para>
159
160--- a/doc/refentry/docbook2texi-spec.pl.sgml
161+++ b/doc/refentry/docbook2texi-spec.pl.sgml
162@@ -20,7 +20,7 @@
163 <!-- docbook2man-spec.pl BREAKAGE HERE! -->
164
165 <CmdSynopsis>
166-<Command>nsgmls</command>
167+<Command>onsgmls</command>
168 <Arg><Replaceable>sgml document</replaceable></Arg>
169 <Command>| sgmlspl</command>
170 <Arg choice=req>docbook2texi-spec.pl</arg>
171@@ -37,7 +37,7 @@
172 </Para>
173
174 <Para>
175-The program reads ESIS produced by nsgmls (or other SGML parsers) from
176+The program reads ESIS produced by onsgmls (or other SGML parsers) from
177 standard input. Currently the document element must be <SGMLTag>Book</sgmltag>,
178 otherwise the results are undefined.
179 </Para>
180--- a/doc/refentry/jw.sgml
181+++ b/doc/refentry/jw.sgml
182@@ -630,7 +630,7 @@
183 <manvolnum>1</manvolnum></citerefentry>,
184 <citerefentry><refentrytitle>install-catalog</refentrytitle>
185 <manvolnum>8</manvolnum></citerefentry>,
186- <citerefentry><refentrytitle>nsgmls</refentrytitle>
187+ <citerefentry><refentrytitle>onsgmls</refentrytitle>
188 <manvolnum>1</manvolnum></citerefentry>, <ulink
189 url="http://sources.redhat.com/docbook-tools/">docbook-utils
190 homepage</ulink>.</para>
191--- a/doc/refentry/sgmldiff.sgml
192+++ b/doc/refentry/sgmldiff.sgml
193@@ -238,10 +238,10 @@
194 <glossterm>
195 <!-- Next line is a hack to force a paragraph break in the man-page. -->
196 <cmdsynopsis> <command></command> </cmdsynopsis>
197- <citerefentry> <refentrytitle>nsgmls</refentrytitle> <manvolnum>1</manvolnum> </citerefentry>
198+ <citerefentry> <refentrytitle>onsgmls</refentrytitle> <manvolnum>1</manvolnum> </citerefentry>
199 </glossterm>
200 <glossdef>
201- <para>a base component of <application>Jade</application> DSSSL engine</para>
202+ <para>a base component of <application>OpenJade</application> DSSSL engine</para>
203 </glossdef>
204 </glossentry>
205
206--- a/helpers/docbook2man-spec.pl
207+++ b/helpers/docbook2man-spec.pl
208@@ -7,7 +7,7 @@
209 The SGMLSpm package from CPAN. This contains the sgmlspl script which
210 is used to grok this file. Use it like this:
211
212-nsgmls some-docbook-document.sgml | sgmlspl docbook2man-spec.pl
213+onsgmls some-docbook-document.sgml | sgmlspl docbook2man-spec.pl
214
215 =head1 DESCRIPTION
216