Skip to content

Commit

Permalink
app-i18n/canna: update pkg_postinst
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.1
  • Loading branch information
hattya committed Jul 8, 2017
1 parent 7a8eff9 commit 6a4f353
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
12 changes: 8 additions & 4 deletions app-i18n/canna/canna-3.7_p3-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
13 changes: 3 additions & 10 deletions app-i18n/canna/canna-3.7_p3-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6a4f353

Please sign in to comment.