You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
2.1 KiB
95 lines
2.1 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
7 years ago
|
|
||
3 years ago
|
inherit toolchain-funcs
|
||
7 years ago
|
|
||
|
DESCRIPTION="Japanese Kanji X Terminal"
|
||
|
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||
|
SRC_URI="mirror://gentoo/${P}.tar.gz
|
||
|
mirror://gentoo/${P}-wpi.patch.gz
|
||
|
mirror://gentoo/${P}.ext02.patch.gz"
|
||
|
|
||
|
LICENSE="MIT HPND XC"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="-alpha amd64 ~ppc ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||
7 years ago
|
IUSE="Xaw3d"
|
||
|
|
||
3 years ago
|
RDEPEND="
|
||
|
app-text/rman
|
||
7 years ago
|
sys-libs/ncurses:=
|
||
|
x11-libs/libXaw
|
||
|
x11-libs/libXmu
|
||
|
x11-libs/libXpm
|
||
|
x11-libs/libxkbfile
|
||
3 years ago
|
Xaw3d? ( x11-libs/libXaw3d )
|
||
|
!<games-board/xgammon-0.98-r3
|
||
|
!<games-board/xscrabble-2.10-r4"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="
|
||
4 years ago
|
virtual/pkgconfig
|
||
7 years ago
|
x11-misc/gccmakedep
|
||
3 years ago
|
>=x11-misc/imake-1.0.8-r1"
|
||
7 years ago
|
|
||
|
PATCHES=(
|
||
|
"${WORKDIR}"/${P}-wpi.patch # wallpaper patch
|
||
|
"${WORKDIR}"/${P}.ext02.patch # JIS 0213 support
|
||
|
"${FILESDIR}"/${PN}-openpty.patch
|
||
|
"${FILESDIR}"/${PN}-gentoo.patch
|
||
|
"${FILESDIR}"/${PN}-ad-gentoo.patch
|
||
|
"${FILESDIR}"/${PN}-underline.patch
|
||
|
)
|
||
|
|
||
5 years ago
|
src_prepare() {
|
||
7 years ago
|
default
|
||
|
use Xaw3d && eapply "${FILESDIR}"/${PN}-Xaw3d.patch
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
4 years ago
|
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
|
||
|
IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf -a || die
|
||
7 years ago
|
}
|
||
|
|
||
5 years ago
|
src_compile() {
|
||
3 years ago
|
local myemakeargs=(
|
||
|
CC="$(tc-getCC)"
|
||
|
CDEBUGFLAGS="${CFLAGS}"
|
||
|
LOCAL_LDFLAGS="${LDFLAGS}"
|
||
|
TERMCAPLIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
|
||
7 years ago
|
XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults"
|
||
3 years ago
|
)
|
||
|
emake "${myemakeargs[@]}"
|
||
7 years ago
|
}
|
||
|
|
||
5 years ago
|
src_install() {
|
||
3 years ago
|
local myemakeargs=(
|
||
|
DESTDIR="${D}"
|
||
|
BINDIR="${EPREFIX}/usr/bin"
|
||
|
XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults"
|
||
|
)
|
||
|
emake "${myemakeargs[@]}" install
|
||
7 years ago
|
einstalldocs
|
||
|
|
||
|
newman ${PN}.man ${PN}.1
|
||
3 years ago
|
iconv -f ISO-2022-JP -t UTF-8 ${PN}.jman > ${PN}.ja.1 || die
|
||
6 years ago
|
doman ${PN}.ja.1
|
||
7 years ago
|
|
||
3 years ago
|
# remove link to avoid collision (bug #668892,706322)
|
||
|
rm "${ED}"/usr/$(get_libdir)/X11/app-defaults || die
|
||
7 years ago
|
}
|
||
|
|
||
|
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% ${PN} -wp filename.xpm"
|
||
|
elog
|
||
|
elog "or set it with X resource"
|
||
|
elog
|
||
|
elog "\tKTerm*wallPaper: /path/to/filename.xpm"
|
||
|
elog
|
||
|
}
|