From 737aea9fbaf7f8215ea2935359c4a10db6b7469a Mon Sep 17 00:00:00 2001 From: Yongxiang Liang Date: Sat, 14 Dec 2024 23:52:13 +0800 Subject: [PATCH] app-i18n/rime-data: fix rime-cantonese missing author files. We should need to check if the documentation file exists before installing it Closes: https://bugs.gentoo.org/946467 Signed-off-by: Yongxiang Liang Closes: https://github.com/gentoo/gentoo/pull/39712 Signed-off-by: Sam James --- ...a-1.0.20241201.ebuild => rime-data-1.0.20241201-r1.ebuild} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename app-i18n/rime-data/{rime-data-1.0.20241201.ebuild => rime-data-1.0.20241201-r1.ebuild} (95%) diff --git a/app-i18n/rime-data/rime-data-1.0.20241201.ebuild b/app-i18n/rime-data/rime-data-1.0.20241201-r1.ebuild similarity index 95% rename from app-i18n/rime-data/rime-data-1.0.20241201.ebuild rename to app-i18n/rime-data/rime-data-1.0.20241201-r1.ebuild index e8f8259c376b2..ee504a28cee6a 100644 --- a/app-i18n/rime-data/rime-data-1.0.20241201.ebuild +++ b/app-i18n/rime-data/rime-data-1.0.20241201-r1.ebuild @@ -72,7 +72,9 @@ src_install() { for pkg in "${!LIST[@]}"; do doins "${pkg}-${LIST[$pkg]}"/*[!AUTHORS\|LICENSE\|README.md\|check.py] for f in AUTHORS LICENSE README.md; do - newdoc "${pkg}-${LIST[$pkg]}/${f}" "${pkg}_${f}" + if [ -f "${pkg}-${LIST[$pkg]}/${f}" ]; then + newdoc "${pkg}-${LIST[$pkg]}/${f}" "${pkg}_${f}" + fi done done }