diff options
author | Michael Januszewski <spock@gentoo.org> | 2004-08-23 12:19:38 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2004-08-23 12:19:38 +0000 |
commit | 4d6211af56c6e38a027576fdfec897ad62fe9093 (patch) | |
tree | a0bd07e2038b12fa7cf7727826c28668402e56df /x11-terms/aterm | |
parent | Stable on x86 (Manifest recommit) (diff) | |
download | gentoo-2-4d6211af56c6e38a027576fdfec897ad62fe9093.tar.gz gentoo-2-4d6211af56c6e38a027576fdfec897ad62fe9093.tar.bz2 gentoo-2-4d6211af56c6e38a027576fdfec897ad62fe9093.zip |
Added a patch to let user specify the value of internalBorder.
Diffstat (limited to 'x11-terms/aterm')
-rw-r--r-- | x11-terms/aterm/ChangeLog | 9 | ||||
-rw-r--r-- | x11-terms/aterm/aterm-0.4.2-r11.ebuild | 99 | ||||
-rw-r--r-- | x11-terms/aterm/files/aterm-0.4.2-internal-border.patch | 71 | ||||
-rw-r--r-- | x11-terms/aterm/files/digest-aterm-0.4.2-r11 | 2 |
4 files changed, 180 insertions, 1 deletions
diff --git a/x11-terms/aterm/ChangeLog b/x11-terms/aterm/ChangeLog index ddff80a06eb5..5149c0dbfe06 100644 --- a/x11-terms/aterm/ChangeLog +++ b/x11-terms/aterm/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for x11-terms/aterm # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-terms/aterm/ChangeLog,v 1.41 2004/08/07 10:14:11 slarti Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-terms/aterm/ChangeLog,v 1.42 2004/08/23 12:19:38 spock Exp $ + +*aterm-0.4.2-r11 (23 Aug 2004) + + 23 Aug 2004; Michal Januszewski <spock@gentoo.org> + +files/aterm-0.4.2-internal-border.patch, +aterm-0.4.2-r11.ebuild: + Added a patch to let the user specify the value of internalBorder. Closes bug + #60813. 07 Aug 2004; Tom Martin <slarti@gentoo.org> aterm-0.4.2-r9.ebuild: Stable on amd64. diff --git a/x11-terms/aterm/aterm-0.4.2-r11.ebuild b/x11-terms/aterm/aterm-0.4.2-r11.ebuild new file mode 100644 index 000000000000..ab027e42bfec --- /dev/null +++ b/x11-terms/aterm/aterm-0.4.2-r11.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-terms/aterm/aterm-0.4.2-r11.ebuild,v 1.1 2004/08/23 12:19:38 spock Exp $ + +inherit eutils + +IUSE="cjk" +DESCRIPTION="A terminal emulator with transparency support as well as rxvt backwards compatibility" +SRC_URI="mirror://sourceforge/aterm/${P}.tar.bz2 + cjk? (http://dev.gentoo.org/~spock/portage/distfiles/aterm-0.4.2-ja.patch)" +HOMEPAGE="http://aterm.sourceforge.net" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64 ~mips" + +DEPEND="media-libs/jpeg + media-libs/libpng + virtual/x11" + +src_unpack() { + unpack ${P}.tar.bz2 + cd ${S}/src + cp feature.h feature.h.orig + sed "s:\(#define LINUX_KEYS\):/\*\1\*/:" \ + feature.h.orig > feature.h + + sed -i "s: KeySym keysym;: KeySym keysym = 0;:" command.c + + cd ${S} + epatch ${FILESDIR}/aterm-0.4.2-borderless.patch + epatch ${FILESDIR}/aterm-0.4.2-paste.patch + epatch ${FILESDIR}/aterm-0.4.2-paste_mouse_outside.patch + + if use cjk ; then + epatch ${DISTDIR}/aterm-0.4.2-ja.patch + else + epatch ${FILESDIR}/aterm-0.4.2-copynpaste-r3.patch + fi + + epatch ${FILESDIR}/aterm-0.4.2-patch-pack000.patch + + if use cjk ; then + epatch ${FILESDIR}/aterm-0.4.2-ja-savelines.patch + else + epatch ${FILESDIR}/aterm-0.4.2-savelines.patch + fi + + epatch ${FILESDIR}/aterm-0.4.2-internal-border.patch +} + +src_compile() { + local myconf + + # You can't --enable-big5 with aterm-0.4.2-ja.patch + # I think it's very bad thing but as nobody complains it + # and we don't have per-language flag atm, I stick to + # use --enable-kanji/--enable-thai (and leave --enable-big5) + use cjk && myconf="$myconf + --enable-kanji + --enable-thai + --enable-xim + --enable-linespace" + + econf \ + --enable-transparency \ + --enable-fading \ + --enable-background-image \ + --enable-menubar \ + --enable-graphics \ + --enable-utmp \ + --with-x \ + ${myconf} || die + + emake || die +} + +src_install () { + make DESTDIR=${D} install || die + + fowners root:utmp /usr/bin/aterm + fperms g+s /usr/bin/aterm + + doman doc/aterm.1 + dodoc ChangeLog INSTALL doc/BUGS doc/FAQ doc/README.* + docinto menu + dodoc doc/menu/* + dohtml -r . +} + +pkg_postinst () { + echo "" + einfo "Hint: you can copy text from aterm to the clipboard by holding the ALT key" + einfo "while highlighting the text." + echo "" + ewarn "The transparent background will only work if you have the 'real' root wallpaper" + ewarn "set. Use Esetroot (x11-terms/eterm) or fbsetbg (x11-wm/fluxbox) if you are" + ewarn "experiencing problems with transparency in aterm." + echo "" +} diff --git a/x11-terms/aterm/files/aterm-0.4.2-internal-border.patch b/x11-terms/aterm/files/aterm-0.4.2-internal-border.patch new file mode 100644 index 000000000000..43a2c0b87adb --- /dev/null +++ b/x11-terms/aterm/files/aterm-0.4.2-internal-border.patch @@ -0,0 +1,71 @@ +diff -Naur aterm-0.4.2/src/main.c aterm-0.4.2-orig/src/main.c +--- aterm-0.4.2/src/main.c 2004-08-23 14:08:25.000000000 +0200 ++++ aterm-0.4.2-orig/src/main.c 2004-08-23 14:11:12.071851096 +0200 +@@ -1634,6 +1634,7 @@ + rs_minBufferWidth = NULL; + rs_saveLines = NULL; /* scrollback buffer [lines] */ + rs_borderWidth = NULL; ++ rs_internal_border = NULL; + rs_modifier = NULL; /* modifier */ + #if defined (HOTKEY_CTRL) || defined (HOTKEY_META) + /* recognized when combined with HOTKEY */ +@@ -1771,6 +1772,12 @@ + else + TermWin.borderWidth = t; + ++ if (!rs_internal_border|| (t = atoi(rs_internal_border)) < 0) ++ TermWin_internalBorder = 2; ++ else ++ TermWin_internalBorder = t; ++ TermWin_internalBorders = 2 * TermWin_internalBorder; ++ + /* no point having a scrollbar without having any scrollback! */ + if (!TermWin.saveLines) + Options &= ~Opt_scrollBar; +diff -Naur aterm-0.4.2/src/rxvt.h aterm-0.4.2-orig/src/rxvt.h +--- aterm-0.4.2/src/rxvt.h 2004-08-23 14:08:25.000000000 +0200 ++++ aterm-0.4.2-orig/src/rxvt.h 2004-08-23 14:09:58.099096664 +0200 +@@ -603,10 +603,6 @@ + #define scrollBar_esc 30 + #define menuBar_margin 2 /* margin below text */ + +-/* gap between text and window edges (could be configurable) */ +-#define TermWin_internalBorder 2 +-#define TermWin_internalBorders 4 /* must be two times of value above */ +- + /* width of scrollBar, menuBar shadow, must be 1 or 2 */ + #ifdef HALFSHADOW + # define SHADOW 1 +@@ -944,6 +940,12 @@ + extern Window ParentWin[PARENTS_NUM]; + extern int ParentWinNum; + ++/* gap between text and window edges (could be configurable) */ ++EXTERN int TermWin_internalBorder; ++/* must be two times of value above */ ++EXTERN int TermWin_internalBorders; ++ ++ + EXTERN scrollBar_t scrollBar; + EXTERN menuBar_t menuBar; + EXTERN Display *Xdisplay; +@@ -968,6 +970,7 @@ + EXTERN const char *rs_minBufferWidth; /* minimum buffer width - so we can scroll horizontally */ + EXTERN const char *rs_saveLines; /* scrollback buffer [lines] */ + EXTERN const char *rs_borderWidth; /* border width [pixels] */ ++EXTERN const char *rs_internal_border; /* internal border width [pixels] */ + EXTERN const char *rs_cutchars; /* chars for selection boundaries */ + #ifdef META8_OPTION + EXTERN const char *rs_modifier; +diff -Naur aterm-0.4.2/src/xdefaults.c aterm-0.4.2-orig/src/xdefaults.c +--- aterm-0.4.2/src/xdefaults.c 2004-08-23 14:08:24.000000000 +0200 ++++ aterm-0.4.2-orig/src/xdefaults.c 2004-08-23 14:09:23.273390976 +0200 +@@ -302,6 +302,8 @@ + "pointer color"), + STRG(rs_borderWidth, "borderWidth", "bw", "number", + "width of border"), ++ STRG(rs_internal_border, "internalBorder", "ib", "number", ++ "width of the internal border"), + STRG(rs_color[Color_border], "borderColor", "bd", "color", + "border color"), + BOOL(rs_borderLess, "borderLess", "bl", Opt_borderLess, "no decoration"), diff --git a/x11-terms/aterm/files/digest-aterm-0.4.2-r11 b/x11-terms/aterm/files/digest-aterm-0.4.2-r11 new file mode 100644 index 000000000000..a1aafd5e085e --- /dev/null +++ b/x11-terms/aterm/files/digest-aterm-0.4.2-r11 @@ -0,0 +1,2 @@ +MD5 5c29d0cde4225bdbd63ccb6a4dd94c56 aterm-0.4.2.tar.bz2 243419 +MD5 2bd8629ea2a1926bca13841b0aca6604 aterm-0.4.2-ja.patch 84282 |