blob: 943b2f28e68f807177f977c18f135cd581e54eb0 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-terms/kterm/kterm-6.2.0-r1.ebuild,v 1.4 2004/01/06 21:45:23 usata Exp $
IUSE=""
DESCRIPTION="Japanese Kanji X Terminal"
SRC_URI="ftp://ftp.x.org/contrib/applications/${P}.tar.gz
http://www.asahi-net.or.jp/~hc3j-tkg/kterm/${P}-wpi.patch.gz
http://www.st.rim.or.jp/~hanataka/${P}.ext02.patch.gz"
# until someone who reads japanese can find a better place
HOMEPAGE="http://www.asahi-net.or.jp/~hc3j-tkg/kterm/"
LICENSE="X11"
SLOT="0"
KEYWORDS="x86 ~sparc -alpha ~ppc"
S=${WORKDIR}/${P}
DEPEND="virtual/x11
sys-libs/ncurses
app-i18n/nkf"
RDEPEND="virtual/x11
sys-libs/ncurses"
src_unpack(){
unpack ${A}
cd ${S}
epatch ${WORKDIR}/${P}-wpi.patch # wallpaper patch
epatch ${WORKDIR}/${P}.ext02.patch # JIS 0213 support
epatch ${FILESDIR}/kterm-6.2.0-gentoo.patch
}
src_compile(){
cat >>KTerm.ad<<-EOF
! default values added by portage
*VT100*kanjiMode: euc
*inputMethod: kinput2
*openIm: true
! To use wallpaper
!*wallPaper: /path/to/filename.xpm
EOF
xmkmf -a || die
emake || die
}
src_install(){
einstall DESTDIR=${D} BINDIR=/usr/bin || die
# install man pages
newman kterm.man kterm.1
insinto /usr/share/man/ja/man1
nkf -e kterm.jman > kterm.ja.1
newins kterm.ja.1 kterm.1
if [ ! -e /usr/share/terminfo/k/kterm ]; then
tic terminfo.kt -o${D}/usr/share/terminfo || die "tic failed"
fi
dodoc README.kt
}
pkg_postinst() {
einfo
einfo "KTerm wallpaper support is enabled."
einfo "In order to use this feature,"
einfo "you need specify favourite xpm file with -wp option"
einfo
einfo "\t% kterm -wp filename.xpm"
einfo
einfo "or set it with X resource"
einfo
einfo "\tKTerm*wallPaper: /path/to/filename.xpm"
einfo
}
|