mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-text/linuxdoc-tools: drop 0.9.73-r1
Bug: https://bugs.gentoo.org/883203 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST linuxdoc-tools-0.9.73.tar.gz 613971 BLAKE2B e2e04aaa44d5e2cea5af266e38b476381f87a02b9704e03ae5943f7714634d5d214350abd5b193f2efe656a264403c679495af5f954870b30d32b8b799ad7206 SHA512 b26896316e259cf4ef170814d410b1e39e58f61db49b03b4b9c1f767f8459d84214e92d9dcc09ad739508fd9c3c5fe4a2264cbb3c693a11362e59fd221655252
|
||||
DIST linuxdoc-tools-0.9.82.tar.bz2 550046 BLAKE2B 3bf9b9680659a3a6873e31116975fca7372167a701e630d762d37fcacf7acb9f1df4031558c4db24769e598a17b206e1c09607e341fc90f91497c15ff0cb05a1 SHA512 82560d9dc4db231e0a2c1fa3732d062bfd6af2cd3c5ffa0960939b2888533882437ddeeb54219e31acc7eaa10fdeee84ba206d32516cc5ed4f3fba2eab1ec0e4
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools latex-package perl-functions sgml-catalog-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="A 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.gz"
|
||||
|
||||
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}
|
||||
app-alternatives/lex
|
||||
app-alternatives/awk
|
||||
doc? (
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
virtual/latex-base
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default_src_prepare
|
||||
# Pregenerated configure scripts fail.
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
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_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Makefile ignores docdir configuration option.
|
||||
emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}" install
|
||||
dodoc ChangeLog README
|
||||
|
||||
insinto /etc/sgml
|
||||
newins - linuxdoc.cat <<-EOF
|
||||
CATALOG "${EPREFIX}/usr/share/linuxdoc-tools/linuxdoc-tools.catalog"
|
||||
EOF
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# work around sgml-catalog.eclass removing it
|
||||
cp "${ED}"/etc/sgml/linuxdoc.cat "${T}" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local backup=${T}/linuxdoc.cat
|
||||
local real=${EROOT}/etc/sgml/linuxdoc.cat
|
||||
if ! cmp -s "${backup}" "${real}"; then
|
||||
cp "${backup}" "${real}" || die
|
||||
fi
|
||||
|
||||
latex-package_pkg_postinst
|
||||
sgml-catalog-r1_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
latex-package_pkg_postrm
|
||||
sgml-catalog-r1_pkg_postrm
|
||||
}
|
||||
Reference in New Issue
Block a user