summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-06 12:32:59 +0000
committerSam James <sam@gentoo.org>2022-12-06 12:32:59 +0000
commitdf0cac8b5dff5baafd99da915d723a16cde38eaa (patch)
tree19f3a7b38c8a32ffec12903bf654eba5ab97772d /app-doc/gnucash-docs
parentapp-doc/gnucash-docs: add sourceforge upstream metadata (diff)
downloadgentoo-df0cac8b5dff5baafd99da915d723a16cde38eaa.tar.gz
gentoo-df0cac8b5dff5baafd99da915d723a16cde38eaa.tar.bz2
gentoo-df0cac8b5dff5baafd99da915d723a16cde38eaa.zip
app-doc/gnucash-docs: force -j1; allow blank L10N
Closes: https://bugs.gentoo.org/884577 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-doc/gnucash-docs')
-rw-r--r--app-doc/gnucash-docs/gnucash-docs-4.12.ebuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/app-doc/gnucash-docs/gnucash-docs-4.12.ebuild b/app-doc/gnucash-docs/gnucash-docs-4.12.ebuild
index 6e076f330131..0156cc56c7b2 100644
--- a/app-doc/gnucash-docs/gnucash-docs-4.12.ebuild
+++ b/app-doc/gnucash-docs/gnucash-docs-4.12.ebuild
@@ -25,23 +25,29 @@ BDEPEND="
dev-libs/libxslt
"
+src_compile() {
+ cmake_src_compile -j1
+}
+
src_install() {
local doc_type my_lang
for doc_type in manual guide; do
for my_lang in C "${L10N}"; do
+ [[ -z ${my_lang} ]] && continue
+
case "${my_lang}" in
# Both help and guides translated
C|de|it|pt) ;;
ja|ru) # Only guides translated
- if [[ "${doc_type}" = "manual" ]] ; then
+ if [[ "${doc_type}" == "manual" ]] ; then
elog "Help documentation hasn't been translated for ${my_lang}"
elog "Will do English instead."
continue
fi
;;
*)
- die "Invalid locale: $my_lang"
+ die "Invalid locale: ${my_lang}"
;;
esac