games-roguelike/cataclysm-dda: fix build without USE=doc

`use doc && something || die` fails when doc flag is disabled.

Closes: https://bugs.gentoo.org/948137
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2025-01-15 22:53:46 +09:00
parent 1bd1d61b99
commit 6b48c03d3c
2 changed files with 6 additions and 2 deletions

View File

@@ -122,7 +122,9 @@ src_compile() {
use nls && export LANGUAGES="all"
use doc && doxygen doxygen_doc/doxygen_conf.txt || die "Failed to generate docs"
if use doc; then
doxygen doxygen_doc/doxygen_conf.txt || die "Failed to generate docs"
fi
if use ncurses; then
# don't build tests twice

View File

@@ -116,7 +116,9 @@ src_compile() {
use nls && export LANGUAGES="all"
use doc && doxygen doxygen_doc/doxygen_conf.txt || die "Failed to generate docs"
if use doc; then
doxygen doxygen_doc/doxygen_conf.txt || die "Failed to generate docs"
fi
if use ncurses; then
# don't build tests twice