diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-05-11 00:31:48 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-05-11 00:31:48 +0000 |
commit | bbc2d1aa2f5b83b4a0b629d003f36fed28235009 (patch) | |
tree | f0ff537b874349d56374aae021574c5e4e158c97 /x11-terms | |
parent | Back to ~sparc wrt #92075 (diff) | |
download | historical-bbc2d1aa2f5b83b4a0b629d003f36fed28235009.tar.gz historical-bbc2d1aa2f5b83b4a0b629d003f36fed28235009.tar.bz2 historical-bbc2d1aa2f5b83b4a0b629d003f36fed28235009.zip |
Grab fix from upstream cvs to fix deadkey usages #91878 by Tobias Vogel.
Package-Manager: portage-2.0.51.21-r1
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/eterm/ChangeLog | 8 | ||||
-rw-r--r-- | x11-terms/eterm/Manifest | 5 | ||||
-rw-r--r-- | x11-terms/eterm/eterm-0.9.3-r4.ebuild | 64 | ||||
-rw-r--r-- | x11-terms/eterm/files/digest-eterm-0.9.3-r4 | 2 | ||||
-rw-r--r-- | x11-terms/eterm/files/eterm-0.9.3-deadkeys.patch | 127 |
5 files changed, 204 insertions, 2 deletions
diff --git a/x11-terms/eterm/ChangeLog b/x11-terms/eterm/ChangeLog index 55fe2dd855d6..c8c1abfa1048 100644 --- a/x11-terms/eterm/ChangeLog +++ b/x11-terms/eterm/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-terms/eterm # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-terms/eterm/ChangeLog,v 1.32 2005/05/06 10:31:08 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-terms/eterm/ChangeLog,v 1.33 2005/05/11 00:31:48 vapier Exp $ + +*eterm-0.9.3-r4 (11 May 2005) + + 11 May 2005; Mike Frysinger <vapier@gentoo.org> + +files/eterm-0.9.3-deadkeys.patch, +eterm-0.9.3-r4.ebuild: + Grab fix from upstream cvs to fix deadkey usages #91878 by Tobias Vogel. 06 May 2005; Sven Wegener <swegener@gentoo.org> eterm-0.9.2-r6.ebuild: Removed * postfix from <, <=, >= and > dependencies. diff --git a/x11-terms/eterm/Manifest b/x11-terms/eterm/Manifest index 284fd5b0d418..9912e5f1fa74 100644 --- a/x11-terms/eterm/Manifest +++ b/x11-terms/eterm/Manifest @@ -1,12 +1,15 @@ -MD5 35901b5ca338f31bb87f0440ada0e718 ChangeLog 5091 +MD5 46db1c09d55181da4f347395c26854df ChangeLog 5307 +MD5 bfcd1b681d21d39db9d56f949bfb2d1c eterm-0.9.3-r4.ebuild 1616 MD5 c97cacef51ce9af2ed721636c4436fe1 metadata.xml 631 MD5 24f01dc7e30eedc98613d041c4709ba7 eterm-0.9.2-r6.ebuild 1544 MD5 3c477c1ead38e157044cf5aebb2a4c3c eterm-9999.ebuild 1650 MD5 265994a654d7392b7e24122f9626a218 eterm-0.9.3-r3.ebuild 1574 MD5 c06f18d32325d81aa5c4a895a8798a82 files/0.9.2-ansi16.patch 1730 +MD5 c40df349d427482025208b7bea5bcb0a files/digest-eterm-0.9.3-r4 130 MD5 2914b242770c0fd9c37bf68d32205a0f files/0.9.2-tiling.patch 1206 MD5 309a7b42f0c4a1580943f0078f90bd50 files/digest-eterm-0.9.2-r6 129 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-eterm-9999 0 MD5 0cb62ade9b1d35746c7d8a55949137a1 files/eterm-0.9.3-pixmap-colmod.patch 1004 MD5 1ae3058201549b1de7fb8df2753712e0 files/eterm-0.9.3-CARD64.patch 767 +MD5 da95c4485e2244c440ece3da5a9dfca3 files/eterm-0.9.3-deadkeys.patch 4673 MD5 c40df349d427482025208b7bea5bcb0a files/digest-eterm-0.9.3-r3 130 diff --git a/x11-terms/eterm/eterm-0.9.3-r4.ebuild b/x11-terms/eterm/eterm-0.9.3-r4.ebuild new file mode 100644 index 000000000000..940214869599 --- /dev/null +++ b/x11-terms/eterm/eterm-0.9.3-r4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-terms/eterm/eterm-0.9.3-r4.ebuild,v 1.1 2005/05/11 00:31:48 vapier Exp $ + +inherit eutils + +MY_P=Eterm-${PV} +DESCRIPTION="A vt102 terminal emulator for X" +HOMEPAGE="http://www.eterm.org/" +SRC_URI="http://www.eterm.org/download/${MY_P}.tar.gz + http://www.eterm.org/download/Eterm-bg-${PV}.tar.gz + mirror://sourceforge/eterm/${MY_P}.tar.gz + mirror://sourceforge/eterm/Eterm-bg-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86" +IUSE="mmx etwin escreen" + +DEPEND="virtual/x11 + >=x11-libs/libast-0.6.1 + media-libs/imlib2 + etwin? ( app-misc/twin ) + escreen? ( app-misc/screen )" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${MY_P}.tar.gz + cd "${S}" + epatch "${FILESDIR}"/${P}-pixmap-colmod.patch + epatch "${FILESDIR}"/${P}-CARD64.patch #76324 + epatch "${FILESDIR}"/${P}-deadkeys.patch + unpack Eterm-bg-${PV}.tar.gz + sed -i 's:Tw/Tw_1\.h:Tw/Tw1.h:' src/libscream.c || die +} + +src_compile() { + local mymmx + use x86 \ + && mymmx="$(use_enable mmx)" \ + || mymmx="--disable-mmx" + econf \ + $(use_enable escreen) \ + $(use_enable etwin) \ + --with-imlib \ + --enable-trans \ + ${mymmx} \ + --enable-multi-charset \ + --with-delete=execute \ + --with-backspace=auto \ + || die "conf failed" + emake || die "make failed" +} + +src_install() { + make \ + TIC="tic -o ${D}/usr/share/terminfo" \ + DESTDIR="${D}" \ + install || die "install failed" + dodoc ChangeLog README ReleaseNotes + use escreen && dodoc doc/README.Escreen + dodoc bg/README.backgrounds +} diff --git a/x11-terms/eterm/files/digest-eterm-0.9.3-r4 b/x11-terms/eterm/files/digest-eterm-0.9.3-r4 new file mode 100644 index 000000000000..099bf720b418 --- /dev/null +++ b/x11-terms/eterm/files/digest-eterm-0.9.3-r4 @@ -0,0 +1,2 @@ +MD5 dd089fa7768f945341d721dd4942c702 Eterm-0.9.3.tar.gz 660767 +MD5 e8c6567b13d7fb760bded56c1d1a181d Eterm-bg-0.9.3.tar.gz 1883627 diff --git a/x11-terms/eterm/files/eterm-0.9.3-deadkeys.patch b/x11-terms/eterm/files/eterm-0.9.3-deadkeys.patch new file mode 100644 index 000000000000..f28b7496a633 --- /dev/null +++ b/x11-terms/eterm/files/eterm-0.9.3-deadkeys.patch @@ -0,0 +1,127 @@ +http://bugs.gentoo.org/91878 + + Tue Mar 15 16:44:09 2005 Michael Jennings (mej) + + Reverted part of a patch from Chris Schoeneman <crs23@bigfoot.com> + (changelog entry "Fri Jun 25 17:48:24 2004") which broke dead keys and + compose-key sequences. + + Fixed error in saving of cut_chars attribute. + +Index: src/misc.c +=================================================================== +RCS file: /cvsroot/enlightenment/eterm/Eterm/src/misc.c,v +retrieving revision 1.25 +retrieving revision 1.26 +diff -u -r1.25 -r1.26 +--- src/misc.c 11 Jan 2004 22:10:29 -0000 1.25 ++++ src/misc.c 15 Mar 2005 21:48:02 -0000 1.26 +@@ -223,6 +223,53 @@ + return (pnew - str); + } + ++spif_charptr_t ++escape_string(spif_charptr_t str, spif_char_t quote, spif_int32_t maxlen) ++{ ++ spif_charptr_t buff, s = str, pbuff; ++ ++ D_STRINGS(("escape_string(%s %c %ld)\n", (char *) str, quote, maxlen)); ++ if (! quote) { ++ quote = '\"'; ++ } ++ ++ /* The escaped string will be at most twice the length of the original. */ ++ buff = SPIF_CAST(charptr) MALLOC(strlen(SPIF_CAST_PTR(char) str) * 2 + 1); ++ ++ /* Copy and escape the string from str into buff. */ ++ for (pbuff = buff; (*s); s++, pbuff++) { ++ if (*s == quote) { ++ D_STRINGS(("Double-escaping \'%c\' at position %d\n", *s, s - str)); ++ *pbuff = '\\'; ++ pbuff++; ++ *pbuff = '\\'; ++ pbuff++; ++ } else { ++ if (quote == '\"') { ++ if ((*s == '\\') || (*s == '`')) { ++ D_STRINGS(("Escaping \'%c\' at position %d\n", *s, s - str)); ++ *pbuff = '\\'; ++ pbuff++; ++ } ++ } ++ } ++ D_STRINGS(("Copying \'%c\' at position %d\n", *s, s - str)); ++ *pbuff = *s; ++ } ++ *pbuff = 0; ++ ++ if (maxlen) { ++ /* Given maxlen, we know "str" can hold at least "maxlen" chars. */ ++ if (!spiftool_safe_strncpy(str, buff, maxlen)) { ++ str[maxlen] = 0; ++ } ++ FREE(buff); ++ return str; ++ } else { ++ return buff; ++ } ++} ++ + char * + safe_print_string(const char *str, unsigned long len) + { +Index: src/misc.h +=================================================================== +RCS file: /cvsroot/enlightenment/eterm/Eterm/src/misc.h,v +retrieving revision 1.15 +retrieving revision 1.16 +diff -u -r1.15 -r1.16 +--- src/misc.h 11 Jan 2004 22:10:29 -0000 1.15 ++++ src/misc.h 15 Mar 2005 21:48:02 -0000 1.16 +@@ -40,6 +40,7 @@ + extern unsigned long str_leading_match(register const char *, register const char *); + extern char *str_trim(char *str); + extern int parse_escaped_string(char *str); ++extern spif_charptr_t escape_string(spif_charptr_t str, spif_char_t quote, spif_int32_t maxlen); + extern char *safe_print_string(const char *buff, unsigned long len); + extern unsigned long add_carriage_returns(unsigned char *buff, unsigned long cnt); + extern unsigned char mkdirhier(const char *); +Index: src/options.c +=================================================================== +RCS file: /cvsroot/enlightenment/eterm/Eterm/src/options.c,v +retrieving revision 1.135 +retrieving revision 1.136 +diff -u -r1.135 -r1.136 +--- src/options.c 23 Feb 2005 20:38:19 -0000 1.135 ++++ src/options.c 15 Mar 2005 21:48:02 -0000 1.136 +@@ -3850,7 +3863,10 @@ + } + #ifdef CUTCHAR_OPTION + if (rs_cutchars) { +- fprintf(fp, " cut_chars '%s'\n", rs_cutchars); ++ spif_charptr_t cut_chars_escaped; ++ ++ cut_chars_escaped = escape_string(SPIF_CAST(charptr) rs_cutchars, '\"', 0); ++ fprintf(fp, " cut_chars \"%s\"\n", (char *) cut_chars_escaped); + } + #endif + fprintf(fp, "end misc\n\n"); +Index: src/windows.c +=================================================================== +RCS file: /cvsroot/enlightenment/eterm/Eterm/src/windows.c,v +retrieving revision 1.68 +retrieving revision 1.69 +diff -u -r1.68 -r1.69 +--- src/windows.c 14 Dec 2004 23:24:33 -0000 1.68 ++++ src/windows.c 15 Mar 2005 21:48:12 -0000 1.69 +@@ -473,9 +473,7 @@ + XClearWindow(Xdisplay, TermWin.vt); + } + XDefineCursor(Xdisplay, TermWin.vt, TermWin_cursor); +- TermWin.mask = (KeyPressMask | EnterWindowMask | LeaveWindowMask | ExposureMask +- | ButtonPressMask | ButtonReleaseMask | Button1MotionMask +- | Button2MotionMask | Button3MotionMask); ++ TermWin.mask = (EnterWindowMask | LeaveWindowMask | ExposureMask | ButtonPressMask | ButtonReleaseMask | Button1MotionMask | Button2MotionMask | Button3MotionMask); + XSelectInput(Xdisplay, TermWin.vt, TermWin.mask); + + /* If the user wants a specific desktop, tell the WM that */ |