diff options
author | Akinori Hattori <hattya@gentoo.org> | 2017-07-08 15:58:33 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2017-07-08 15:58:33 +0900 |
commit | 6a4f353f033ae652c443132d2296035d9cc2702f (patch) | |
tree | b9ce2e68fdaa0f8ee3ec135ba34cc91076289993 /app-i18n/canna | |
parent | sci-electronics/pulseview: Remove q4 support (diff) | |
download | gentoo-6a4f353f033ae652c443132d2296035d9cc2702f.tar.gz gentoo-6a4f353f033ae652c443132d2296035d9cc2702f.tar.bz2 gentoo-6a4f353f033ae652c443132d2296035d9cc2702f.zip |
app-i18n/canna: update pkg_postinst
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n/canna')
-rw-r--r-- | app-i18n/canna/canna-3.7_p3-r1.ebuild | 12 | ||||
-rw-r--r-- | app-i18n/canna/canna-3.7_p3-r2.ebuild | 13 |
2 files changed, 11 insertions, 14 deletions
diff --git a/app-i18n/canna/canna-3.7_p3-r1.ebuild b/app-i18n/canna/canna-3.7_p3-r1.ebuild index 51effafc6b77..2d56ee7ccd62 100644 --- a/app-i18n/canna/canna-3.7_p3-r1.ebuild +++ b/app-i18n/canna/canna-3.7_p3-r1.ebuild @@ -112,8 +112,12 @@ src_install() { pkg_postinst() { update-cannadic-dir - elog - elog "Canna dictionary format has been changed." - elog "You should rebuild app-dict/canna-* after emerge." - elog + + if ! locale -a | grep -iq "ja_JP.eucjp"; then + elog "Some dictionary tools in this package require ja_JP.EUC-JP locale." + elog + elog "# echo 'ja_JP.EUC-JP EUC-JP' >> /etc/locale.gen" + elog "# locale-gen" + elog + fi } diff --git a/app-i18n/canna/canna-3.7_p3-r2.ebuild b/app-i18n/canna/canna-3.7_p3-r2.ebuild index 0f222e9dac21..0a609c5c94ed 100644 --- a/app-i18n/canna/canna-3.7_p3-r2.ebuild +++ b/app-i18n/canna/canna-3.7_p3-r2.ebuild @@ -124,16 +124,9 @@ src_install() { pkg_postinst() { update-cannadic-dir - elog - elog "Canna dictionary format has been changed." - elog "You should rebuild app-dict/canna-* after emerge." - elog - - local localearchive="${ROOT}usr/$(get_libdir)/locale/locale-archive" - if [ -f "${localearchive}" -a -x /usr/bin/localedef ] && \ - ! /usr/bin/localedef --list-archive "${localearchive}" | grep -i 'ja_JP.eucjp' >/dev/null 2>&1 ; then - elog "Some dictionary tools in this package require ja_JP.eucJP locale." - elog "Please add ja_JP.eucJP locale to /etc/locale.gen:" + + if ! locale -a | grep -iq "ja_JP.eucjp"; then + elog "Some dictionary tools in this package require ja_JP.EUC-JP locale." elog elog "# echo 'ja_JP.EUC-JP EUC-JP' >> /etc/locale.gen" elog "# locale-gen" |