aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-08-09 05:51:03 +0800
committermarcus <marcus@FreeBSD.org>2004-08-09 05:51:03 +0800
commit462f29453c20c9ebb6a4580460f7dbf71df0251c (patch)
tree1db0e985451159dc0e265916240fea393e099773 /net
parentacd4e0552fe4edd770d7dcbbd9bd36aaf2558ddb (diff)
downloadfreebsd-ports-gnome-462f29453c20c9ebb6a4580460f7dbf71df0251c.tar.gz
freebsd-ports-gnome-462f29453c20c9ebb6a4580460f7dbf71df0251c.tar.zst
freebsd-ports-gnome-462f29453c20c9ebb6a4580460f7dbf71df0251c.zip
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>
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/gaim-rss-reader/Makefile30
-rw-r--r--net/gaim-rss-reader/distinfo2
-rw-r--r--net/gaim-rss-reader/files/patch-pixmaps_Makefile.in11
-rw-r--r--net/gaim-rss-reader/files/patch-src_channel.c32
-rw-r--r--net/gaim-rss-reader/files/patch-src_gaim-rss-reader.c14
-rw-r--r--net/gaim-rss-reader/pkg-descr6
-rw-r--r--net/gaim-rss-reader/pkg-plist2
8 files changed, 98 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index aad4766d5581..e9b32ab8b6cf 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -131,6 +131,7 @@
SUBDIR += fugu
SUBDIR += gabber
SUBDIR += gaim
+ SUBDIR += gaim-rss-reader
SUBDIR += gale
SUBDIR += gatekeeper
SUBDIR += gdesklets-lt-network
diff --git a/net/gaim-rss-reader/Makefile b/net/gaim-rss-reader/Makefile
new file mode 100644
index 000000000000..cca42567ec4b
--- /dev/null
+++ b/net/gaim-rss-reader/Makefile
@@ -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>
diff --git a/net/gaim-rss-reader/distinfo b/net/gaim-rss-reader/distinfo
new file mode 100644
index 000000000000..dcf6378436c4
--- /dev/null
+++ b/net/gaim-rss-reader/distinfo
@@ -0,0 +1,2 @@
+MD5 (gaim-rss-reader-0.1.tar.gz) = 8a0bcc28b4a5b7d761adef997646c739
+SIZE (gaim-rss-reader-0.1.tar.gz) = 538076
diff --git a/net/gaim-rss-reader/files/patch-pixmaps_Makefile.in b/net/gaim-rss-reader/files/patch-pixmaps_Makefile.in
new file mode 100644
index 000000000000..3d2c86908ff5
--- /dev/null
+++ b/net/gaim-rss-reader/files/patch-pixmaps_Makefile.in
@@ -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
diff --git a/net/gaim-rss-reader/files/patch-src_channel.c b/net/gaim-rss-reader/files/patch-src_channel.c
new file mode 100644
index 000000000000..21768a403734
--- /dev/null
+++ b/net/gaim-rss-reader/files/patch-src_channel.c
@@ -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"))
diff --git a/net/gaim-rss-reader/files/patch-src_gaim-rss-reader.c b/net/gaim-rss-reader/files/patch-src_gaim-rss-reader.c
new file mode 100644
index 000000000000..48abcee43539
--- /dev/null
+++ b/net/gaim-rss-reader/files/patch-src_gaim-rss-reader.c
@@ -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");
diff --git a/net/gaim-rss-reader/pkg-descr b/net/gaim-rss-reader/pkg-descr
new file mode 100644
index 000000000000..d0c051badab4
--- /dev/null
+++ b/net/gaim-rss-reader/pkg-descr
@@ -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/
diff --git a/net/gaim-rss-reader/pkg-plist b/net/gaim-rss-reader/pkg-plist
new file mode 100644
index 000000000000..8daa479455b5
--- /dev/null
+++ b/net/gaim-rss-reader/pkg-plist
@@ -0,0 +1,2 @@
+lib/gaim/grr.so
+share/gnome/pixmaps/gaim/status/default/xml.png