From 0b1e6698b130aa33ad9dda5d8a503476eba962d1 Mon Sep 17 00:00:00 2001 From: Ilya Tumaykin Date: Mon, 23 Nov 2015 15:06:07 +0300 Subject: app-text/linuxdoc-tools: fix TeX styles installation, minor cleanups Inherit latex-package eclass and rehash kpathsea database after installation and removal. Make TeX styles installation path consistent with latex-package eclass. --- .../linuxdoc-tools/linuxdoc-tools-0.9.71-r1.ebuild | 87 ++++++++++++++++++++++ .../linuxdoc-tools/linuxdoc-tools-0.9.71.ebuild | 74 ------------------ 2 files changed, 87 insertions(+), 74 deletions(-) create mode 100644 app-text/linuxdoc-tools/linuxdoc-tools-0.9.71-r1.ebuild delete mode 100644 app-text/linuxdoc-tools/linuxdoc-tools-0.9.71.ebuild (limited to 'app-text') diff --git a/app-text/linuxdoc-tools/linuxdoc-tools-0.9.71-r1.ebuild b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.71-r1.ebuild new file mode 100644 index 000000000000..b45639cc35fd --- /dev/null +++ b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.71-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 +# Source tarball has SHA1 of release in the name of the second topmost directory +GIT_SHA1="5a46c4ced4ef899b398bcedf8ccd29d6f2584100" + +inherit autotools-utils latex-package perl-module sgml-catalog toolchain-funcs + +DESCRIPTION="A toolset for processing LinuxDoc DTD SGML files" +HOMEPAGE="https://gitlab.com/agmartin/linuxdoc-tools" +SRC_URI="https://gitlab.com/agmartin/${PN}/repository/archive.tar.gz?ref=upstream/${PV} -> ${P}.tar.gz" + +LICENSE="MIT SGMLUG" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~x86 ~x86-fbsd" +IUSE="doc" + +RDEPEND=" + || ( app-text/openjade app-text/opensp ) + app-text/sgml-common + dev-lang/perl:= + || ( sys-apps/gawk sys-apps/mawk ) + sys-apps/groff +" +DEPEND="${RDEPEND} + sys-devel/flex + doc? ( + dev-texlive/texlive-fontsrecommended + virtual/latex-base + ) +" + +DOCS=( ChangeLog README ) + +S="${WORKDIR}/${PN}-upstream/${PV}-${GIT_SHA1}" + +sgml-catalog_cat_include "/etc/sgml/linuxdoc.cat" \ + "/usr/share/linuxdoc-tools/linuxdoc-tools.catalog" + +src_prepare() { + # Use Gentoo doc install path. + sed -i \ + -e "s%/share/doc/linuxdoc-tools%/share/doc/${PF}%" \ + Makefile.in + + autotools-utils_src_prepare +} + +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") + + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile +} + +src_install() { + # Prevent access violations from bitmap font files generation. + export VARTEXFONTS="${T}/fonts" + + autotools-utils_src_install +} + +pkg_postinst() { + latex-package_pkg_postinst + sgml-catalog_pkg_postinst +} + +pkg_postrm() { + latex-package_pkg_postrm + sgml-catalog_pkg_postrm +} diff --git a/app-text/linuxdoc-tools/linuxdoc-tools-0.9.71.ebuild b/app-text/linuxdoc-tools/linuxdoc-tools-0.9.71.ebuild deleted file mode 100644 index b2494b28be5e..000000000000 --- a/app-text/linuxdoc-tools/linuxdoc-tools-0.9.71.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -AUTOTOOLS_AUTORECONF=1 -AUTOTOOLS_IN_SOURCE_BUILD=1 - -GIT_SHA1="5a46c4ced4ef899b398bcedf8ccd29d6f2584100" -inherit autotools-utils perl-module sgml-catalog toolchain-funcs - -DESCRIPTION="A toolset for processing LinuxDoc DTD SGML files" -HOMEPAGE="https://gitlab.com/agmartin/linuxdoc-tools" -SRC_URI="https://gitlab.com/agmartin/${PN}/repository/archive.tar.gz?ref=upstream/${PV} -> ${P}.tar.gz" - -LICENSE="MIT SGMLUG" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~x86 ~x86-fbsd" -IUSE="doc" - -RDEPEND=" - || ( app-text/openjade app-text/opensp ) - app-text/sgml-common - dev-lang/perl:= - || ( sys-apps/gawk sys-apps/mawk ) - sys-apps/groff -" -DEPEND="${RDEPEND} - sys-devel/flex - doc? ( - dev-texlive/texlive-fontsrecommended - virtual/latex-base - ) -" - -DOCS=( ChangeLog README ) -S="${WORKDIR}/${PN}-upstream/${PV}-${GIT_SHA1}" - -sgml-catalog_cat_include "/etc/sgml/linuxdoc.cat" \ - "/usr/share/linuxdoc-tools/linuxdoc-tools.catalog" - -src_prepare() { - # Use Gentoo doc install path. - sed -i \ - -e "s%/share/doc/linuxdoc-tools%/share/doc/${PF}%" \ - Makefile.in - - autotools-utils_src_prepare -} - -src_configure() { - perl_set_version - tc-export CC - local myeconfargs=( - --disable-docs - --with-texdir="/usr/share/texmf/tex/latex/misc" - --with-perllibdir="${VENDOR_ARCH}" - --with-installed-iso-entities - ) - use doc && myeconfargs+=(--enable-docs="txt pdf html") - - autotools-utils_src_configure -} - -src_compile() { - autotools-utils_src_compile -} - -src_install() { - # Prevent access violations from bitmap font files generation. - export VARTEXFONTS="${T}/fonts" - - autotools-utils_src_install -} -- cgit v1.2.3-65-gdbad