summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2018-03-31 22:42:04 +0900
committerAkinori Hattori <hattya@gentoo.org>2018-03-31 22:42:04 +0900
commit9f83213cd5ea43ede3c74fc2c037c571431445c4 (patch)
tree9adde8106ced0f1e5d3c6c625f368f2da9554276 /x11-terms/kterm
parentx11-terms/kterm: update HOMEPAGE and SRC_URI (diff)
downloadgentoo-9f83213cd5ea43ede3c74fc2c037c571431445c4.tar.gz
gentoo-9f83213cd5ea43ede3c74fc2c037c571431445c4.tar.bz2
gentoo-9f83213cd5ea43ede3c74fc2c037c571431445c4.zip
x11-terms/kterm: update to EAPI 6
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'x11-terms/kterm')
-rw-r--r--x11-terms/kterm/kterm-6.2.0-r6.ebuild88
-rw-r--r--x11-terms/kterm/metadata.xml8
2 files changed, 92 insertions, 4 deletions
diff --git a/x11-terms/kterm/kterm-6.2.0-r6.ebuild b/x11-terms/kterm/kterm-6.2.0-r6.ebuild
new file mode 100644
index 000000000000..fd14facf722c
--- /dev/null
+++ b/x11-terms/kterm/kterm-6.2.0-r6.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Japanese Kanji X Terminal"
+#HOMEPAGE="http://www.asahi-net.or.jp/~hc3j-tkg/kterm/"
+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"
+KEYWORDS="-alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="Xaw3d"
+
+RDEPEND="app-text/rman
+ sys-libs/ncurses:=
+ x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXpm
+ x11-libs/libxkbfile
+ Xaw3d? ( x11-libs/libXaw3d )"
+DEPEND="${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake"
+
+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
+)
+
+src_prepare(){
+ default
+ use Xaw3d && eapply "${FILESDIR}"/${PN}-Xaw3d.patch
+}
+
+src_configure() {
+ xmkmf -a || die
+}
+
+src_compile(){
+ emake \
+ CC="$(tc-getCC)" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS} $("$(tc-getPKG_CONFIG)" --libs ncurses)" \
+ XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults"
+}
+
+src_install(){
+ emake \
+ BINDIR="${EPREFIX}/usr/bin" \
+ XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults" \
+ DESTDIR="${D}" \
+ install
+ einstalldocs
+
+ # install man pages
+ newman ${PN}.man ${PN}.1
+ insinto /usr/share/man/ja/man1
+ iconv -f ISO-2022-JP -t UTF-8 ${PN}.jman > ${PN}.ja.1
+ newins ${PN}.ja.1 ${PN}.1
+
+ # Remove link to avoid collision
+ rm -f "${ED}"/usr/lib/X11/app-defaults
+}
+
+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
+}
diff --git a/x11-terms/kterm/metadata.xml b/x11-terms/kterm/metadata.xml
index c921b96adf6c..6f2ca22da233 100644
--- a/x11-terms/kterm/metadata.xml
+++ b/x11-terms/kterm/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>cjk@gentoo.org</email>
- <name>Cjk</name>
-</maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
</pkgmetadata>