app-shells/tcsh-6.24.10: drop USE=doc add USE=man

There is no documentation (html-version of the man-page) any more in
this version.
Install the manpage when USE=man only.

Closes: https://bugs.gentoo.org/923475
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
Fabian Groffen
2024-02-02 09:21:53 +01:00
parent 8d4915612f
commit 5f924415a3

View File

@@ -17,7 +17,7 @@ SRC_URI="
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="nls doc"
IUSE="nls man"
RESTRICT="test"
# we need gettext because we run autoconf (AM_ICONV)
@@ -26,8 +26,7 @@ RDEPEND="
virtual/libcrypt:=
virtual/libiconv"
DEPEND="${RDEPEND}
sys-devel/gettext
doc? ( dev-lang/perl )"
sys-devel/gettext"
CONFDIR=${WORKDIR}/tcsh-gentoo-patches-r${CONFVER}
@@ -93,12 +92,13 @@ src_install() {
emake DESTDIR="${D}" install install.man
DOCS=( FAQ Fixes Ported README.md WishList Y2K )
if use doc ; then
perl tcsh.man2html tcsh.man || die
HTML_DOCS=( tcsh.html/*.html )
fi
einstalldocs
if use man ; then
mv tcsh.man{,1}
doman tcsh.man1
fi
insinto /etc
doins \
"${CONFDIR}"/csh.cshrc \