commit:     737aea9fbaf7f8215ea2935359c4a10db6b7469a
Author:     Yongxiang Liang <tanekliang <AT> gmail <DOT> com>
AuthorDate: Sat Dec 14 15:52:13 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 14 16:01:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=737aea9f

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 <tanekliang <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39712
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...rime-data-1.0.20241201.ebuild => rime-data-1.0.20241201-r1.ebuild} | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 e8f8259c376b..ee504a28cee6 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
        }

Reply via email to