Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 210776
Collapse All | Expand All

(-)cannadic.eclass.orig (-32 / +38 lines)
Lines 1-12 Link Here
1
# Copyright 1999-2004 Gentoo Foundation
1
# Copyright 1999-2008 Gentoo Foundation
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.14 2006/10/21 00:07:58 flameeyes Exp $
3
# $Header: $
4
#
4
5
# Author: Mamoru KOMACHI <usata@gentoo.org>
5
# @ECLASS: cannadic.eclass
6
#
6
# @MAINTAINER:
7
# ???
8
#
9
# Original author: Mamoru KOMACHI <usata@gentoo.org>
10
# @BLURB: Function for Canna compatible dictionaries
11
# @DESCRIPTION:
7
# The cannadic eclass is used for installation and setup of Canna
12
# The cannadic eclass is used for installation and setup of Canna
8
# compatible dictionaries within the Portage system.
13
# compatible dictionaries within the Portage system.
9
#
14
10
15
11
EXPORT_FUNCTIONS src_install pkg_setup pkg_postinst pkg_postrm
16
EXPORT_FUNCTIONS src_install pkg_setup pkg_postinst pkg_postrm
12
17
Lines 30-37 Link Here
30
cannadir="${ROOT}/var/lib/canna/dic/canna"
35
cannadir="${ROOT}/var/lib/canna/dic/canna"
31
dicsdir="${ROOT}/var/lib/canna/dic/dics.d"
36
dicsdir="${ROOT}/var/lib/canna/dic/dics.d"
32
37
33
#
38
# @FUNCTION: cannadic_pkg_setup
34
# pkg_setup() : sets up cannadic dir
39
# @DESCRIPTION: 
40
# Sets up cannadic dir
35
cannadic_pkg_setup() {
41
cannadic_pkg_setup() {
36
42
37
	keepdir $cannadir
43
	keepdir $cannadir
Lines 39-47 Link Here
39
	fperms 0775 $cannadir
45
	fperms 0775 $cannadir
40
}
46
}
41
47
42
#
48
# @FUNCTION: cannadic-install
43
# cannadic-install() : installs dictionaries to cannadir
49
# @DESCRIPTION:
44
#
50
# Installs dictionaries to cannadir
45
cannadic-install() {
51
cannadic-install() {
46
52
47
	insinto $cannadir
53
	insinto $cannadir
Lines 49-67 Link Here
49
	doins "$@"
55
	doins "$@"
50
}
56
}
51
57
52
#
58
# @FUNCTION: dicsdir-install
53
# dicsdir-install() : installs dics.dir from ${FILESDIR}
59
# @DESCRIPTION:
54
#
60
# Installs dics.dir from ${DICSDIRFILE}
55
dicsdir-install() {
61
dicsdir-install() {
56
62
57
	insinto ${dicsdir}
63
	insinto ${dicsdir}
58
	doins ${DICSDIRFILE}
64
	doins ${DICSDIRFILE}
59
}
65
}
60
66
61
#
67
# @FUNCTION: cannadic_src_install
62
# src_install() : installs all dictionaries under ${WORKDIR}
68
# @DESCRIPTION:
63
#                 plus dics.dir and docs
69
# Installs all dictionaries under ${WORKDIR}
64
#
70
# plus dics.dir and docs
65
cannadic_src_install() {
71
cannadic_src_install() {
66
72
67
	for f in *.c[btl]d *.t ; do
73
	for f in *.c[btl]d *.t ; do
Lines 73-86 Link Here
73
	dodoc ${DOCS}
79
	dodoc ${DOCS}
74
}
80
}
75
81
76
#
82
# @FUNCTION: update-cannadic-dir
77
# update-cannadic-dir() : updates dics.dir for Canna Server,
83
# @DESCRIPTION:
78
#                         script for this part taken from Debian GNU/Linux
84
# Updates dics.dir for Canna Server, script for this part taken from Debian GNU/Linux
79
#
85
#
80
# compiles dics.dir files for Canna Server
86
#  compiles dics.dir files for Canna Server
81
# Copyright 2001 ISHIKAWA Mutsumi
87
#  Copyright 2001 ISHIKAWA Mutsumi
82
# Licensed under the GNU General Public License, version 2.  See the file
88
#  Licensed under the GNU General Public License, version 2.  See the file
83
# /usr/portage/license/GPL-2 or <http://www.gnu.org/copyleft/gpl.txt>.
89
#  /usr/portage/license/GPL-2 or <http://www.gnu.org/copyleft/gpl.txt>.
84
update-cannadic-dir() {
90
update-cannadic-dir() {
85
91
86
	einfo
92
	einfo
Lines 106-114 Link Here
106
	einfo
112
	einfo
107
}
113
}
108
114
109
#
115
# @FUNCTION: cannadic_pkg_postinst
110
# pkg_postinst() : updates dics.dir and print out notice after install
116
# @DESCRIPTION:
111
#
117
# Updates dics.dir and print out notice after install
112
cannadic_pkg_postinst() {
118
cannadic_pkg_postinst() {
113
	update-cannadic-dir
119
	update-cannadic-dir
114
	einfo
120
	einfo
Lines 128-136 Link Here
128
	einfo
134
	einfo
129
}
135
}
130
136
131
#
137
# @FUNCTION: cannadic_pkg_postrm
132
# pkg_postrm() : updates dics.dir and print out notice after uninstall
138
# @DESCRIPTION:
133
#
139
# Updates dics.dir and print out notice after uninstall
134
cannadic_pkg_postrm() {
140
cannadic_pkg_postrm() {
135
	update-cannadic-dir
141
	update-cannadic-dir
136
	einfo
142
	einfo

Return to bug 210776