/[gentoo-x86]/eclass/cannadic.eclass
Gentoo

Diff of /eclass/cannadic.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cannadic.eclass,v 1.4 2004/05/05 11:41:24 usata Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cannadic.eclass,v 1.5 2004/06/03 23:40:50 mr_bones_ Exp $
4# 4#
5# Author: Mamoru KOMACHI <usata@gentoo.org> 5# Author: Mamoru KOMACHI <usata@gentoo.org>
6# 6#
7# The cannadic eclass is used for installation and setup of Canna 7# The cannadic eclass is used for installation and setup of Canna
8# compatible dictionaries within the Portage system. 8# compatible dictionaries within the Portage system.
69 69
70 for f in *.c[btl]d *.t ; do 70 for f in *.c[btl]d *.t ; do
71 cannadic-install $f 71 cannadic-install $f
72 done 2>/dev/null 72 done 2>/dev/null
73 73
74 if [ -n "`use canna`" ] ; then 74 if use canna ; then
75 dicsdir-install || die 75 dicsdir-install || die
76 fi 76 fi
77 77
78 dodoc ${DOCS} 78 dodoc ${DOCS}
79} 79}
114# 114#
115# pkg_postinst() : updates dics.dir and print out notice after install 115# pkg_postinst() : updates dics.dir and print out notice after install
116# 116#
117pkg_postinst() { 117pkg_postinst() {
118 118
119 if [ -n "`use canna`" ] ; then 119 if use canna ; then
120 update-cannadic-dir 120 update-cannadic-dir
121 einfo 121 einfo
122 einfo "Please restart cannaserver to fit the changes." 122 einfo "Please restart cannaserver to fit the changes."
123 einfo "You need to modify your config file (~/.canna) to enable dictionaries." 123 einfo "You need to modify your config file (~/.canna) to enable dictionaries."
124 124
138# 138#
139# pkg_postrm() : updates dics.dir and print out notice after uninstall 139# pkg_postrm() : updates dics.dir and print out notice after uninstall
140# 140#
141pkg_postrm() { 141pkg_postrm() {
142 142
143 if [ -n "`use canna`" ] ; then 143 if use canna ; then
144 update-cannadic-dir 144 update-cannadic-dir
145 einfo 145 einfo
146 einfo "Please restart cannaserver to fit changes." 146 einfo "Please restart cannaserver to fit changes."
147 einfo "and modify your config file (~/.canna) to disable dictionary." 147 einfo "and modify your config file (~/.canna) to disable dictionary."
148 148

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20