Files
gentoo/dev-util/hxtools/hxtools-20251011-r1.ebuild
Bill Prendergast 65022c8744 dev-util/hxtools: add 20251011-r1
- avoid file collisions with app-text/xmlformat and sys-fs/xcp

Closes: https://bugs.gentoo.org/975422
Closes: https://bugs.gentoo.org/975423
Signed-off-by: Bill Prendergast <dek.devel@baisenvar.info>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/970
Signed-off-by: Sam James <sam@gentoo.org>
2026-05-27 10:47:14 +01:00

73 lines
1.9 KiB
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit eapi9-ver unpacker
DESCRIPTION="Collection of tools and scripts"
HOMEPAGE="https://inai.de/projects/hxtools/"
SRC_URI="https://inai.de/files/${PN}/${P}.tar.zst"
LICENSE="BSD-2-with-patent GPL-2+ GPL-3 LGPL-2.1+ MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
RDEPEND="
dev-lang/perl
>=sys-apps/pciutils-3
>=sys-apps/util-linux-2.19
sys-libs/libcap:=
>=sys-libs/libhx-5.1:=
x11-libs/libxcb:=
"
DEPEND="${RDEPEND}"
BDEPEND="
$(unpacker_src_uri_depends)
virtual/pkgconfig
"
src_prepare() {
default
# Don't collide with dev-util/cwdiff, sys-fs/xcp
sed -i -e 's/cwdiff/cwdiff.hx/' doc/cwdiff.1 || die
sed -i -e 's/xcp/xcp.hx/' doc/xcp.1 || die
sed -i -e 's/cwdiff/cwdiff.hx/' \
-e 's/xcp/xcp.hx/' doc/hxtools.7 || die
}
src_configure() {
# Gentoo doesn't have /usr/share/kbd
econf --with-kbddatadir="${EPREFIX}"/usr/share
}
src_install() {
default
# man2html is provided by man
rm -r "${ED}"/usr/bin/man2html || die
rm -r "${ED}"/usr/share/man/man1/man2html* || die
# Don't collide with dev-util/cwdiff
mv "${ED}"/usr/bin/cwdiff "${ED}"/usr/bin/cwdiff.hx || die
mv "${ED}"/usr/share/man/man1/cwdiff.1 "${ED}"/usr/share/man/man1/cwdiff.hx.1 || die
# Don't collide with sys-fs/xcp
mv "${ED}"/usr/bin/xcp "${ED}"/usr/bin/xcp.hx || die
mv "${ED}"/usr/share/man/man1/xcp.1 "${ED}"/usr/share/man/man1/xcp.hx.1 || die
# Don't collide with app-text/xmlformat
mv "${ED}"/usr/bin/xmlformat "${ED}"/usr/bin/xmlformat.hx || die
gzip -r "${ED}"/usr/share/consolefonts || die
gzip -r "${ED}"/usr/share/keymaps || die
}
pkg_postinst() {
if ver_replacing -lt 20251011; then
elog "vfontas has moved to package app-misc/consoleet-utils"
fi
if ver_replacing -lt 20251011-r1; then
elog "xcp and xmlformat have been renamed to xcp.hx and xmlformat.hx to avoid package collisions"
fi
}