blob: fac7633126f33e496384779442978e21b2dd7116 (
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
54
55
56
57
58
59
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/ddskk/ddskk-14.1.ebuild,v 1.2 2011/02/13 19:13:56 armin76 Exp $
EAPI=3
inherit elisp
DESCRIPTION="One Japanese input methods on Emacs"
HOMEPAGE="http://openlab.ring.gr.jp/skk/"
SRC_URI="http://openlab.ring.gr.jp/skk/maintrunk/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
DEPEND=">=app-emacs/apel-10.7"
RDEPEND="${DEPEND}
|| ( app-i18n/skk-jisyo virtual/skkserv )"
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
find . -type f | xargs sed -i -e "s:/usr/local:${EPREFIX}/usr:g" || die
}
src_compile() {
emake < /dev/null || die "emake failed"
emake info < /dev/null || die "emake info failed"
#cd nicola
#emake < /dev/null || die
BYTECOMPFLAGS="${BYTECOMPFLAGS} -L .."
cd "${S}/tut-code"
elisp-compile *.el || die "elisp-compile tut-code/*.el failed"
cd "${S}/bayesian"
elisp-compile *.el || die "elisp-compile bayesian/*.el failed"
}
src_install () {
elisp-install ${PN} *.{el,elc} nicola/*.el tut-code/*.{el,elc} bayesian/*.{el,elc} || die
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
insinto /usr/share/skk
doins etc/*SKK.tut* etc/skk.xpm || die
dodoc READMEs/* ChangeLog*
doinfo doc/skk.info* || die
#docinto nicola
#dodoc nicola/ChangeLog* nicola/README* || die
docinto tut-code
dodoc tut-code/README.tut || die
#dobin bayesian/bskk || die
docinto bayesian
dodoc bayesian/README.ja bayesian/bskk || die
}
|