summaryrefslogtreecommitdiff
path: root/x11-terms/kterm
diff options
context:
space:
mode:
Diffstat (limited to 'x11-terms/kterm')
-rw-r--r--x11-terms/kterm/Manifest12
-rw-r--r--x11-terms/kterm/files/6.2.0-underline.patch22
-rw-r--r--x11-terms/kterm/files/kterm-6.2.0-Xaw3d.patch25
-rw-r--r--x11-terms/kterm/files/kterm-6.2.0-gentoo.patch51
-rw-r--r--x11-terms/kterm/files/kterm-6.2.0-openpty.patch59
-rw-r--r--x11-terms/kterm/files/kterm-ad-gentoo.diff21
-rw-r--r--x11-terms/kterm/kterm-6.2.0-r5.ebuild80
-rw-r--r--x11-terms/kterm/metadata.xml8
8 files changed, 278 insertions, 0 deletions
diff --git a/x11-terms/kterm/Manifest b/x11-terms/kterm/Manifest
new file mode 100644
index 000000000000..901cdef0076f
--- /dev/null
+++ b/x11-terms/kterm/Manifest
@@ -0,0 +1,12 @@
+AUX 6.2.0-underline.patch 540 SHA256 00198e2c7fa6f262821273a8ab1e1d598c5d1991a8edeb65991603d28215465b SHA512 cd4b0fc54c76fb184e2e3a71b575e6f1aa0f9c80129a16b0b35835e55d472329adba6c9638d1994f7fcc8d07e4daabe73c5e3f1b8f256939193fa7b20af54810 WHIRLPOOL 0db9fa633571b56d9aa534a6155db8a4b014b7621f44f7c29cfb01639e8b8fdb46ec1b7c34094838d522cfeea64960d9b0839c68b82ceac4ee3308c2f606f911
+AUX kterm-6.2.0-Xaw3d.patch 937 SHA256 9753f060289e82b8a173cfdf8ec3e684dc539224efac8a85a8c668157f0a8879 SHA512 2f4317cf668ad389cf887b619acc90666c08e621518e7640f33b20112a93c81382cf14d9161cbee6fe512689181f31e6edaac13a9181d82661ad6c43ffd7bf14 WHIRLPOOL 9824a7cc813d2d1c6a0b7a3c1e186cd1ad219b96fb5e83331f1abf0dc861738a291ceefca069bf60ca0bbccea00db12dfe943cf131ba36b90c160c7f3e748bae
+AUX kterm-6.2.0-gentoo.patch 1519 SHA256 aa1623037a477f81cb1fd76a5408a3d62bb6a4ceb30e04bc00760d6e8f4934f9 SHA512 09de92db649ad2de751b269495922ee787aafde1b5f4b7875cfff37de9c5e4fe68756c24920b76225cd5afaffb651eab12c56ebda086fd7cb097ae551c4b07cb WHIRLPOOL eb1debfe68ef5d1113a310b55eabc887b0a960f31b27463821458a97c13697e51433019aba2e41da3e795f5caa8a5fb84c2047d22fd163bfdf92d897fe8a3a17
+AUX kterm-6.2.0-openpty.patch 1734 SHA256 3da9a52054866560a04aa02c7ad3f4063336b27d10c2c8885302143eb6ed6ba4 SHA512 1d509e52a3355991116762e6a47005f5303c6db82f869a2ae15a03814ece17e94fe39a723cbc5c6b734980928a17a4f5fcb379fcc075112fec0a79dba1fa21df WHIRLPOOL c12186f81864319aadedc11d22131a4f239ba462a7a08b72c0b8bb1565152fd3f86442e4c97aea33e9463a640f30ac783bd5105a1e4b197e3a2ff0f311af31ea
+AUX kterm-ad-gentoo.diff 737 SHA256 f0a65afb967d42d94f91abb6eed0723100d0ad035232eab0c7f97b8251f6e06a SHA512 f156c3a4b4ec51bafc1ef0ce2f98dd82fa1c4599a489d3ab24cd07c8f76cfae9039577e61d520bf218156f82236404f6216d5d35d05f8ce3b832278d2f10595b WHIRLPOOL 8163d0d42d3421d1b8281f776cea27c420f1b3310ca4b99d57d4342909c8a3e2370c46580d7fed0c7f239d62227d7b179bb88378569f5e608fa68f636956a96b
+DIST kterm-6.2.0-wpi.patch.gz 6629 SHA256 f91f37ef8b9bf84ebfb24b26b43089af25f9756680cbf875320fda774de2b591 SHA512 b3ae44ce3a2a5ed7d08055c7b9a006844441c77727694ec1eb5f07752f745c8f1990ce23115070006999bd035fd934f09322bb6dc407f825f0da2b06a163faab WHIRLPOOL e9f8c3e8338118482f0debd341380fce7f2e9b8af8b7aa6284019a20581c389aad0c57242fe5ef706356edc4fa6efed2e515b3ccb1e4750dcefe22e967da6705
+DIST kterm-6.2.0.ext02.patch.gz 15290 SHA256 4501522c5632936b316ba820633cfa887192942e123a28b031d72b4d675c85eb SHA512 95b70f61496ed43dcbdda22b3250c651b3dbce07ef2209a7baec3f729ef954d6781dd5e18a5368d34792db4a3e310adec4fad5c05d3dfd211c0dc7f89c5ae356 WHIRLPOOL edb9f3ad01cbba27556a86450aba8f81c8b71505f54959bd462f2c081fcf4273a1b92aa36d8021da7c4ab1fec3df2eb8d89c9b2623ddcf03ee1c4c2977bab0bf
+DIST kterm-6.2.0.tar.gz 200448 SHA256 ecc965b926483cb97b74d1da5808359fac95d937dfa5e7338395988b1a3afaa5 SHA512 c84a5b57154dc14ab93e1bc6cd33103495716c203a648d57044672c4218cb7e4e80110f7e6e7c0900c80c2e55843ecb190de4f61d0c72dcf9b1ada306348ce1f WHIRLPOOL e6bfdde3def0eea89e4bbfdf62471ba87bee9e9e9ba52e6e15ee6ff6335dada1dea0b63abdb21fba464c7298bfc1200848815a335116bc92e9e87a136ff4b223
+EBUILD kterm-6.2.0-r5.ebuild 2126 SHA256 52a53a2f92916106699ad38a140c68f776d8c4253bcde51410e3c4da23c7276c SHA512 a407636dfa516d0c3d2fc04bc778ba96f54fde538529286b3a0538c18d40a14658b87dc96f0bbbf1d576595d91778480b32839c3f49824a8006356a1b2bfa5a9 WHIRLPOOL d52b81d9611b840b7150a10afdb1ea2c82bab64d0c7fd7230f0efbe6e3001dfc003cf8f732b908c178a63a14c198f35564d578cd355523ea21b4fe664e6eacde
+MISC ChangeLog 2590 SHA256 44c5835d705d54585a699632f904fc57ba3f12d8c642d3dbdeab9cff455a2ae6 SHA512 0a1c02abf0a1d91685b750a29105f0152ed829523cd82a0cf173eb868d2673fd926891847b17069f77e4c2a5598a32a84fed64b1eb061d6619aae6575ee7ae68 WHIRLPOOL 6ac085e70a797aa09937f3ff01047c338ba6b0129e18c3f49e0127ab0d016b24bb2839801b669222d5cbb961dff2a89ddf73738dcfc574b30cb2e7f4eb50b177
+MISC ChangeLog-2015 5084 SHA256 d7c50d3d48cced7d5e5559c37f37e66cb8c2a184aae77d6179dddadbbe10a068 SHA512 69c2cdd89fa1290998a21e55a2dab93e8971114f78128b5480fd44b44e23aa241f4b52971aa4bd5357958356a4f43301a23523fab1dd9feab0bcda6d82cfa373 WHIRLPOOL 035bbebd205497b8be3f696151607a6df2bdff176c40ff8ed0993664fa10d750b09ab5cfe34be14b389bc9e9fea43061880e5e5e313f309ccfaea0b1cd0fd745
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
diff --git a/x11-terms/kterm/files/6.2.0-underline.patch b/x11-terms/kterm/files/6.2.0-underline.patch
new file mode 100644
index 000000000000..5324c4cfa3f8
--- /dev/null
+++ b/x11-terms/kterm/files/6.2.0-underline.patch
@@ -0,0 +1,22 @@
+--- charproc.c.orig 2005-08-28 17:55:50.000000000 +0900
++++ charproc.c 2005-08-28 18:30:14.000000000 +0900
+@@ -1897,6 +1897,19 @@
+ case 7:
+ term->flags |= INVERSE;
+ break;
++ case 22: /* Reset bold. */
++ /* ECMA-ly incorrect */
++ term->flags &= ~BOLD;
++ break;
++ case 24:
++ term->flags &= ~UNDERLINE;
++ break;
++ case 25: /* Blink, really. */
++ term->flags &= ~BOLD;
++ break;
++ case 27:
++ term->flags &= ~INVERSE;
++ break;
+ #ifdef KTERM_COLOR
+ case 30:
+ case 31:
diff --git a/x11-terms/kterm/files/kterm-6.2.0-Xaw3d.patch b/x11-terms/kterm/files/kterm-6.2.0-Xaw3d.patch
new file mode 100644
index 000000000000..cda8856a8cff
--- /dev/null
+++ b/x11-terms/kterm/files/kterm-6.2.0-Xaw3d.patch
@@ -0,0 +1,25 @@
+diff -Naur kterm-6.2.0/Imakefile kterm-6.2.0-Xaw3d/Imakefile
+--- kterm-6.2.0/Imakefile 2003-12-13 15:35:05.000000000 +0900
++++ kterm-6.2.0-Xaw3d/Imakefile 2003-12-13 23:10:24.000000000 +0900
+@@ -23,6 +23,10 @@
+ PUCCPTYDDEF = -DPUCC_PTYD /* does not need to be setuid */
+ PTYLIB = -lpucc
+ #endif
++#ifdef KTERM_XAW3D
++ XAWLIB = -lXaw3d
++ XAW6LIB = -lXaw3d
++#endif
+
+ OSMAJORVERSION = OSMajorVersion
+ OSMINORVERSION = OSMinorVersion
+diff -Naur kterm-6.2.0/kterm.h kterm-6.2.0-Xaw3d/kterm.h
+--- kterm-6.2.0/kterm.h 2003-12-13 15:35:05.000000000 +0900
++++ kterm-6.2.0-Xaw3d/kterm.h 2003-12-13 15:35:55.000000000 +0900
+@@ -36,6 +36,6 @@
+ #define KTERM_KINPUT2 /* Kinput2 protocol */
+ #define KTERM_COLOR /* color sequence */
+ #define KTERM_NOTEK /* disables Tektronix emulation */
+-#undef KTERM_XAW3D /* Xaw3d -DARROW_SCROLLBAR support */
++#define KTERM_XAW3D /* Xaw3d -DARROW_SCROLLBAR support */
+
+ #endif /* !_KTERM_H_ */
diff --git a/x11-terms/kterm/files/kterm-6.2.0-gentoo.patch b/x11-terms/kterm/files/kterm-6.2.0-gentoo.patch
new file mode 100644
index 000000000000..f05a0b135371
--- /dev/null
+++ b/x11-terms/kterm/files/kterm-6.2.0-gentoo.patch
@@ -0,0 +1,51 @@
+diff -Naur kterm-6.2.0/main.c kterm-6.2.0-gentoo/main.c
+--- kterm-6.2.0/main.c 1996-07-12 14:01:38.000000000 +0900
++++ kterm-6.2.0-gentoo/main.c 2002-05-21 08:37:31.000000000 +0900
+@@ -75,9 +75,12 @@
+ #include <X11/Xos.h>
+ #include <X11/cursorfont.h>
+ #include <X11/Xaw/SimpleMenu.h>
++/*
+ #ifndef NO_XPOLL_H
+ #include <X11/Xpoll.h>
+ #endif
++*/
++#include <termios.h>
+ #include <X11/Xlocale.h>
+ #include <pwd.h>
+ #include <ctype.h>
+@@ -283,7 +286,7 @@
+ #include <lastlog.h>
+ # endif
+ #endif
+-#include <sys/param.h> /* for NOFILE */
++//#include <sys/param.h> /* for NOFILE */
+
+ #ifdef PUCC_PTYD
+ #include <local/openpty.h>
+diff -Naur kterm-6.2.0/screen.c kterm-6.2.0-gentoo/screen.c
+--- kterm-6.2.0/screen.c 1996-06-23 17:00:26.000000000 +0900
++++ kterm-6.2.0-gentoo/screen.c 2002-05-21 08:30:55.000000000 +0900
+@@ -46,7 +46,8 @@
+ #include <sys/ptem.h>
+ #endif
+
+-extern Char *calloc(), *malloc(), *realloc();
++//extern Char *calloc(), *malloc(), *realloc();
++extern void *calloc(), *malloc(), *realloc();
+ extern void free();
+
+ ScrnBuf Allocate (nrow, ncol, addr)
+diff -Naur kterm-6.2.0/scrollbar.c kterm-6.2.0-gentoo/scrollbar.c
+--- kterm-6.2.0/scrollbar.c 1996-07-12 14:01:39.000000000 +0900
++++ kterm-6.2.0-gentoo/scrollbar.c 2002-05-21 08:30:39.000000000 +0900
+@@ -324,7 +324,8 @@
+ register TScreen *screen = &xw->screen;
+ register int border = 2 * screen->border;
+ register int i;
+- Char *realloc(), *calloc();
++// Char *realloc(), *calloc();
++ void *realloc(), *calloc();
+
+ if(screen->scrollbar)
+ return;
diff --git a/x11-terms/kterm/files/kterm-6.2.0-openpty.patch b/x11-terms/kterm/files/kterm-6.2.0-openpty.patch
new file mode 100644
index 000000000000..ee8bc1814ae0
--- /dev/null
+++ b/x11-terms/kterm/files/kterm-6.2.0-openpty.patch
@@ -0,0 +1,59 @@
+diff -ru kterm-orig/Imakefile kterm-6.2.0/Imakefile
+--- kterm-orig/Imakefile 2004-10-12 01:23:25.000000000 +0200
++++ kterm-6.2.0/Imakefile 2004-10-12 01:37:59.100764752 +0200
+@@ -23,6 +23,11 @@
+ PUCCPTYDDEF = -DPUCC_PTYD /* does not need to be setuid */
+ PTYLIB = -lpucc
+ #endif
++#ifdef LinuxArchitecture
++ PTYLIB = -lutil
++#undef InstallXtermSetUID
++#define InstallXtermSetUID 0
++#endif
+
+ OSMAJORVERSION = OSMajorVersion
+ OSMINORVERSION = OSMinorVersion
+diff -ru kterm-orig/button.c kterm-6.2.0/button.c
+--- kterm-orig/button.c 1996-07-02 07:01:46.000000000 +0200
++++ kterm-6.2.0/button.c 2004-10-12 01:29:59.420687208 +0200
+@@ -41,8 +41,6 @@
+ #include "error.h"
+ #include "menu.h"
+
+-extern char *malloc();
+-
+ extern void DoSecureKeyboard();
+
+ #define KeyState(x) (((x) & (ShiftMask|ControlMask)) + (((x) & Mod1Mask) ? 2 : 0))
+diff -ru kterm-orig/charproc.c kterm-6.2.0/charproc.c
+--- kterm-orig/charproc.c 2004-10-12 01:23:25.000000000 +0200
++++ kterm-6.2.0/charproc.c 2004-10-12 01:30:29.640093160 +0200
+@@ -102,8 +102,6 @@
+ extern XtAppContext app_con;
+ extern Widget toplevel;
+ extern void exit();
+-extern char *malloc();
+-extern char *realloc();
+ extern fd_set Select_mask;
+ extern fd_set X_mask;
+ extern fd_set pty_mask;
+diff -ru kterm-orig/main.c kterm-6.2.0/main.c
+--- kterm-orig/main.c 2004-10-12 01:23:25.000000000 +0200
++++ kterm-6.2.0/main.c 2004-10-12 01:32:56.697737000 +0200
+@@ -143,6 +143,7 @@
+ #define HAS_UTMP_UT_HOST
+ #define LASTLOG
+ #define WTMP
++#include <pty.h>
+ #endif
+
+ #include <sys/ioctl.h>
+@@ -1871,7 +1872,7 @@
+ get_pty (pty)
+ int *pty;
+ {
+-#ifdef __osf__
++#if defined(__osf__) || defined(linux)
+ int tty;
+ return (openpty(pty, &tty, ttydev, NULL, NULL));
+ #endif
diff --git a/x11-terms/kterm/files/kterm-ad-gentoo.diff b/x11-terms/kterm/files/kterm-ad-gentoo.diff
new file mode 100644
index 000000000000..a502bac0eb73
--- /dev/null
+++ b/x11-terms/kterm/files/kterm-ad-gentoo.diff
@@ -0,0 +1,21 @@
+--- KTerm.ad.orig 2004-01-07 06:25:15.000000000 +0900
++++ KTerm.ad 2004-01-07 06:27:43.550017672 +0900
+@@ -125,3 +125,18 @@
+
+ *VT100*translations: #override Shift<Key>space: \
+ begin-conversion(_JAPANESE_CONVERSION)
++
++! default values added by portage
++*VT100*kanjiMode: euc
++*inputMethod: kinput2
++!*openIm: true
++! To use wallpaper, uncomment and set it to your favorite image
++!*wallPaper: /path/to/filename.xpm
++
++! To enable wheel mouse
++KTerm*VT100.Translations: #override\n\
++ <KeyPress>Prior:scroll-back(1,page)\n\
++ <KeyPress>Next:scroll-forw(1,page)\n\
++ Shift<Key>space:begin-conversion(_JAPANESE_CONVERSION)\n\
++ <Btn4Down>:scroll-back(1,halfpage)\n\
++ <Btn5Down>:scroll-forw(1,halfpage)\n
diff --git a/x11-terms/kterm/kterm-6.2.0-r5.ebuild b/x11-terms/kterm/kterm-6.2.0-r5.ebuild
new file mode 100644
index 000000000000..b91eada35378
--- /dev/null
+++ b/x11-terms/kterm/kterm-6.2.0-r5.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2013 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}"/${P}-openpty.patch
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ epatch "${FILESDIR}"/${PN}-ad-gentoo.diff
+ epatch "${FILESDIR}"/${PV}-underline.patch
+
+ if use Xaw3d ; then
+ epatch "${FILESDIR}"/kterm-6.2.0-Xaw3d.patch
+ fi
+}
+
+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
+}
diff --git a/x11-terms/kterm/metadata.xml b/x11-terms/kterm/metadata.xml
new file mode 100644
index 000000000000..c921b96adf6c
--- /dev/null
+++ b/x11-terms/kterm/metadata.xml
@@ -0,0 +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>
+</pkgmetadata>