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

(-)kdrill-6.4.ebuild (-23 / +11 lines)
Lines 2-11 Link Here
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: $
3
# $Header: $
4
4
5
inherit eutils flag-o-matic
6
7
S="${WORKDIR}/${PN}${PV}"
5
S="${WORKDIR}/${PN}${PV}"
8
DESCRIPTION="Kanji quiz and a lookup tool for X, help in memorizing
6
DESCRIPTION="Kanji quiz and a lookup tool for X, helps in memorizing
9
Japanese characters"
7
Japanese characters"
10
HOMEPAGE="http://www.bolthole.com/kdrill/"
8
HOMEPAGE="http://www.bolthole.com/kdrill/"
11
SRC_URI="http://www.bolthole.com/kdrill/${PN}${PV}.tar.gz"
9
SRC_URI="http://www.bolthole.com/kdrill/${PN}${PV}.tar.gz"
Lines 15-33 Link Here
15
KEYWORDS="~x86"
13
KEYWORDS="~x86"
16
IUSE=""
14
IUSE=""
17
15
18
DEPEND="virtual/x11"
16
DEPEND="x11-base/xorg-x11
17
		x11-misc/imake"
19
18
20
src_unpack() {
19
src_unpack() {
21
	unpack ${A}
20
	unpack ${A}
22
23
	if ! built_with_use 'virtual/x11' cjk ; then
24
		eerror
25
		eerror 'KDrill requieres an X server built with the cjk USE'
26
		eerror 'flag (Asian languages support). You should run:'
27
		eerror '  USE="cjk" emerge virtual/x11 kdrill' 
28
		eerror
29
		die "Please remerge the X server with cjk USE flag enabled."
30
	fi
31
}
21
}
32
22
33
src_compile() {
23
src_compile() {
Lines 36-62 Link Here
36
	echo "CFLAGS+=${CFLAGS}" >> Imakefile
26
	echo "CFLAGS+=${CFLAGS}" >> Imakefile
37
	echo "LDFLAGS+=${LDFLAGS}" >> Imakefile
27
	echo "LDFLAGS+=${LDFLAGS}" >> Imakefile
38
	cat Imakefile.orig >> Imakefile
28
	cat Imakefile.orig >> Imakefile
39
	sed -i s,/usr/local/lib,/usr/share/dict,g Imakefile
29
	sed -i s,/usr/local/lib,/usr/share/kdrill,g Imakefile
40
	xmkmf || die "xmkmf failed"
30
	xmkmf || die "xmkmf failed"
41
31
42
	emake || die "make failed"
32
	emake || die "make failed"
43
	emake -C makedic || die "make failed"
44
}
33
}
45
34
46
src_install() {
35
src_install() {
47
	make install || die "make install failed"
36
	emake install || die "emake install failed"
48
	dobin makedic/makedic makedic/makeedict
37
	dobin makedic/makedic makedic/makeedict
49
38
50
	dodoc LICENSE NOTES README PATCHLIST
39
	dodoc LICENSE NOTES README PATCHLIST BUGS TODO
51
40
52
	mv kdrill.man kdrill.1
41
	mv kdrill.man kdrill.1
53
	doman kdrill.1 makedic/makedic.1 makedic/makeedict.1
42
	doman kdrill.1 makedic/makedic.1 makedic/makeedict.1
54
43
55
	insinto /usr/share/pixmaps
44
	insinto /usr/share/pixmaps
56
	doins kdrill.xpm
45
	doins kdrill.xpm
57
	domenu ${FILESDIR}/kdrill.desktop
58
46
59
	insinto /usr/share/dict
47
	insinto /usr/share/kdrill
60
	gzip kanjidic
48
	gzip kanjidic
61
	doins makedic/*.edic kanjidic.gz
49
	doins makedic/*.edic kanjidic.gz
62
}
50
}
Lines 66-78 Link Here
66
	einfo "KDrill will by default use the kanjidic dictionary file."
54
	einfo "KDrill will by default use the kanjidic dictionary file."
67
	einfo "If you're a beginner you may want to start with a kana only"
55
	einfo "If you're a beginner you may want to start with a kana only"
68
	einfo "quiz, e.g:"
56
	einfo "quiz, e.g:"
69
	einfo "kdrill -edictfile /usr/share/dict/fullkatahira.edic -kdictfile none"
57
	einfo "kdrill -edictfile /usr/share/kdrill/fullkatahira.edic -kdictfile none"
70
	einfo "or"
58
	einfo "or"
71
	einfo "kdrill -edictfile /usr/share/dict/hiraplus.edic -kdictfile none"
59
	einfo "kdrill -edictfile /usr/share/kdrill/hiraplus.edic -kdictfile none"
72
	einfo "Then, when you're ready for kanjidic, run:"
60
	einfo "Then, when you're ready for kanjidic, run:"
73
	einfo "kdrill -kdictfile /usr/share/dict/kanjidic.gz"
61
	einfo "kdrill -kdictfile /usr/share/kdrill/kanjidic.gz"
74
	einfo
62
	einfo
75
	einfo "Additional dictionaries can be installed in /usr/share/dict."
63
	einfo "Additional dictionaries can be installed in /usr/share/kdrill."
76
	einfo "http://www.bolthole.com/kdrill/kmirrors.html has many good ones."
64
	einfo "http://www.bolthole.com/kdrill/kmirrors.html has many good ones."
77
	einfo
65
	einfo
78
}
66
}

Return to bug 112607