1 |
commit: b4d9ef28d653ca5246e3821460265944c8106192 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 11 03:12:22 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 11 03:12:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4d9ef28 |
7 |
|
8 |
app-text/docbook2X: port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
app-text/docbook2X/docbook2X-0.8.8-r4.ebuild | 20 ++++++++++++-------- |
14 |
.../files/docbook2X-0.8.8-drop-htmldir.patch | 4 ++-- |
15 |
.../docbook2X-0.8.8-error_on_missing_refentry.patch | 5 ++--- |
16 |
...ocbook2X-0.8.8-filename_whitespace_handling.patch | 10 ++++------ |
17 |
...ook2X-0.8.8-preprocessor_declaration_syntax.patch | 10 ++++------ |
18 |
5 files changed, 24 insertions(+), 25 deletions(-) |
19 |
|
20 |
diff --git a/app-text/docbook2X/docbook2X-0.8.8-r4.ebuild b/app-text/docbook2X/docbook2X-0.8.8-r4.ebuild |
21 |
index 53121b0e749..bd850d26957 100644 |
22 |
--- a/app-text/docbook2X/docbook2X-0.8.8-r4.ebuild |
23 |
+++ b/app-text/docbook2X/docbook2X-0.8.8-r4.ebuild |
24 |
@@ -1,10 +1,9 @@ |
25 |
-# Copyright 1999-2020 Gentoo Authors |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
-EAPI="5" |
30 |
+EAPI=7 |
31 |
|
32 |
-AUTOTOOLS_AUTORECONF=1 #290284 |
33 |
-inherit autotools-utils |
34 |
+inherit autotools |
35 |
|
36 |
DESCRIPTION="Tools to convert docbook to man and info" |
37 |
SRC_URI="mirror://sourceforge/docbook2x/${P}.tar.gz" |
38 |
@@ -35,23 +34,28 @@ PATCHES=( |
39 |
# bug #296112 |
40 |
"${FILESDIR}/${P}-drop-htmldir.patch" |
41 |
) |
42 |
+ |
43 |
src_prepare() { |
44 |
+ default |
45 |
+ |
46 |
sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac || die 'sed on configure.ac failed' |
47 |
|
48 |
- autotools-utils_src_prepare |
49 |
+ # bug #290284 |
50 |
+ eautoreconf |
51 |
} |
52 |
|
53 |
src_configure() { |
54 |
local myeconfargs=( |
55 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
56 |
--with-xslt-processor=libxslt |
57 |
--program-transform-name='/^docbook2/s,$,.pl,' |
58 |
) |
59 |
- autotools-utils_src_configure |
60 |
+ |
61 |
+ econf "${myeconfargs[@]}" |
62 |
} |
63 |
|
64 |
src_install() { |
65 |
- autotools-utils_src_install |
66 |
+ default |
67 |
+ |
68 |
dosym docbook2man.pl /usr/bin/docbook2x-man |
69 |
dosym docbook2texi.pl /usr/bin/docbook2x-texi |
70 |
} |
71 |
|
72 |
diff --git a/app-text/docbook2X/files/docbook2X-0.8.8-drop-htmldir.patch b/app-text/docbook2X/files/docbook2X-0.8.8-drop-htmldir.patch |
73 |
index a7e11b2dfd7..a36308587e4 100644 |
74 |
--- a/app-text/docbook2X/files/docbook2X-0.8.8-drop-htmldir.patch |
75 |
+++ b/app-text/docbook2X/files/docbook2X-0.8.8-drop-htmldir.patch |
76 |
@@ -1,8 +1,8 @@ |
77 |
Put HTML documentation in proper directory. |
78 |
Patch by Chris Mayo, https://bugs.gentoo.org/show_bug.cgi?id=296112 |
79 |
|
80 |
---- doc/Makefile.am.orig |
81 |
-+++ doc/Makefile.am |
82 |
+--- a/doc/Makefile.am |
83 |
++++ b/doc/Makefile.am |
84 |
@@ -182,8 +182,6 @@ |
85 |
# Install (automake) |
86 |
# |
87 |
|
88 |
diff --git a/app-text/docbook2X/files/docbook2X-0.8.8-error_on_missing_refentry.patch b/app-text/docbook2X/files/docbook2X-0.8.8-error_on_missing_refentry.patch |
89 |
index b8a493be2f3..a9d598874f9 100644 |
90 |
--- a/app-text/docbook2X/files/docbook2X-0.8.8-error_on_missing_refentry.patch |
91 |
+++ b/app-text/docbook2X/files/docbook2X-0.8.8-error_on_missing_refentry.patch |
92 |
@@ -10,9 +10,8 @@ |
93 |
## DP: <URL:http://lists.gnu.org/archive/html/groff/2007-11/msg00023.html> |
94 |
|
95 |
@DPATCH@ |
96 |
-diff -urNad trunk~/xslt/man/docbook.xsl trunk/xslt/man/docbook.xsl |
97 |
---- trunk~/xslt/man/docbook.xsl 2006-04-11 21:00:19.000000000 +0200 |
98 |
-+++ trunk/xslt/man/docbook.xsl 2008-02-05 03:31:48.000000000 +0100 |
99 |
+--- a/xslt/man/docbook.xsl |
100 |
++++ b/xslt/man/docbook.xsl |
101 |
@@ -111,11 +111,15 @@ |
102 |
<xsl:when test="child::refentry"> |
103 |
<xsl:apply-templates /> |
104 |
|
105 |
diff --git a/app-text/docbook2X/files/docbook2X-0.8.8-filename_whitespace_handling.patch b/app-text/docbook2X/files/docbook2X-0.8.8-filename_whitespace_handling.patch |
106 |
index 26cdf8e1bae..7d181a1ccb0 100644 |
107 |
--- a/app-text/docbook2X/files/docbook2X-0.8.8-filename_whitespace_handling.patch |
108 |
+++ b/app-text/docbook2X/files/docbook2X-0.8.8-filename_whitespace_handling.patch |
109 |
@@ -13,9 +13,8 @@ |
110 |
## DP: refentrytitle and then replace any spaces left with underlines. |
111 |
|
112 |
@DPATCH@ |
113 |
-diff -urNad docbook2x-0.8.8~/xslt/man/manpage.xsl docbook2x-0.8.8/xslt/man/manpage.xsl |
114 |
---- docbook2x-0.8.8~/xslt/man/manpage.xsl 2006-04-20 15:45:55.000000000 +0200 |
115 |
-+++ docbook2x-0.8.8/xslt/man/manpage.xsl 2007-04-20 16:19:28.000000000 +0200 |
116 |
+--- a/xslt/man/manpage.xsl |
117 |
++++ b/xslt/man/manpage.xsl |
118 |
@@ -30,7 +30,7 @@ |
119 |
|
120 |
<xsl:template name="manpage-filename"> |
121 |
@@ -25,9 +24,8 @@ diff -urNad docbook2x-0.8.8~/xslt/man/manpage.xsl docbook2x-0.8.8/xslt/man/manpa |
122 |
</xsl:template> |
123 |
|
124 |
|
125 |
-diff -urNad docbook2x-0.8.8~/xslt/man/refentry.xsl docbook2x-0.8.8/xslt/man/refentry.xsl |
126 |
---- docbook2x-0.8.8~/xslt/man/refentry.xsl 2006-04-21 04:39:55.000000000 +0200 |
127 |
-+++ docbook2x-0.8.8/xslt/man/refentry.xsl 2007-04-20 16:21:53.000000000 +0200 |
128 |
+--- a/xslt/man/refentry.xsl |
129 |
++++ b/xslt/man/refentry.xsl |
130 |
@@ -38,7 +38,11 @@ |
131 |
<xsl:template name="refentry-filename"> |
132 |
<xsl:param name="title" /> |
133 |
|
134 |
diff --git a/app-text/docbook2X/files/docbook2X-0.8.8-preprocessor_declaration_syntax.patch b/app-text/docbook2X/files/docbook2X-0.8.8-preprocessor_declaration_syntax.patch |
135 |
index b6ddbfa2a0d..6c85701d2e9 100644 |
136 |
--- a/app-text/docbook2X/files/docbook2X-0.8.8-preprocessor_declaration_syntax.patch |
137 |
+++ b/app-text/docbook2X/files/docbook2X-0.8.8-preprocessor_declaration_syntax.patch |
138 |
@@ -13,9 +13,8 @@ |
139 |
## DP: <URL:http://lists.gnu.org/archive/html/groff/2007-11/msg00023.html> |
140 |
|
141 |
@DPATCH@ |
142 |
-diff -urNad trunk~/perl/db2x_manxml.pl trunk/perl/db2x_manxml.pl |
143 |
---- trunk~/perl/db2x_manxml.pl 2006-04-22 17:21:32.000000000 +0200 |
144 |
-+++ trunk/perl/db2x_manxml.pl 2007-11-24 01:27:37.000000000 +0100 |
145 |
+--- a/perl/db2x_manxml.pl |
146 |
++++ b/perl/db2x_manxml.pl |
147 |
@@ -342,6 +342,25 @@ |
148 |
$self->{line_start} = 1; |
149 |
} |
150 |
@@ -67,9 +66,8 @@ diff -urNad trunk~/perl/db2x_manxml.pl trunk/perl/db2x_manxml.pl |
151 |
|
152 |
# Define escapes for switching to and from monospace fonts (groff only) |
153 |
$self->{rw}->request(qw{ .if \n(.g .ds T< \\\\FC}); |
154 |
-diff -urNad trunk~/xslt/backend/db2x_manxml.xsl trunk/xslt/backend/db2x_manxml.xsl |
155 |
---- trunk~/xslt/backend/db2x_manxml.xsl 2006-04-23 16:44:52.000000000 +0200 |
156 |
-+++ trunk/xslt/backend/db2x_manxml.xsl 2007-11-24 01:27:37.000000000 +0100 |
157 |
+--- a/xslt/backend/db2x_manxml.xsl |
158 |
++++ b/xslt/backend/db2x_manxml.xsl |
159 |
@@ -528,7 +528,7 @@ |
160 |
<exslt:document method="text" |
161 |
encoding="{$encoding}" |