pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/gaim-icb Initial import of gaim-icb-20050918 as c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7909705fca40
branches:  trunk
changeset: 502078:7909705fca40
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Nov 02 08:34:47 2005 +0000

description:
Initial import of gaim-icb-20050918 as chat/gaim-icb.  This is an ICB
protocol plugin for GAIM (chat/gaim).  Important changes that were
made as part of porting this software to pkgsrc include the following:

* Teach gaim-icb to display all status messages sent by the ICB server,
  which allows server-specific info messages to be received by the ICB
  plugin.

* Add the "brick" shortcut command (of course).

diffstat:

 chat/gaim-icb/DESCR            |   1 +
 chat/gaim-icb/Makefile         |  39 +++++++++++++++++++++++++++++
 chat/gaim-icb/PLIST            |   3 ++
 chat/gaim-icb/distinfo         |   6 ++++
 chat/gaim-icb/patches/patch-aa |  55 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 104 insertions(+), 0 deletions(-)

diffs (124 lines):

diff -r 3c242fe18abb -r 7909705fca40 chat/gaim-icb/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/gaim-icb/DESCR       Wed Nov 02 08:34:47 2005 +0000
@@ -0,0 +1,1 @@
+This is an ICB protocol plugin for GAIM.
diff -r 3c242fe18abb -r 7909705fca40 chat/gaim-icb/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/gaim-icb/Makefile    Wed Nov 02 08:34:47 2005 +0000
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/11/02 08:34:47 jlam Exp $
+
+DISTNAME=      gaim-icb-20050918
+CATEGORIES=    chat
+MASTER_SITES=  http://nic.com.pl/~alek/gaim-icb/
+
+MAINTAINER=    nathanw%NetBSD.org@localhost
+HOMEPAGE=      http://nic.com.pl/~alek/gaim-icb/
+COMMENT=       ICB plugin for GAIM
+
+USE_TOOLS+=    pkg-config
+
+USE_LIBTOOL=   yes
+NO_CONFIGURE=  yes
+
+LTCOMPILE=     ${SHLIBTOOL} --mode=compile ${CC}
+LTLINK=                ${SHLIBTOOL} --mode=link ${CC}
+LTINSTALL=     ${SHLIBTOOL} --mode=install ${INSTALL_LIB}
+CFLAGS+=       -DHAVE_CONFIG_H `pkg-config gaim --cflags`
+LDFLAGS+=      -module -avoid-version -rpath ${GAIM_PLUGIN_DIR}        \
+               `pkg-config gaim --libs`
+
+GAIM_PLUGIN_DIR=       ${PREFIX}/lib/gaim
+GAIM_PIXMAPS_DIR=      ${PREFIX}/share/pixmaps/gaim
+
+do-build:
+       cd ${WRKSRC} && ${LTCOMPILE} ${CFLAGS} -I. -c icb.c
+       cd ${WRKSRC} && ${LTLINK} ${LDFLAGS} -o libicb.la icb.lo
+
+do-install:
+       ${INSTALL_LIB_DIR} ${GAIM_PLUGIN_DIR}
+       cd ${WRKSRC} && ${LTINSTALL} libicb.la ${GAIM_PLUGIN_DIR}
+       ${INSTALL_DATA_DIR} ${GAIM_PIXMAPS_DIR}/status/default
+       cd ${WRKSRC} && ${INSTALL_DATA} icb.png                         \
+               ${GAIM_PIXMAPS_DIR}/status/default
+
+.include "../../chat/gaim/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 3c242fe18abb -r 7909705fca40 chat/gaim-icb/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/gaim-icb/PLIST       Wed Nov 02 08:34:47 2005 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/02 08:34:47 jlam Exp $
+lib/gaim/libicb.la
+share/pixmaps/gaim/status/default/icb.png
diff -r 3c242fe18abb -r 7909705fca40 chat/gaim-icb/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/gaim-icb/distinfo    Wed Nov 02 08:34:47 2005 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/11/02 08:34:47 jlam Exp $
+
+SHA1 (gaim-icb-20050918.tar.gz) = 275e622e63bc3211abb752057c5cb3cb44a7e6e7
+RMD160 (gaim-icb-20050918.tar.gz) = 00685ff20707989eaf130ee6a1a8574ccd58c1c4
+Size (gaim-icb-20050918.tar.gz) = 12971 bytes
+SHA1 (patch-aa) = a69f78f91b49e632a40cb4072854cbab190ee4fd
diff -r 3c242fe18abb -r 7909705fca40 chat/gaim-icb/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/gaim-icb/patches/patch-aa    Wed Nov 02 08:34:47 2005 +0000
@@ -0,0 +1,55 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/11/02 08:34:47 jlam Exp $
+
+--- icb.c.orig 2005-09-18 04:44:15.000000000 -0400
++++ icb.c
+@@ -661,6 +661,16 @@ icb_input_cb(gpointer data, gint source,
+                                       gaim_conv_chat_user_set_flags(GAIM_CONV_CHAT(conv), new_mod, GAIM_CBFLAGS_OP);
+                                       gaim_conv_chat_write(GAIM_CONV_CHAT(conv), "", packet->fields[1],
+                                               GAIM_MESSAGE_SYSTEM, time(NULL));
++                              } else if (packet->nof == 2) {
++                                      char *tmp;
++                                      GaimConversation *conv;
++
++                                      conv = icb_get_current_group(gc->account, icb->chat_id);
++
++                                      tmp = g_strdup_printf(_("%s: %s"), packet->fields[0], packet->fields[1]);
++                                      gaim_conv_chat_write(GAIM_CONV_CHAT(conv), "", tmp,
++                                              GAIM_MESSAGE_SYSTEM, time(NULL));
++                                      g_free(tmp);
+                               }
+                               break;
+                       case ICB_CMD_COMMAND_RESP:
+@@ -984,6 +994,20 @@ icb_gaim_cmd_kick(GaimConversation *conv
+       return icb_gaim_send_cmd(conv, buf);
+ }
+ 
++static GaimCmdRet
++icb_gaim_cmd_brick(GaimConversation *conv,
++      const char *cmd, char **args, char **error, void *data)
++{
++      int  r;
++      char buf[ICB_MAX_DATA_SIZE+1];
++
++      r = snprintf(buf, sizeof(buf), "server brick %s", args[0]);
++      if (r <= 0)
++              return GAIM_CMD_RET_FAILED;
++
++      return icb_gaim_send_cmd(conv, buf);
++}
++
+ static void
+ icb_set_chat_topic(GaimConnection *gc, int id, const char *topic)
+ {
+@@ -1174,6 +1198,12 @@ _init_plugin(GaimPlugin *plugin)
+               icb_gaim_cmd_kick,
+               _("boot &lt;nickname&gt;: If you are group moderator, removes &quot;nickname&quot; from group"),
+               NULL);
++      gaim_cmd_register("brick","w", GAIM_CMD_P_PRPL,
++              GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY,
++              "prpl-icb",
++              icb_gaim_cmd_brick,
++              _("brick &lt;nickname&gt;: Throw a brick at &quot;nickname&quot;"),
++              NULL);
+       gaim_cmd_register("m","ws", GAIM_CMD_P_PRPL,
+               GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY,
+               "prpl-icb",



Home | Main Index | Thread Index | Old Index