commit: 5810d432fbc2f5eab9e3f22042cfe3c7d2ca2e57 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Sun Jul 20 08:15:49 2025 +0000 Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org> CommitDate: Wed Jul 23 11:53:53 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5810d432
app-text/linuxdoc-tools: add 0.9.86 build system has been updated : patch for clang is merged configure has been regenerated, eautoreconf is no longer required docdir is no longer hardcoded catalog is no longer removed by the eclass (since 'new' r1) no test, doc is already kind of a test. don't compress examples Closes: https://bugs.gentoo.org/894704 Closes: https://bugs.gentoo.org/949622 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/43117 Closes: https://github.com/gentoo/gentoo/pull/43117 Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org> app-text/linuxdoc-tools/Manifest | 1 + .../linuxdoc-tools/linuxdoc-tools-0.9.86.ebuild | 73 ++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/app-text/linuxdoc-tools/Manifest b/app-text/linuxdoc-tools/Manifest index b3de8a2c0e42..03ba9193b5e4 100644 --- a/app-text/linuxdoc-tools/Manifest +++ b/app-text/linuxdoc-tools/Manifest @@ -1 +1,2 @@ DIST linuxdoc-tools-0.9.82.tar.bz2 550046 BLAKE2B 3bf9b9680659a3a6873e31116975fca7372167a701e630d762d37fcacf7acb9f1df4031558c4db24769e598a17b206e1c09607e341fc90f91497c15ff0cb05a1 SHA512 82560d9dc4db231e0a2c1fa3732d062bfd6af2cd3c5ffa0960939b2888533882437ddeeb54219e31acc7eaa10fdeee84ba206d32516cc5ed4f3fba2eab1ec0e4 +DIST linuxdoc-tools-0.9.86.tar.bz2 551321 BLAKE2B 2825b478fc29e20b0a338e867f3dd59ffd6e77b2899edc2f0891f659ee587acc60f9697005e87b3cfc1c567f3f2e9ad2e206551c7792a7c78fe5287723a15850 SHA512 db63c9b3bdab74ca0581e32f9cd168b0b6a900e99061448ef1efc619ac6323fd6c1c36f9ae3ee9b8a41a8fdfd39c36b6cb68c9b09249a21ab40afe1b5767e5e9 diff --git a/app-text/linuxdoc-tools/linuxdoc-tools-0.9.86.ebuild b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.86.ebuild new file mode 100644 index 000000000000..e49d2799e400 --- /dev/null +++ b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.86.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit latex-package perl-functions sgml-catalog-r1 toolchain-funcs + +DESCRIPTION="Toolset for processing LinuxDoc DTD SGML files" +HOMEPAGE="https://gitlab.com/agmartin/linuxdoc-tools" +SRC_URI="https://gitlab.com/agmartin/linuxdoc-tools/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="GPL-3+ MIT SGMLUG" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="doc" + +RDEPEND=" + || ( app-text/openjade app-text/opensp ) + app-text/sgml-common + dev-lang/perl:= + sys-apps/groff +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-alternatives/awk + app-alternatives/lex + doc? ( + dev-texlive/texlive-fontsrecommended + virtual/latex-base + ) +" + +src_configure() { + perl_set_version + tc-export CC + local myeconfargs=( + --disable-docs + --with-texdir="${TEXMF}/tex/latex/${PN}" + --with-perllibdir="${VENDOR_ARCH}" + --with-installed-iso-entities + ) + use doc && myeconfargs+=(--enable-docs="txt pdf html") + + econf "${myeconfargs[@]}" +} + +src_compile() { + # Prevent access violations from bitmap font files generation. + use doc && export VARTEXFONTS="${T}/fonts" + + default +} + +src_install() { + default + + use doc && docompress -x /usr/share/doc/${PF}/example + + insinto /etc/sgml + newins - linuxdoc.cat <<-EOF + CATALOG "${EPREFIX}/usr/share/linuxdoc-tools/linuxdoc-tools.catalog" + EOF +} + +pkg_postinst() { + latex-package_pkg_postinst + sgml-catalog-r1_pkg_postinst +} + +pkg_postrm() { + latex-package_pkg_postrm + sgml-catalog-r1_pkg_postrm +}
