wok-current rev 2866
Add xchat-plugin
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 02 17:32:59 2009 +0200 (2009-05-02) |
parents | 8eb19732f328 |
children | 7a50c39a4852 |
files | xchat-plugin/receipt xchat-plugin/stuff/xc286-smallfixes.diff xchat-plugin/stuff/xchat-2.8.6-gtk+-2.13.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xchat-plugin/receipt Sat May 02 17:32:59 2009 +0200 1.3 @@ -0,0 +1,39 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="xchat-plugin" 1.7 +VERSION="2.8.6" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="IRC client using GTK+ with plugins support" 1.10 +MAINTAINER="fabrice.thiroux@free.fr" 1.11 +DEPENDS="gtk+ dbus openssl gettext dbus-glib xorg-libXdamage" 1.12 +BUILD_DEPENDS="gtk+-dev dbus-dev openssl shared-mime-info" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 +WEB_SITE="http://www.xchat.org/" 1.15 +WGET_URL="http://www.xchat.org/files/source/2.8/$TARBALL" 1.16 +PROVIDE="xchat" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + patch -p1 -i ../stuff/xc286-smallfixes.diff 1.23 + # gentoo patch for GTK > 2.12 1.24 + patch -p1 -i ../stuff/xchat-2.8.6-gtk+-2.13.patch 1.25 + ./configure --prefix=/usr \ 1.26 + --infodir=/usr/share/info \ 1.27 + --mandir=/usr/share/man \ 1.28 + --disable-tcl \ 1.29 + --enable-spell=static \ 1.30 + $CONFIGURE_ARGS && 1.31 + make && 1.32 + make DESTDIR=$PWD/_pkg install 1.33 +} 1.34 + 1.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 +genpkg_rules() 1.37 +{ 1.38 + mkdir -p $fs/usr \ 1.39 + $fs/usr/share 1.40 + cp -a $_pkg/usr/bin $fs/usr 1.41 + cp -a $_pkg/usr/share/dbus-1 $fs/usr/share 1.42 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/xchat-plugin/stuff/xc286-smallfixes.diff Sat May 02 17:32:59 2009 +0200 2.3 @@ -0,0 +1,68 @@ 2.4 +# 2.5 +# Various small fixes from CVS that are considered safe to apply to 2.8.6. 2.6 +# 2.7 +--- xchat-2.8.6/src/common/cfgfiles.c 2008-02-05 21:02:47.000000000 +1100 2.8 ++++ xchat-2.8.6p1/src/common/cfgfiles.c 2008-06-15 13:45:43.000000000 +1000 2.9 +@@ -886,7 +886,6 @@ 2.10 + set_showval (session *sess, const struct prefs *var, char *tbuf) 2.11 + { 2.12 + int len, dots, j; 2.13 +- static const char *offon[] = { "OFF", "ON" }; 2.14 + 2.15 + len = strlen (var->name); 2.16 + memcpy (tbuf, var->name, len); 2.17 +@@ -909,8 +908,10 @@ 2.18 + *((int *) &prefs + var->offset)); 2.19 + break; 2.20 + case TYPE_BOOL: 2.21 +- sprintf (tbuf + len, "\0033:\017 %s\n", offon[ 2.22 +- *((int *) &prefs + var->offset)]); 2.23 ++ if (*((int *) &prefs + var->offset)) 2.24 ++ sprintf (tbuf + len, "\0033:\017 %s\n", "ON"); 2.25 ++ else 2.26 ++ sprintf (tbuf + len, "\0033:\017 %s\n", "OFF"); 2.27 + break; 2.28 + } 2.29 + PrintText (sess, tbuf); 2.30 +--- xchat-2.8.6/src/common/chanopt.c 2008-06-10 22:00:55.000000000 +1000 2.31 ++++ xchat-2.8.6p1/src/common/chanopt.c 2008-06-15 13:48:04.000000000 +1000 2.32 +@@ -32,7 +32,7 @@ 2.33 + 2.34 + #define S_F(xx) STRUCT_OFFSET_STR(struct session,xx) 2.35 + 2.36 +-channel_options chanopt[] = 2.37 ++static const channel_options chanopt[] = 2.38 + { 2.39 + {"alert_beep", "BEEP", S_F(alert_beep)}, 2.40 + {"alert_taskbar", NULL, S_F(alert_taskbar)}, 2.41 +--- xchat-2.8.6/src/common/servlist.c 2008-04-01 19:22:34.000000000 +1100 2.42 ++++ xchat-2.8.6p1/src/common/servlist.c 2008-06-15 13:57:41.000000000 +1000 2.43 +@@ -509,6 +509,8 @@ 2.44 + list = g_slist_nth (net->servlist, net->selected); 2.45 + if (!list) 2.46 + list = net->servlist; 2.47 ++ if (!list) 2.48 ++ return; 2.49 + ircserv = list->data; 2.50 + 2.51 + /* incase a protocol switch is added to the servlist gui */ 2.52 +--- xchat-2.8.6/src/common/text.c 2008-03-28 13:20:04.000000000 +1100 2.53 ++++ xchat-2.8.6p1/src/common/text.c 2008-06-15 13:59:59.000000000 +1000 2.54 +@@ -216,7 +216,7 @@ 2.55 + static void 2.56 + scrollback_save (session *sess, char *text) 2.57 + { 2.58 +- char buf[1024]; 2.59 ++ char buf[512 * 4]; 2.60 + time_t stamp; 2.61 + int len; 2.62 + 2.63 +@@ -266,7 +266,7 @@ 2.64 + scrollback_load (session *sess) 2.65 + { 2.66 + int fh; 2.67 +- char buf[1024]; 2.68 ++ char buf[512 * 4]; 2.69 + char *text; 2.70 + time_t stamp; 2.71 + int lines;
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/xchat-plugin/stuff/xchat-2.8.6-gtk+-2.13.patch Sat May 02 17:32:59 2009 +0200 3.3 @@ -0,0 +1,10 @@ 3.4 +--- xchat-2.8.6/src/fe-gtk/xtext.h.orig 2008-02-24 05:48:02.000000000 +0100 3.5 ++++ xchat-2.8.6/src/fe-gtk/xtext.h 2008-09-06 02:18:39.000000000 +0200 3.6 +@@ -270,6 +270,6 @@ 3.7 + xtext_buffer *gtk_xtext_buffer_new (GtkXText *xtext); 3.8 + void gtk_xtext_buffer_free (xtext_buffer *buf); 3.9 + void gtk_xtext_buffer_show (GtkXText *xtext, xtext_buffer *buf, int render); 3.10 +-GtkType gtk_xtext_get_type (void); 3.11 ++GType gtk_xtext_get_type (void); 3.12 + 3.13 + #endif