diff options
author | Sam James <sam@gentoo.org> | 2023-02-03 10:08:43 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-03 10:54:56 +0000 |
commit | 1d61d7cb86d7764f1e2f7f244fd081454af96afa (patch) | |
tree | 161051873ceb96acb701b74fc48db0f92977de7a /app-admin/gkrellm | |
parent | app-admin/gkrellm: sync live (diff) | |
download | gentoo-1d61d7cb86d7764f1e2f7f244fd081454af96afa.tar.gz gentoo-1d61d7cb86d7764f1e2f7f244fd081454af96afa.tar.bz2 gentoo-1d61d7cb86d7764f1e2f7f244fd081454af96afa.zip |
app-admin/gkrellm: handle locales
Closes: https://bugs.gentoo.org/408761
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin/gkrellm')
-rw-r--r-- | app-admin/gkrellm/gkrellm-2.3.11-r4.ebuild (renamed from app-admin/gkrellm/gkrellm-2.3.11-r3.ebuild) | 11 | ||||
-rw-r--r-- | app-admin/gkrellm/gkrellm-9999.ebuild | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/app-admin/gkrellm/gkrellm-2.3.11-r3.ebuild b/app-admin/gkrellm/gkrellm-2.3.11-r4.ebuild index fd4864614c57..a978bc39106d 100644 --- a/app-admin/gkrellm/gkrellm-2.3.11-r3.ebuild +++ b/app-admin/gkrellm/gkrellm-2.3.11-r4.ebuild @@ -3,7 +3,9 @@ EAPI=8 -inherit desktop systemd toolchain-funcs +PLOCALES="bg cs da de es fr it ja nl pl po pt pt_BR ru sl sv uk" +PLOCALE_BACKUP="en" +inherit desktop plocale systemd toolchain-funcs DESCRIPTION="Single process stack of various system monitors" HOMEPAGE="http://gkrellm.srcbox.net/" @@ -75,6 +77,13 @@ src_prepare() { -e "s:/usr/local/lib:${EPREFIX}/usr/local/$(get_libdir):" \ -i src/${PN}.h || die "sed ${PN}.h failed" + delete_locale() { + local locale=${1} + rm -f po/${locale}{.po,.mo} || die + } + + plocale_for_each_disabled_locale delete_locale + default } diff --git a/app-admin/gkrellm/gkrellm-9999.ebuild b/app-admin/gkrellm/gkrellm-9999.ebuild index fd4864614c57..a978bc39106d 100644 --- a/app-admin/gkrellm/gkrellm-9999.ebuild +++ b/app-admin/gkrellm/gkrellm-9999.ebuild @@ -3,7 +3,9 @@ EAPI=8 -inherit desktop systemd toolchain-funcs +PLOCALES="bg cs da de es fr it ja nl pl po pt pt_BR ru sl sv uk" +PLOCALE_BACKUP="en" +inherit desktop plocale systemd toolchain-funcs DESCRIPTION="Single process stack of various system monitors" HOMEPAGE="http://gkrellm.srcbox.net/" @@ -75,6 +77,13 @@ src_prepare() { -e "s:/usr/local/lib:${EPREFIX}/usr/local/$(get_libdir):" \ -i src/${PN}.h || die "sed ${PN}.h failed" + delete_locale() { + local locale=${1} + rm -f po/${locale}{.po,.mo} || die + } + + plocale_for_each_disabled_locale delete_locale + default } |