Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b8dae01e78f6fffbfd5280fe73a8b81cf229929a
commit b8dae01e78f6fffbfd5280fe73a8b81cf229929a Author: Slown <[email protected]> Date: Fri Feb 21 18:51:24 2014 +0100 tmux-1.9-1-i686 * version bump * remove old patch diff --git a/source/apps-extra/tmux/FrugalBuild b/source/apps-extra/tmux/FrugalBuild index 0cc7084..19355d2 100644 --- a/source/apps-extra/tmux/FrugalBuild +++ b/source/apps-extra/tmux/FrugalBuild @@ -1,24 +1,15 @@ -# Compiling Time: 0.20 SBU +# Compiling Time: 0.22 SBU # Maintainer: jercel <[email protected]> pkgname=tmux -pkgver=1.8 +pkgver=1.9 pkgrel=1 pkgdesc="A terminal multiplexer" url="http://sourceforge.net/projects/tmux/" -depends=('ncurses' 'libevent>=2.0.10') +depends=('ncurses' 'libevent>=2.0.21') Finclude sourceforge -source=($source tmux-1.4-colors.patch) groups=('apps-extra') archs=('i686' 'x86_64') -sha1sums=('08677ea914e1973ce605b0008919717184cbd033' \ - 'd043afccaeb059f1865789c5c35f6da11a6e5586') -build() -{ - Fcd - Fpatchall - Fmake - Fmakeinstall DESTDIR=${Fdestdir} PREFIX=/usr -} +sha1sums=('43197e69716a0430a9e856c13df8ceae31783078') # optimization OK diff --git a/source/apps-extra/tmux/tmux-1.4-colors.patch b/source/apps-extra/tmux/tmux-1.4-colors.patch deleted file mode 100644 index 96847d5..0000000 --- a/source/apps-extra/tmux/tmux-1.4-colors.patch +++ /dev/null @@ -1,74 +0,0 @@ -diff --git a/tty.c b/tty.c -index 4d113cd..dcb86ad 100644 ---- a/tty.c -+++ b/tty.c -@@ -28,6 +28,9 @@ - - #include "tmux.h" - -+#define FG "38" -+#define BG "48" -+ - void tty_read_callback(struct bufferevent *, void *); - void tty_error_callback(struct bufferevent *, short, void *); - -@@ -1373,9 +1376,9 @@ tty_colours_fg(struct tty *tty, const struct grid_cell *gc) - /* Is this a 256-colour colour? */ - if (gc->flags & GRID_FLAG_FG256) { - /* Try as 256 colours or translating to 88. */ -- if (tty_try_256(tty, fg, "38") == 0) -+ if (tty_try_256(tty, fg, FG) == 0) - goto save_fg; -- if (tty_try_88(tty, fg, "38") == 0) -+ if (tty_try_88(tty, fg, FG) == 0) - goto save_fg; - /* Else already handled by tty_check_fg. */ - return; -@@ -1408,9 +1411,9 @@ tty_colours_bg(struct tty *tty, const struct grid_cell *gc) - /* Is this a 256-colour colour? */ - if (gc->flags & GRID_FLAG_BG256) { - /* Try as 256 colours or translating to 88. */ -- if (tty_try_256(tty, bg, "48") == 0) -+ if (tty_try_256(tty, bg, BG) == 0) - goto save_bg; -- if (tty_try_88(tty, bg, "48") == 0) -+ if (tty_try_88(tty, bg, BG) == 0) - goto save_bg; - /* Else already handled by tty_check_bg. */ - return; -@@ -1441,28 +1444,28 @@ save_bg: - int - tty_try_256(struct tty *tty, u_char colour, const char *type) - { -- char s[32]; -+ enum tty_code_code op; - - if (!(tty->term->flags & TERM_256COLOURS) && - !(tty->term_flags & TERM_256COLOURS)) - return (-1); - -- xsnprintf(s, sizeof s, "\033[%s;5;%hhum", type, colour); -- tty_puts(tty, s); -+ op = (strcmp(type,FG)==0) ? TTYC_SETAF : TTYC_SETAB; -+ tty_putcode1(tty,op,colour); - return (0); - } - - int - tty_try_88(struct tty *tty, u_char colour, const char *type) - { -- char s[32]; -+ enum tty_code_code op; - - if (!(tty->term->flags & TERM_88COLOURS) && - !(tty->term_flags & TERM_88COLOURS)) - return (-1); - colour = colour_256to88(colour); -- -- xsnprintf(s, sizeof s, "\033[%s;5;%hhum", type, colour); -- tty_puts(tty, s); -+ -+ op = (strcmp(type,FG)==0) ? TTYC_SETAF : TTYC_SETAB; -+ tty_putcode1(tty,op,colour); - return (0); - } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
