blob: efcdd8e8b17f336c16b3b03b5a58c8eea7a71d35 (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit eutils flag-o-matic toolchain-funcs
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="MIT HPND XC"
SLOT="0"
KEYWORDS="-alpha amd64 ppc ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="Xaw3d"
RDEPEND="app-text/rman
sys-libs/ncurses
x11-libs/libXmu
x11-libs/libXpm
x11-libs/libxkbfile
x11-libs/libXaw
x11-libs/libXp
Xaw3d? ( x11-libs/libXaw3d )"
DEPEND="${RDEPEND}
x11-misc/gccmakedep
x11-misc/imake"
src_prepare(){
epatch "${WORKDIR}"/${P}-wpi.patch # wallpaper patch
epatch "${WORKDIR}"/${P}.ext02.patch # JIS 0213 support
epatch "${FILESDIR}"/${PN}-openpty.patch
epatch "${FILESDIR}"/${PN}-gentoo.patch
epatch "${FILESDIR}"/${PN}-ad-gentoo.patch
epatch "${FILESDIR}"/${PN}-underline.patch
use Xaw3d && epatch "${FILESDIR}"/${PN}-Xaw3d.patch
}
src_compile(){
PKG_CONFIG=$(tc-getPKG_CONFIG)
xmkmf -a || die
emake CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \
LOCAL_LDFLAGS="${LDFLAGS} $($PKG_CONFIG --libs ncurses)" \
XAPPLOADDIR="${EPREFIX}"/usr/share/X11/app-defaults
}
src_install(){
emake DESTDIR="${D}" BINDIR="${EPREFIX}"/usr/bin XAPPLOADDIR="${EPREFIX}"/usr/share/X11/app-defaults install
# install man pages
newman kterm.man kterm.1
insinto /usr/share/man/ja/man1
iconv -f ISO-2022-JP -t EUC-JP kterm.jman > kterm.ja.1
newins kterm.ja.1 kterm.1
# Remove link to avoid collision
rm -f "${ED}"/usr/lib/X11/app-defaults
dodoc README.kt
}
pkg_postinst() {
elog
elog "KTerm wallpaper support is enabled."
elog "In order to use this feature,"
elog "you need specify favourite xpm file with -wp option"
elog
elog "\t% kterm -wp filename.xpm"
elog
elog "or set it with X resource"
elog
elog "\tKTerm*wallPaper: /path/to/filename.xpm"
elog
}
|