# HG changeset patch # User Pascal Bellard # Date 1241278379 -7200 # Node ID 1eb2a982b375c6a28fde2b31e07807fac4978c08 # Parent 8eb19732f328b3f3c56a81b4e80d44eb546691eb Add xchat-plugin diff -r 8eb19732f328 -r 1eb2a982b375 xchat-plugin/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xchat-plugin/receipt Sat May 02 17:32:59 2009 +0200 @@ -0,0 +1,39 @@ +# SliTaz package receipt. + +PACKAGE="xchat-plugin" +VERSION="2.8.6" +CATEGORY="network" +SHORT_DESC="IRC client using GTK+ with plugins support" +MAINTAINER="fabrice.thiroux@free.fr" +DEPENDS="gtk+ dbus openssl gettext dbus-glib xorg-libXdamage" +BUILD_DEPENDS="gtk+-dev dbus-dev openssl shared-mime-info" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.xchat.org/" +WGET_URL="http://www.xchat.org/files/source/2.8/$TARBALL" +PROVIDE="xchat" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -p1 -i ../stuff/xc286-smallfixes.diff + # gentoo patch for GTK > 2.12 + patch -p1 -i ../stuff/xchat-2.8.6-gtk+-2.13.patch + ./configure --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --disable-tcl \ + --enable-spell=static \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr \ + $fs/usr/share + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/share/dbus-1 $fs/usr/share +} diff -r 8eb19732f328 -r 1eb2a982b375 xchat-plugin/stuff/xc286-smallfixes.diff --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xchat-plugin/stuff/xc286-smallfixes.diff Sat May 02 17:32:59 2009 +0200 @@ -0,0 +1,68 @@ +# +# Various small fixes from CVS that are considered safe to apply to 2.8.6. +# +--- xchat-2.8.6/src/common/cfgfiles.c 2008-02-05 21:02:47.000000000 +1100 ++++ xchat-2.8.6p1/src/common/cfgfiles.c 2008-06-15 13:45:43.000000000 +1000 +@@ -886,7 +886,6 @@ + set_showval (session *sess, const struct prefs *var, char *tbuf) + { + int len, dots, j; +- static const char *offon[] = { "OFF", "ON" }; + + len = strlen (var->name); + memcpy (tbuf, var->name, len); +@@ -909,8 +908,10 @@ + *((int *) &prefs + var->offset)); + break; + case TYPE_BOOL: +- sprintf (tbuf + len, "\0033:\017 %s\n", offon[ +- *((int *) &prefs + var->offset)]); ++ if (*((int *) &prefs + var->offset)) ++ sprintf (tbuf + len, "\0033:\017 %s\n", "ON"); ++ else ++ sprintf (tbuf + len, "\0033:\017 %s\n", "OFF"); + break; + } + PrintText (sess, tbuf); +--- xchat-2.8.6/src/common/chanopt.c 2008-06-10 22:00:55.000000000 +1000 ++++ xchat-2.8.6p1/src/common/chanopt.c 2008-06-15 13:48:04.000000000 +1000 +@@ -32,7 +32,7 @@ + + #define S_F(xx) STRUCT_OFFSET_STR(struct session,xx) + +-channel_options chanopt[] = ++static const channel_options chanopt[] = + { + {"alert_beep", "BEEP", S_F(alert_beep)}, + {"alert_taskbar", NULL, S_F(alert_taskbar)}, +--- xchat-2.8.6/src/common/servlist.c 2008-04-01 19:22:34.000000000 +1100 ++++ xchat-2.8.6p1/src/common/servlist.c 2008-06-15 13:57:41.000000000 +1000 +@@ -509,6 +509,8 @@ + list = g_slist_nth (net->servlist, net->selected); + if (!list) + list = net->servlist; ++ if (!list) ++ return; + ircserv = list->data; + + /* incase a protocol switch is added to the servlist gui */ +--- xchat-2.8.6/src/common/text.c 2008-03-28 13:20:04.000000000 +1100 ++++ xchat-2.8.6p1/src/common/text.c 2008-06-15 13:59:59.000000000 +1000 +@@ -216,7 +216,7 @@ + static void + scrollback_save (session *sess, char *text) + { +- char buf[1024]; ++ char buf[512 * 4]; + time_t stamp; + int len; + +@@ -266,7 +266,7 @@ + scrollback_load (session *sess) + { + int fh; +- char buf[1024]; ++ char buf[512 * 4]; + char *text; + time_t stamp; + int lines; diff -r 8eb19732f328 -r 1eb2a982b375 xchat-plugin/stuff/xchat-2.8.6-gtk+-2.13.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xchat-plugin/stuff/xchat-2.8.6-gtk+-2.13.patch Sat May 02 17:32:59 2009 +0200 @@ -0,0 +1,10 @@ +--- xchat-2.8.6/src/fe-gtk/xtext.h.orig 2008-02-24 05:48:02.000000000 +0100 ++++ xchat-2.8.6/src/fe-gtk/xtext.h 2008-09-06 02:18:39.000000000 +0200 +@@ -270,6 +270,6 @@ + xtext_buffer *gtk_xtext_buffer_new (GtkXText *xtext); + void gtk_xtext_buffer_free (xtext_buffer *buf); + void gtk_xtext_buffer_show (GtkXText *xtext, xtext_buffer *buf, int render); +-GtkType gtk_xtext_get_type (void); ++GType gtk_xtext_get_type (void); + + #endif