blob: a8179e6426bb4fd55f1ac1f18355f10cec4b63f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit elisp toolchain-funcs
DESCRIPTION="Yet another Canna client on Emacsen"
HOMEPAGE="http://www.ceres.dti.ne.jp/~knak/yc.html"
SRC_URI="http://www.ceres.dti.ne.jp/~knak/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha ~amd64 ppc x86"
IUSE=""
RDEPEND="app-i18n/canna"
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
sed -i '/$(CC)/s/ -o / $(CFLAGS) $(LDFLAGS) -o /' Makefile
default
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
elisp_src_install
dobin icanna
dodoc "${FILESDIR}"/sample.{dot.emacs,hosts.canna}
}
pkg_postinst() {
elisp_pkg_postinst
elog "See the sample.dot.emacs in ${EPREFIX}/usr/share/doc/${PF}."
elog
elog "And If you use unix domain socket for connecting the canna server,"
elog "please confirm that there's *no* following line in your ~/.emacs:"
elog ' (setq yc-server-host "localhost")'
elog
elog "If you use inet domain socket for connecting the canna server,"
elog "please modify as following in ${EPREFIX}/etc/conf.d/canna:"
elog ' CANNASERVER_OPTS="-inet"'
elog
elog "And create ${EPREFIX}/etc/hosts.canna."
elog "See the sample.hosts.canna in ${EPREFIX}/usr/share/doc/${PF}."
}
|