Add gaim-rss-reader, a plug-in fro Gaim that provides RSS news feed support.

It allows users to add/remove RSS feeds, and consult and update them through
a button on the conversation window.

PR:		70163
Submitted by:	Patrick MARIE <mycroft@virgaria.org>
This commit is contained in:
Joe Marcus Clarke 2004-08-08 21:51:03 +00:00
parent 2f2cde24bc
commit cc94e2ba2f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115687
15 changed files with 195 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# New ports collection makefile for: gaim-rss-rader
# Date created: 8 Aug 2004
# Whom: mycroft@virgaria.org
#
# $FreeBSD$
#
PORTNAME= rss-reader
PORTVERSION= 0.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
PKGNAMEPREFIX= gaim-
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
MAINTAINER= mycroft@virgaria.org
COMMENT= Provides Rss support for Gaim
BUILD_DEPENDS= ${X11BASE}/include/gaim/config.h:${PORTSDIR}/net/gaim
RUN_DEPENDS= gaim:${PORTSDIR}/net/gaim
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOME= gtk20 libxml2
USE_LIBTOOL_VER=15
CONFIGURE_ARGS= "--with-gaim=${X11BASE}/include/gaim"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
MD5 (gaim-rss-reader-0.1.tar.gz) = 8a0bcc28b4a5b7d761adef997646c739
SIZE (gaim-rss-reader-0.1.tar.gz) = 538076

View file

@ -0,0 +1,11 @@
--- pixmaps/Makefile.in.orig Sun Aug 8 13:52:53 2004
+++ pixmaps/Makefile.in Sun Aug 8 13:53:08 2004
@@ -103,7 +103,7 @@
EXTRA_DIST = xml.png
-grrconfpixdir = $(datadir)/pixmaps/gaim/grr
+grrconfpixdir = $(datadir)/gnome/pixmaps/gaim/status/default
grrconfpix_DATA = xml.png
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../pre_config.h

View file

@ -0,0 +1,32 @@
--- src/channel.c.orig Sun Aug 8 17:45:25 2004
+++ src/channel.c Sun Aug 8 17:46:01 2004
@@ -97,16 +97,19 @@
void rss_channel_update(Channel *channel)
{
+ xmlDocPtr doc;
+ xmlNodePtr cur;
+ gboolean rdf = FALSE;
rss_channel_clear(channel);
- xmlDocPtr doc = xmlParseFile(channel->url);
+ doc = xmlParseFile(channel->url);
if(doc == NULL)
{
//std::cerr << "Cannot read file: " << _title << std::endl;
return;
}
- xmlNodePtr cur = xmlDocGetRootElement(doc);
+ cur = xmlDocGetRootElement(doc);
if (cur == NULL)
{
//std::cerr << "Empty document: " << _title << std::endl;
@@ -114,7 +117,6 @@
return;
}
- gboolean rdf = FALSE;
// We must determine whether the document is RDF or RSS since they
// have slightly different structures. We handle both.
if(!xmlStrcmp(cur->name, (const xmlChar *)"rss"))

View file

@ -0,0 +1,14 @@
--- src/gaim-rss-reader.c.orig Sun Aug 8 17:44:40 2004
+++ src/gaim-rss-reader.c Sun Aug 8 17:44:54 2004
@@ -255,10 +255,10 @@
static void init_plugin(GaimPlugin *plugin)
{
+ GList *sl = NULL;
gaim_prefs_add_none("/plugins/gtk/gaim-rss-reader");
gaim_prefs_add_int("/plugins/gtk/gaim-rss-reader/update_time", 60);
- GList *sl = NULL;
sl = g_list_append(sl, "Debian Planet;http://www.debianplanet.org/debianplanet/backend.php");
sl = g_list_append(sl, "Mozillazine;http://www.mozillazine.org/contents.rdf");
sl = g_list_append(sl, "Newsforge;http://www.newsforge.com/newsforge.rss");

View file

@ -0,0 +1,6 @@
RSS reader plugin for Gaim.
It allows users to add/remove rss feeds, and consult/update them through
a button on conversation window.
WWW: http://gaim-rss-reader.sf.net/

View file

@ -0,0 +1,2 @@
lib/gaim/grr.so
share/gnome/pixmaps/gaim/status/default/xml.png

View file

@ -131,6 +131,7 @@
SUBDIR += fugu
SUBDIR += gabber
SUBDIR += gaim
SUBDIR += gaim-rss-reader
SUBDIR += gale
SUBDIR += gatekeeper
SUBDIR += gdesklets-lt-network

View file

@ -0,0 +1,30 @@
# New ports collection makefile for: gaim-rss-rader
# Date created: 8 Aug 2004
# Whom: mycroft@virgaria.org
#
# $FreeBSD$
#
PORTNAME= rss-reader
PORTVERSION= 0.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
PKGNAMEPREFIX= gaim-
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
MAINTAINER= mycroft@virgaria.org
COMMENT= Provides Rss support for Gaim
BUILD_DEPENDS= ${X11BASE}/include/gaim/config.h:${PORTSDIR}/net/gaim
RUN_DEPENDS= gaim:${PORTSDIR}/net/gaim
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOME= gtk20 libxml2
USE_LIBTOOL_VER=15
CONFIGURE_ARGS= "--with-gaim=${X11BASE}/include/gaim"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
MD5 (gaim-rss-reader-0.1.tar.gz) = 8a0bcc28b4a5b7d761adef997646c739
SIZE (gaim-rss-reader-0.1.tar.gz) = 538076

View file

@ -0,0 +1,11 @@
--- pixmaps/Makefile.in.orig Sun Aug 8 13:52:53 2004
+++ pixmaps/Makefile.in Sun Aug 8 13:53:08 2004
@@ -103,7 +103,7 @@
EXTRA_DIST = xml.png
-grrconfpixdir = $(datadir)/pixmaps/gaim/grr
+grrconfpixdir = $(datadir)/gnome/pixmaps/gaim/status/default
grrconfpix_DATA = xml.png
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../pre_config.h

View file

@ -0,0 +1,32 @@
--- src/channel.c.orig Sun Aug 8 17:45:25 2004
+++ src/channel.c Sun Aug 8 17:46:01 2004
@@ -97,16 +97,19 @@
void rss_channel_update(Channel *channel)
{
+ xmlDocPtr doc;
+ xmlNodePtr cur;
+ gboolean rdf = FALSE;
rss_channel_clear(channel);
- xmlDocPtr doc = xmlParseFile(channel->url);
+ doc = xmlParseFile(channel->url);
if(doc == NULL)
{
//std::cerr << "Cannot read file: " << _title << std::endl;
return;
}
- xmlNodePtr cur = xmlDocGetRootElement(doc);
+ cur = xmlDocGetRootElement(doc);
if (cur == NULL)
{
//std::cerr << "Empty document: " << _title << std::endl;
@@ -114,7 +117,6 @@
return;
}
- gboolean rdf = FALSE;
// We must determine whether the document is RDF or RSS since they
// have slightly different structures. We handle both.
if(!xmlStrcmp(cur->name, (const xmlChar *)"rss"))

View file

@ -0,0 +1,14 @@
--- src/gaim-rss-reader.c.orig Sun Aug 8 17:44:40 2004
+++ src/gaim-rss-reader.c Sun Aug 8 17:44:54 2004
@@ -255,10 +255,10 @@
static void init_plugin(GaimPlugin *plugin)
{
+ GList *sl = NULL;
gaim_prefs_add_none("/plugins/gtk/gaim-rss-reader");
gaim_prefs_add_int("/plugins/gtk/gaim-rss-reader/update_time", 60);
- GList *sl = NULL;
sl = g_list_append(sl, "Debian Planet;http://www.debianplanet.org/debianplanet/backend.php");
sl = g_list_append(sl, "Mozillazine;http://www.mozillazine.org/contents.rdf");
sl = g_list_append(sl, "Newsforge;http://www.newsforge.com/newsforge.rss");

View file

@ -0,0 +1,6 @@
RSS reader plugin for Gaim.
It allows users to add/remove rss feeds, and consult/update them through
a button on conversation window.
WWW: http://gaim-rss-reader.sf.net/

View file

@ -0,0 +1,2 @@
lib/gaim/grr.so
share/gnome/pixmaps/gaim/status/default/xml.png