From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-text/docbook2X/Manifest | 9 +++ app-text/docbook2X/docbook2X-0.8.8-r4.ebuild | 56 ++++++++++++++ .../files/docbook2X-0.8.8-drop-htmldir.patch | 14 ++++ ...docbook2X-0.8.8-error_on_missing_refentry.patch | 33 ++++++++ ...book2X-0.8.8-filename_whitespace_handling.patch | 43 +++++++++++ ...k2X-0.8.8-preprocessor_declaration_syntax.patch | 90 ++++++++++++++++++++++ app-text/docbook2X/metadata.xml | 8 ++ 7 files changed, 253 insertions(+) create mode 100644 app-text/docbook2X/Manifest create mode 100644 app-text/docbook2X/docbook2X-0.8.8-r4.ebuild create mode 100644 app-text/docbook2X/files/docbook2X-0.8.8-drop-htmldir.patch create mode 100644 app-text/docbook2X/files/docbook2X-0.8.8-error_on_missing_refentry.patch create mode 100644 app-text/docbook2X/files/docbook2X-0.8.8-filename_whitespace_handling.patch create mode 100644 app-text/docbook2X/files/docbook2X-0.8.8-preprocessor_declaration_syntax.patch create mode 100644 app-text/docbook2X/metadata.xml (limited to 'app-text/docbook2X') diff --git a/app-text/docbook2X/Manifest b/app-text/docbook2X/Manifest new file mode 100644 index 000000000000..4579fdca2577 --- /dev/null +++ b/app-text/docbook2X/Manifest @@ -0,0 +1,9 @@ +AUX docbook2X-0.8.8-drop-htmldir.patch 327 SHA256 34e2b9e4f013a7abdaba5452887b79c1fa75bc147de2aaabbbd1ef9a4161e72b SHA512 c8e3cbbf1f18aeb5489d12f8fd661c38adae7e60ef3861135ff0aa3c515cc509ecc9ae19ace81e94cd181dac15b08bbb4783b39bd96674bdc83abc95aac5ddcc WHIRLPOOL a0a3a740a1832d3b16c354ef48e7ddc8f0f78f7597c731d40ced42aa2024ad9d844ed136535675a41f89c922531d2316247a46330fb3a159ab8146accc4b1bb5 +AUX docbook2X-0.8.8-error_on_missing_refentry.patch 1247 SHA256 273eaa08cfff75bb5fab4975761d1e427e4180d82700da396901a59ed0546c0d SHA512 ea9ed94190edb2ac2055694bb927457f94eeadf0eff340b9f5fdba6fad5b1dc0b9617829ce3470914cbe0ba0be145dfb000218d57f22ee767ebb8082d6c06bfb WHIRLPOOL 7a406d599e85df95be73dbfbdc3bcb60147575fd32240d863056416c852fcb3b14ee3eb8099363006cea8ea238125ef181b6bd0aab38915c7f77636a8d7d0fdb +AUX docbook2X-0.8.8-filename_whitespace_handling.patch 2080 SHA256 ac5755da0dbdd67e7131284e865d86df24a56ac26cfbcdcdbe561926a54999fd SHA512 3a72979c03a1b5135662ad5cedefd0d508001994e727a0820d628ff5ad2476c09befeb921b9562230fdec3db547e5eec4b301aa08430dd6c2ce2632624a1c375 WHIRLPOOL 8430e967ea8020dde623079e49d309f0f920ad302e41bd68f4004ad135879a7c1594f23e0776ef4ac4a2bf39cdb6392e22bbd31fa18a65a5419015d633bf42ac +AUX docbook2X-0.8.8-preprocessor_declaration_syntax.patch 3358 SHA256 0f571f0e9576ef09a07c46da76723cd3f83085ccf8daf25dee15b9921455112a SHA512 af88626ca61847a25ef8c4cf8a09ea27cd1dce6510952e9629b704d3637097b10d85b9727e502dd7eecea1d2152a71cd26bf6abf4a8370eb8647258faa30be45 WHIRLPOOL ab0af93c225825a39e18992b7139f2e5f2a5829e6b25fc6861dd6929f02314136fa84cd0c4336259747bec38a8447ca119c1ffac0357f5d681ef10cff403cd8e +DIST docbook2X-0.8.8.tar.gz 723909 SHA256 4077757d367a9d1b1427e8d5dfc3c49d993e90deabc6df23d05cfe9cd2fcdc45 SHA512 cc336017ad734fc62d96d289105e8ea154c418a03a37f3e21b0b3520063f8b466b4aae5a5aec2e0b83f6324c6c79b5557247a93338d0a9882a94a44112f6b65c WHIRLPOOL 60cf325cbb9dbc7e0edc3a7bc4beb061259b22602efae54335f3828417c593ce7cb4c838eb33d598e1e6c2b2583e93eafbdfab37dba2873f1d8abaa72ed07b95 +EBUILD docbook2X-0.8.8-r4.ebuild 1564 SHA256 d5e307dc746d442c29b3e301e3272ae7511514f11f321c10e5c90b017bce24ba SHA512 7718a0eadc029faa32d909e5374d9bd86fc3a61281dc03405064e8ed46de0129f0f26ce1b32270bd4e80b7fb92f3dcf134ae05e44f28e603b5e99d250e2b26ff WHIRLPOOL 2afe5492c7962a22b8576f00e71a217d6ec926978659327eef6b3a4780fa86474c847dae652bdc8aeaf92891448f8cc1ef13e5b9449f878218526bdb781843e4 +MISC ChangeLog 2760 SHA256 f341758e0da3b842dbbd6dbfed8daa7b0b2a8964b5b8f5deadb65bf5a4b7c9fa SHA512 f14d1e858f1e9009fa95538ec18e1f952c7dcc174efd813ce012228554d6c30b331d297e817d4d48e53e675f955c43e2954696488ec61746c91d6416efd55c78 WHIRLPOOL 2973143d11d9b2fc84991e8915d0ba95184f4a9c379fad1a1ecef06f4c39b3648ff0a9cff45c9b908f98f0d894cb57e57604575e443fbd17b501a73b5a139aec +MISC ChangeLog-2015 8916 SHA256 72e51b4919dcfee8f271aa68c7cb52518119112983ab23ad2b6b6d1c246beaf8 SHA512 d1fb5c262d722342d54c4c285aac183a5fc43a1221ab258f2810cbcf96b516414053838bfea9d5e3d8c7ce381e8b3002a4d73899d6eeb2f63459f4ec27db5585 WHIRLPOOL 999c6a9e5d76756109441727256059fe1fe8bf6d8d5b8ace62ccc542d8206d93565af5f6ffc73b9e7ec6a0986411b363d6f2e94edd7dc3e04ef4e8c6f51fcf47 +MISC metadata.xml 246 SHA256 415e69d38d05c0e7c775484274a3a88a24c0105e6b0997943fa8903a33efb7d7 SHA512 751233aacee2a81a9b2e02bf872dc788d2fe39fa6d6b3781146dbd19e4eebf5854620b2ae9d62e0d4dada2a64903ecf789e94b3eefecedd131808bc575617759 WHIRLPOOL b1703a7e342b70b955918eb7c1761be1509dcb879e0c80d17309078f07ba1830cce2b7d105a5a871d0dae1f4890e8032580c3bb359006296326e42e5dff8cc8b diff --git a/app-text/docbook2X/docbook2X-0.8.8-r4.ebuild b/app-text/docbook2X/docbook2X-0.8.8-r4.ebuild new file mode 100644 index 000000000000..b91b8f23d5d9 --- /dev/null +++ b/app-text/docbook2X/docbook2X-0.8.8-r4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +AUTOTOOLS_AUTORECONF=1 #290284 +inherit autotools-utils + +DESCRIPTION="Tools to convert docbook to man and info" +SRC_URI="mirror://sourceforge/docbook2x/${P}.tar.gz" +HOMEPAGE="http://docbook2x.sourceforge.net/" + +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-linux ~x86-solaris" +IUSE="test" +LICENSE="MIT" + +# dev-perl/XML-LibXML - although not mentioned upstream is required +# for make check to complete. +DEPEND="dev-lang/perl + dev-libs/libxslt + dev-perl/XML-NamespaceSupport + dev-perl/XML-SAX + dev-perl/XML-LibXML + app-text/docbook-xsl-stylesheets + =app-text/docbook-xml-dtd-4.2*" +RDEPEND="${DEPEND}" + +PATCHES=( + # Patches from debian, for description see patches itself. + "${FILESDIR}/${P}-filename_whitespace_handling.patch" + "${FILESDIR}/${P}-preprocessor_declaration_syntax.patch" + "${FILESDIR}/${P}-error_on_missing_refentry.patch" + # bug #296112 + "${FILESDIR}/${P}-drop-htmldir.patch" +) +src_prepare() { + sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac || die 'sed on configure.ac failed' + + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=( + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" + --with-xslt-processor=libxslt + --program-transform-name='/^docbook2/s,$,.pl,' + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + dosym docbook2man.pl /usr/bin/docbook2x-man + dosym docbook2texi.pl /usr/bin/docbook2x-texi +} 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 new file mode 100644 index 000000000000..a7e11b2dfd7e --- /dev/null +++ b/app-text/docbook2X/files/docbook2X-0.8.8-drop-htmldir.patch @@ -0,0 +1,14 @@ +Put HTML documentation in proper directory. +Patch by Chris Mayo, https://bugs.gentoo.org/show_bug.cgi?id=296112 + +--- doc/Makefile.am.orig ++++ doc/Makefile.am +@@ -182,8 +182,6 @@ + # Install (automake) + # + +-htmldir = $(datadir)/doc/docbook2X +- + man_MANS = $(MAN_FILES) + html_DATA = $(HTML_FILES) + info_TEXINFOS = docbook2X.texi 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 new file mode 100644 index 000000000000..b8a493be2f36 --- /dev/null +++ b/app-text/docbook2X/files/docbook2X-0.8.8-error_on_missing_refentry.patch @@ -0,0 +1,33 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 05_fix_439214_error_on_missing_refentry.dpatch by Daniel Leidert +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: If there is no refentry element, the manpage stylesheets silently +## DP: "ignores" this. It has been requested to print at least a +## DP: warning. +## DP: +## DP: +## DP: + +@DPATCH@ +diff -urNad trunk~/xslt/man/docbook.xsl trunk/xslt/man/docbook.xsl +--- trunk~/xslt/man/docbook.xsl 2006-04-11 21:00:19.000000000 +0200 ++++ trunk/xslt/man/docbook.xsl 2008-02-05 03:31:48.000000000 +0100 +@@ -111,11 +111,15 @@ + + + +- +- ++ + + + ++ ++ ++ ++ WARNING: Sorry, but I cannot find a refentry element in your source! ++ + + + 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 new file mode 100644 index 000000000000..26cdf8e1baea --- /dev/null +++ b/app-text/docbook2X/files/docbook2X-0.8.8-filename_whitespace_handling.patch @@ -0,0 +1,43 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_fix_420153_filename_whitespace_handling.dpatch by +## Daniel Leidert (dale) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Peter Eisentraut reported a regression in the whitespace handling of +## DP: refentrytitle content during filename creation: +## DP: http://bugs.debian.org/420153. The problem is, that upstream first +## DP: replaces all spaces (but not linebreaks btw) with underlines and then +## DP: it tries to normalize the result. This means, that a linebreak with +## DP: additional whitespaces results in manpage names like 'foo_ ____bar.9'. +## DP: So what we basically do in this patch is, that we first normalize the +## DP: refentrytitle and then replace any spaces left with underlines. + +@DPATCH@ +diff -urNad docbook2x-0.8.8~/xslt/man/manpage.xsl docbook2x-0.8.8/xslt/man/manpage.xsl +--- docbook2x-0.8.8~/xslt/man/manpage.xsl 2006-04-20 15:45:55.000000000 +0200 ++++ docbook2x-0.8.8/xslt/man/manpage.xsl 2007-04-20 16:19:28.000000000 +0200 +@@ -30,7 +30,7 @@ + + + +- ++ + + + +diff -urNad docbook2x-0.8.8~/xslt/man/refentry.xsl docbook2x-0.8.8/xslt/man/refentry.xsl +--- docbook2x-0.8.8~/xslt/man/refentry.xsl 2006-04-21 04:39:55.000000000 +0200 ++++ docbook2x-0.8.8/xslt/man/refentry.xsl 2007-04-20 16:21:53.000000000 +0200 +@@ -38,7 +38,11 @@ + + + +- ++ ++ ++ ++ ++ + + + + docbook2x + + -- cgit v1.2.3