1 |
commit: faf86b65ff03fb597dbc03b2f75aa26daa22b7da |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 17:04:37 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 29 17:04:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faf86b65 |
7 |
|
8 |
app-doc/xmltoman: add 0.6 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-doc/xmltoman/Manifest | 1 + |
13 |
.../files/xmltoman-0.6-generate-man-pages.patch | 55 ++++++++++++++++++++++ |
14 |
app-doc/xmltoman/xmltoman-0.6.ebuild | 33 +++++++++++++ |
15 |
3 files changed, 89 insertions(+) |
16 |
|
17 |
diff --git a/app-doc/xmltoman/Manifest b/app-doc/xmltoman/Manifest |
18 |
index 539f8b184342..cc8d650c97d7 100644 |
19 |
--- a/app-doc/xmltoman/Manifest |
20 |
+++ b/app-doc/xmltoman/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST xmltoman-0.4.tar.gz 15250 BLAKE2B d8641a19742d845fdab0e11703a60c16656c63529a4d86931a8038cbdb87e0fbf241b7ff38ed05ddab62daab608407bd5d7778c060fe3cbef1750976fa588dee SHA512 347722731e2101ecd0619f88f4efdbca534810c96977a1281af685e8a61f4c1a826a71a9f0e3af43cc899936640787366a78077f36d23a9efcfeb789dbcfae22 |
23 |
+DIST xmltoman-0.6.tar.gz 15862 BLAKE2B f33ebfb1dfdd0f055f18e68f923e96c07495740e361cec2ba7a10a63889b6b6c4c851f3df6b74947b24811403d2745dbdc7e5d2d67d3566ec65b7be6fae616c8 SHA512 f2b0689ca37212253eaa127c3a2c299facac7c3909991b8872da0adf0fbb34aa02c32144c485135c06c17b1ac5e5753d627969e97ae4938e6dcee9ddbd79582d |
24 |
|
25 |
diff --git a/app-doc/xmltoman/files/xmltoman-0.6-generate-man-pages.patch b/app-doc/xmltoman/files/xmltoman-0.6-generate-man-pages.patch |
26 |
new file mode 100644 |
27 |
index 000000000000..a902ddd07b84 |
28 |
--- /dev/null |
29 |
+++ b/app-doc/xmltoman/files/xmltoman-0.6-generate-man-pages.patch |
30 |
@@ -0,0 +1,55 @@ |
31 |
+From 39553c816cb8a18d798a6f947d2901f7a3228439 Mon Sep 17 00:00:00 2001 |
32 |
+From: Sam James <sam@g.o> |
33 |
+Date: Sat, 29 Oct 2022 18:02:25 +0100 |
34 |
+Subject: [PATCH] Generate man pages |
35 |
+ |
36 |
+Generate the man pages so that the tool doesn't have to run itself |
37 |
+during installation. It's a hack to workaround Perl upgrade problems. |
38 |
+--- /dev/null |
39 |
++++ b/xmlmantohtml.1 |
40 |
+@@ -0,0 +1,18 @@ |
41 |
++.TH xmlmantohtml 1 User Manuals |
42 |
++.SH NAME |
43 |
++xmlmantohtml \- xml to html converter |
44 |
++.SH SYNOPSIS |
45 |
++\fBxmlmantohtml \fIfile.1.xml\fB > file.1.html |
46 |
++\f1 |
47 |
++.SH DESCRIPTION |
48 |
++xmlmantohtml is a small script to convert XML/MAN(GROFF) to HTML. |
49 |
++ |
50 |
++You will find the DTD in \fI/usr/share/xmltoman/\f1 on a Debian GNU/Linux system. There is also an XSL file to generate HTML using \fBxsltproc(1)\f1. |
51 |
++.SH AUTHOR |
52 |
++xmltoman was written by Oliver Kurth <oku@××××××××.cx> |
53 |
++.SH MAINTAINER |
54 |
++xmltoman is currently maintained by Adam Bilbrough |
55 |
++.SH SEE ALSO |
56 |
++\fBxmlmantohtml(1)\f1 |
57 |
++.SH COMMENTS |
58 |
++This man page was written using \fBxmltoman(1)\f1 by the same author and / or maintainer. |
59 |
+--- /dev/null |
60 |
++++ b/xmltoman.1 |
61 |
+@@ -0,0 +1,24 @@ |
62 |
++.TH xmltoman 1 User Manuals |
63 |
++.SH NAME |
64 |
++xmltoman \- xml to man converter |
65 |
++.SH SYNOPSIS |
66 |
++\fBxmltoman \fIfile.1.xml\fB > file.1 |
67 |
++\f1 |
68 |
++.SH DESCRIPTION |
69 |
++xmltoman is a small script to convert XML to a MAN page in GROFF format. It features the usual man page items such a description, options, see also etc. The XML format also supports converting to HTML pages. |
70 |
++ |
71 |
++You will find the DTD in \fI/usr/share/xmltoman/\f1 on a Debian GNU/Linux system. There is also an XSL file to generate html using \fBxsltproc(1)\f1. |
72 |
++.SH FILES |
73 |
++\fI/usr/share/xmltoman/xmltoman.dtd\f1 the DTD file. |
74 |
++ |
75 |
++\fI/usr/share/xmltoman/xmltoman.xsl\f1 XSLT stylesheet to generate HTML. |
76 |
++ |
77 |
++\fI/usr/share/xmltoman/xmltoman.css\f1 stylesheet to be used for HTML. |
78 |
++.SH AUTHOR |
79 |
++xmltoman was written by Oliver Kurth <oku@××××××××.cx> |
80 |
++.SH MAINTAINER |
81 |
++xmltoman is currently maintained by Adam Bilbrough |
82 |
++.SH SEE ALSO |
83 |
++\fBxmlmantohtml(1)\f1 |
84 |
++.SH COMMENTS |
85 |
++This man page was written using \fBxmltoman(1)\f1 by the same author and / or maintainer. |
86 |
|
87 |
diff --git a/app-doc/xmltoman/xmltoman-0.6.ebuild b/app-doc/xmltoman/xmltoman-0.6.ebuild |
88 |
new file mode 100644 |
89 |
index 000000000000..5faec34d22f1 |
90 |
--- /dev/null |
91 |
+++ b/app-doc/xmltoman/xmltoman-0.6.ebuild |
92 |
@@ -0,0 +1,33 @@ |
93 |
+# Copyright 1999-2022 Gentoo Authors |
94 |
+# Distributed under the terms of the GNU General Public License v2 |
95 |
+ |
96 |
+EAPI=8 |
97 |
+ |
98 |
+DESCRIPTION="Simple scripts for converting xml to groff or html" |
99 |
+HOMEPAGE="https://sourceforge.net/projects/xmltoman/" |
100 |
+SRC_URI="https://github.com/atsb/xmltoman/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
101 |
+ |
102 |
+LICENSE="GPL-2" |
103 |
+SLOT="0" |
104 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
105 |
+ |
106 |
+RDEPEND=" |
107 |
+ dev-lang/perl |
108 |
+ dev-perl/XML-Parser |
109 |
+" |
110 |
+ |
111 |
+PATCHES=( |
112 |
+ "${FILESDIR}"/${P}-generate-man-pages.patch |
113 |
+) |
114 |
+ |
115 |
+src_install() { |
116 |
+ # 'make install' requires GNU install, upstream is dead and carrying |
117 |
+ # a patch is more space than redoing it here |
118 |
+ dobin xmltoman xmlmantohtml |
119 |
+ |
120 |
+ insinto /usr/share/xmltoman |
121 |
+ doins xmltoman.{css,dtd,xsl} |
122 |
+ |
123 |
+ dodoc README |
124 |
+ doman xmltoman.1 xmlmantohtml.1 |
125 |
+} |