diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-01-11 17:07:48 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-01-12 15:36:04 +0100 |
commit | fca589ab6f60380524424011aacd8ba3659d4358 (patch) | |
tree | 8702db1cf9259309688bd74a12bddf56c0df3a46 /app-text/xmltoman | |
parent | Move {app-doc → app-text}/psmark (diff) | |
download | gentoo-fca589ab6f60380524424011aacd8ba3659d4358.tar.gz gentoo-fca589ab6f60380524424011aacd8ba3659d4358.tar.bz2 gentoo-fca589ab6f60380524424011aacd8ba3659d4358.zip |
Move {app-doc → app-text}/xmltoman
Per the category metadata, app-doc/ is reserved for documentation
*files* and not software. Move it to app-text/ where it seems a better
fit.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-text/xmltoman')
-rw-r--r-- | app-text/xmltoman/Manifest | 2 | ||||
-rw-r--r-- | app-text/xmltoman/files/xmltoman-0.6-generate-man-pages.patch | 55 | ||||
-rw-r--r-- | app-text/xmltoman/metadata.xml | 9 | ||||
-rw-r--r-- | app-text/xmltoman/xmltoman-0.4-r2.ebuild | 29 | ||||
-rw-r--r-- | app-text/xmltoman/xmltoman-0.6.ebuild | 33 |
5 files changed, 128 insertions, 0 deletions
diff --git a/app-text/xmltoman/Manifest b/app-text/xmltoman/Manifest new file mode 100644 index 000000000000..cc8d650c97d7 --- /dev/null +++ b/app-text/xmltoman/Manifest @@ -0,0 +1,2 @@ +DIST xmltoman-0.4.tar.gz 15250 BLAKE2B d8641a19742d845fdab0e11703a60c16656c63529a4d86931a8038cbdb87e0fbf241b7ff38ed05ddab62daab608407bd5d7778c060fe3cbef1750976fa588dee SHA512 347722731e2101ecd0619f88f4efdbca534810c96977a1281af685e8a61f4c1a826a71a9f0e3af43cc899936640787366a78077f36d23a9efcfeb789dbcfae22 +DIST xmltoman-0.6.tar.gz 15862 BLAKE2B f33ebfb1dfdd0f055f18e68f923e96c07495740e361cec2ba7a10a63889b6b6c4c851f3df6b74947b24811403d2745dbdc7e5d2d67d3566ec65b7be6fae616c8 SHA512 f2b0689ca37212253eaa127c3a2c299facac7c3909991b8872da0adf0fbb34aa02c32144c485135c06c17b1ac5e5753d627969e97ae4938e6dcee9ddbd79582d diff --git a/app-text/xmltoman/files/xmltoman-0.6-generate-man-pages.patch b/app-text/xmltoman/files/xmltoman-0.6-generate-man-pages.patch new file mode 100644 index 000000000000..a902ddd07b84 --- /dev/null +++ b/app-text/xmltoman/files/xmltoman-0.6-generate-man-pages.patch @@ -0,0 +1,55 @@ +From 39553c816cb8a18d798a6f947d2901f7a3228439 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sat, 29 Oct 2022 18:02:25 +0100 +Subject: [PATCH] Generate man pages + +Generate the man pages so that the tool doesn't have to run itself +during installation. It's a hack to workaround Perl upgrade problems. +--- /dev/null ++++ b/xmlmantohtml.1 +@@ -0,0 +1,18 @@ ++.TH xmlmantohtml 1 User Manuals ++.SH NAME ++xmlmantohtml \- xml to html converter ++.SH SYNOPSIS ++\fBxmlmantohtml \fIfile.1.xml\fB > file.1.html ++\f1 ++.SH DESCRIPTION ++xmlmantohtml is a small script to convert XML/MAN(GROFF) to HTML. ++ ++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. ++.SH AUTHOR ++xmltoman was written by Oliver Kurth <oku@masqmail.cx> ++.SH MAINTAINER ++xmltoman is currently maintained by Adam Bilbrough ++.SH SEE ALSO ++\fBxmlmantohtml(1)\f1 ++.SH COMMENTS ++This man page was written using \fBxmltoman(1)\f1 by the same author and / or maintainer. +--- /dev/null ++++ b/xmltoman.1 +@@ -0,0 +1,24 @@ ++.TH xmltoman 1 User Manuals ++.SH NAME ++xmltoman \- xml to man converter ++.SH SYNOPSIS ++\fBxmltoman \fIfile.1.xml\fB > file.1 ++\f1 ++.SH DESCRIPTION ++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. ++ ++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. ++.SH FILES ++\fI/usr/share/xmltoman/xmltoman.dtd\f1 the DTD file. ++ ++\fI/usr/share/xmltoman/xmltoman.xsl\f1 XSLT stylesheet to generate HTML. ++ ++\fI/usr/share/xmltoman/xmltoman.css\f1 stylesheet to be used for HTML. ++.SH AUTHOR ++xmltoman was written by Oliver Kurth <oku@masqmail.cx> ++.SH MAINTAINER ++xmltoman is currently maintained by Adam Bilbrough ++.SH SEE ALSO ++\fBxmlmantohtml(1)\f1 ++.SH COMMENTS ++This man page was written using \fBxmltoman(1)\f1 by the same author and / or maintainer. diff --git a/app-text/xmltoman/metadata.xml b/app-text/xmltoman/metadata.xml new file mode 100644 index 000000000000..cdc9d054966e --- /dev/null +++ b/app-text/xmltoman/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">xmltoman</remote-id> + <remote-id type="github">atsb/xmltoman</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/xmltoman/xmltoman-0.4-r2.ebuild b/app-text/xmltoman/xmltoman-0.4-r2.ebuild new file mode 100644 index 000000000000..2364778f118c --- /dev/null +++ b/app-text/xmltoman/xmltoman-0.4-r2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Simple scripts for converting xml to groff or html" +HOMEPAGE="https://sourceforge.net/projects/xmltoman/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" + +RDEPEND=" + dev-lang/perl + dev-perl/XML-Parser" +BDEPEND="${RDEPEND}" + +src_install() { + # 'make install' requires GNU install, upstream is dead and carrying + # a patch is more space than redoing it here + dobin xmltoman xmlmantohtml + + insinto /usr/share/xmltoman + doins xmltoman.{css,dtd,xsl} + + dodoc README + doman xmltoman.1 xmlmantohtml.1 +} diff --git a/app-text/xmltoman/xmltoman-0.6.ebuild b/app-text/xmltoman/xmltoman-0.6.ebuild new file mode 100644 index 000000000000..2ae15fdeec2d --- /dev/null +++ b/app-text/xmltoman/xmltoman-0.6.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Simple scripts for converting xml to groff or html" +HOMEPAGE="https://sourceforge.net/projects/xmltoman/" +SRC_URI="https://github.com/atsb/xmltoman/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" + +RDEPEND=" + dev-lang/perl + dev-perl/XML-Parser +" + +PATCHES=( + "${FILESDIR}"/${P}-generate-man-pages.patch +) + +src_install() { + # 'make install' requires GNU install, upstream is dead and carrying + # a patch is more space than redoing it here + dobin xmltoman xmlmantohtml + + insinto /usr/share/xmltoman + doins xmltoman.{css,dtd,xsl} + + dodoc README + doman xmltoman.1 xmlmantohtml.1 +} |