Straw - a GTK RSS program

Jeremy Messenger mezz7 at cox.net
Sat Sep 13 21:18:22 PDT 2003


On Sat, 13 Sep 2003 23:46:09 -0400, Joe Marcus Clarke 
<marcus at marcuscom.com> wrote:

> On Sat, 2003-09-13 at 21:57, Manalive wrote:
>> Hello,
>>
>> I have been looking for a GTK RSS/news aggregator program like KRSS that
>> is already in the ports. There is none available in ports that has a GTK
>> version.
>>
>> However, there is one called Straw (http://www.nongnu.org/straw/). I am
>> interested in trying it out, but my skills aren't quite up to par to try
>> to compile and install from source. Is there anyone interested in
>> creating a port for this?
>
> Mezz was working on it, but this is a monster, and I think there are
> some threading issues keeping it from working correctly.

Yep, the issue is with ADNS stuff.. It might be because of not safe thread 
or something else, I just have no idea.. Anyway, I have the shar of Straw 
port in case if you, Manalive, want to try and poke with it. Here's an 
attach of straw.shar.

I personal am looking out on Liferea[1] now, which it's written in C and 
it just work better than Straw. Liferea is young and have some bugs. 
Liferea (news/liferea) is in the ports tree, but I have my own one here 
and it's more up to date. Someone beat me to put Liferea in the ports 
tree. If anyone want my Liferea port, just let me know.

[1] http://liferea.sourceforge.net/

Cheers,
Mezz

> Joe
>
>>
>> Regardless of what happens, thanks for Gnome!


-- 
bsdforums.org 's moderator, mezz.
-------------- next part --------------
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	straw
#	straw/files
#	straw/files/patch-Makefile
#	straw/files/patch-src::lib::Main.py
#	straw/files/patch-src::straw
#	straw/distinfo
#	straw/Makefile
#	straw/pkg-descr
#	straw/pkg-plist
#
echo c - straw
mkdir -p straw > /dev/null 2>&1
echo c - straw/files
mkdir -p straw/files > /dev/null 2>&1
echo x - straw/files/patch-Makefile
sed 's/^X//' >straw/files/patch-Makefile << 'END-of-straw/files/patch-Makefile'
X--- Makefile.orig	Mon Aug 18 14:35:19 2003
X+++ Makefile	Mon Aug 18 14:54:19 2003
X@@ -1,4 +1,4 @@
X-PYTHON ?= python2.2
X+PYTHON ?= python
X INSTALL ?= install
X RM ?= rm
X MSGFMT ?= msgfmt
X@@ -6,15 +6,15 @@
X XGETTEXT ?= xgettext
X FIND ?= find
X 
X-#PREFIX = /usr/local
X+PREFIX = %%X11PREFIX%%
X # autodetect GNOME prefix, change this if you want it elsewhere
X-PREFIX ?= `pkg-config libgnome-2.0 --variable=prefix || echo /usr/local`
X+#PREFIX ?= `pkg-config libgnome-2.0 --variable=prefix || echo /usr/local`
X 
X-LIBDIR = $(PREFIX)/lib/python2.2/site-packages/straw
X+LIBDIR = $(PREFIX)/share/gnome/straw
X BINDIR = $(PREFIX)/bin
X-DATADIR = $(PREFIX)/share/straw
X-APPLICATIONSDIR = $(PREFIX)/share/applications
X-ICONDIR = $(PREFIX)/share/pixmaps
X+DATADIR = $(PREFIX)/share/gnome/straw
X+APPLICATIONSDIR = $(PREFIX)/share/gnome/applications
X+ICONDIR = $(PREFIX)/share/gnome/pixmaps
X LOCALEDIR = $(PREFIX)/share/locale
X 
X POFILES := $(shell echo po/*.po)
X@@ -46,7 +46,7 @@
X 	$(INSTALL) -m 644 images/straw.png $(ICONDIR)
X 	$(INSTALL) -m 644 images/*.png $(DATADIR)
X 	$(INSTALL) -m 644 data/default_subscriptions.opml $(DATADIR)
X-	$(INSTALL) -m 644 src/lib/*.py[co] $(LIBDIR)
X+	$(INSTALL) -m 644 src/lib/*.py $(LIBDIR)
X 	$(INSTALL) -m 644 straw.desktop $(APPLICATIONSDIR)
X 	$(INSTALL) -m 644 images/straw.png $(ICONDIR)
X 	@mos='$(MOFILES)'; \
X@@ -54,7 +54,7 @@
X 	for mo in $$mos; do \
X 		mo=`basename $$mo`; \
X 		lang=`echo $$mo | sed -e 's/\.mo$$//'`; \
X-		$(INSTALL) -m 644 -D $$mo $(LOCALEDIR)/$$lang/LC_MESSAGES/straw.mo; \
X+		$(INSTALL) -m 644 $$mo $(LOCALEDIR)/$$lang/LC_MESSAGES/straw.mo; \
X 	done
X 
X clean:
END-of-straw/files/patch-Makefile
echo x - straw/files/patch-src::lib::Main.py
sed 's/^X//' >straw/files/patch-src::lib::Main.py << 'END-of-straw/files/patch-src::lib::Main.py'
X--- src/lib/Main.py.orig	Mon Aug 18 15:00:59 2003
X+++ src/lib/Main.py	Mon Aug 18 15:02:38 2003
X@@ -358,7 +358,7 @@
X         return os.environ["STRAW_DATA"]
X     h, t = os.path.split(os.path.split(os.path.abspath(sys.argv[0]))[0])
X     if t == 'bin':
X-        fp = os.path.join(h, 'share', 'straw')
X+        fp = os.path.join(h, 'share', 'gnome', 'straw')
X         if os.path.isdir(fp):
X             return fp
X         fp = os.path.join(h, 'lib', 'straw')
END-of-straw/files/patch-src::lib::Main.py
echo x - straw/files/patch-src::straw
sed 's/^X//' >straw/files/patch-src::straw << 'END-of-straw/files/patch-src::straw'
X--- src/straw.orig	Thu Aug 21 21:03:56 2003
X+++ src/straw	Thu Aug 21 21:05:18 2003
X@@ -1,4 +1,4 @@
X-#!/usr/bin/env python2.2
X+#!/usr/bin/env python
X #
X # Copyright (c) 2002 Juri Pakaste
X # You may use and distribute this software under the terms of the
X@@ -19,13 +19,14 @@
X             return sd
X     h, t = os.path.split(os.path.split(os.path.abspath(sys.argv[0]))[0])
X     if t == 'bin':
X-        libdir = os.path.join(h, 'lib')
X+        libdir = os.path.join(h, 'share', 'gnome')
X         fp = os.path.join(libdir, 'straw')
X         if os.path.isdir(fp):
X             return libdir
X     raise "FileNotFoundError", "couldn't find straw library dir"
X 
X sys.path.insert(0, find_straw_lib())
X+sys.path.insert(0, '%%PYTHON_SITELIBDIR%%')
X 
X import straw
X 
END-of-straw/files/patch-src::straw
echo x - straw/distinfo
sed 's/^X//' >straw/distinfo << 'END-of-straw/distinfo'
XMD5 (straw-0.19.2.tar.bz2) = c0b4e58aeb47ef1546dd73771900944a
END-of-straw/distinfo
echo x - straw/Makefile
sed 's/^X//' >straw/Makefile << 'END-of-straw/Makefile'
X# New ports collection makefile for:	straw
X# Date created:				06 March 2003
X# Whom:					Mezz <mezz7 at cox.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	straw
XPORTVERSION=	0.19.2
XCATEGORIES=	news gnome
XMASTER_SITES=	http://savannah.nongnu.org/download/straw/straw.pkg/${PORTVERSION}/
X
XMAINTAINER=	mezz7 at cox.net
XCOMMENT=	A GNOME 2 desktop weblog aggregator written in Python
X
XRUN_DEPENDS=	${PYXML} \
X		${PYTHON_SITELIBDIR}/adns.so:${PORTSDIR}/dns/py-adns \
X		${PYTHON_SITELIBDIR}/mx/DateTime/mxDateTime/__init__.py:${PORTSDIR}/lang/py-mx-base \
X		${PYTHON_SITELIBDIR}/gtk-2.0/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome2
X
XUSE_BZIP2=	yes
XUSE_PYTHON=	yes
XUSE_X_PREFIX=	yes
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
XUSE_GNOME=	libglade2
X
X.include <bsd.port.pre.mk>
X
X# pybsddb ships with python 2.3
X.if ${PYTHON_REL} < 230
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb3
X.else
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
X.endif
X
Xpost-patch:
X	${REINPLACE_CMD} -e 's|%%X11PREFIX%%|${PREFIX}|g ; \
X		s|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|g' \
X		${WRKSRC}/Makefile ${WRKSRC}/src/straw
X
X.include <bsd.port.post.mk>
END-of-straw/Makefile
echo x - straw/pkg-descr
sed 's/^X//' >straw/pkg-descr << 'END-of-straw/pkg-descr'
XStraw is a desktop news aggregator for the GNOME environment.
XIts aim is to be a faster, easier and more accessible way to
Xread news and blogs than the traditional browser.
X
XWWW: http://www.nongnu.org/straw/
END-of-straw/pkg-descr
echo x - straw/pkg-plist
sed 's/^X//' >straw/pkg-plist << 'END-of-straw/pkg-plist'
Xbin/straw
Xshare/gnome/applications/straw.desktop
Xshare/gnome/pixmaps/straw.png
Xshare/gnome/straw/Config.py
Xshare/gnome/straw/DashboardFrontend.py
Xshare/gnome/straw/Event.py
Xshare/gnome/straw/ExportSubscriptionsDialog.py
Xshare/gnome/straw/Feed.py
Xshare/gnome/straw/FeedDataRouter.py
Xshare/gnome/straw/FeedItems.py
Xshare/gnome/straw/FeedList.py
Xshare/gnome/straw/FindDialog.py
Xshare/gnome/straw/ImageCache.py
Xshare/gnome/straw/ImportSubscriptionsDialog.py
Xshare/gnome/straw/ItemStore.py
Xshare/gnome/straw/LookupManager.py
Xshare/gnome/straw/Main.py
Xshare/gnome/straw/MainWindow.py
Xshare/gnome/straw/NetworkConstants.py
Xshare/gnome/straw/OPML.py
Xshare/gnome/straw/OPMLExport.py
Xshare/gnome/straw/OPMLImport.py
Xshare/gnome/straw/OfflineDialog.py
Xshare/gnome/straw/ParsedSummary.py
Xshare/gnome/straw/PollManager.py
Xshare/gnome/straw/PreferencesDialog.py
Xshare/gnome/straw/QueueDict.py
Xshare/gnome/straw/StrawURLOpener.py
Xshare/gnome/straw/SubscribeDialog.py
Xshare/gnome/straw/SubscriptionsMergeDialog.py
Xshare/gnome/straw/SummaryItem.py
Xshare/gnome/straw/SummaryParser.py
Xshare/gnome/straw/SummaryParserCommon.py
Xshare/gnome/straw/SummaryParserMP.py
Xshare/gnome/straw/URLFetch.py
Xshare/gnome/straw/__init__.py
Xshare/gnome/straw/dashboard.py
Xshare/gnome/straw/default_subscriptions.opml
Xshare/gnome/straw/error.py
Xshare/gnome/straw/face-happy.png
Xshare/gnome/straw/face-sad.png
Xshare/gnome/straw/httplib_async.py
Xshare/gnome/straw/image-broken.png
Xshare/gnome/straw/image-waiting.png
Xshare/gnome/straw/offline.png
Xshare/gnome/straw/online.png
Xshare/gnome/straw/rssfinder.py
Xshare/gnome/straw/rssparser.py
Xshare/gnome/straw/straw.glade
Xshare/gnome/straw/straw.png
Xshare/locale/de/LC_MESSAGES/straw.mo
Xshare/locale/fi/LC_MESSAGES/straw.mo
Xshare/locale/fr/LC_MESSAGES/straw.mo
Xshare/locale/no/LC_MESSAGES/straw.mo
Xshare/locale/ru/LC_MESSAGES/straw.mo
X at dirrm share/gnome/straw
END-of-straw/pkg-plist
exit



More information about the freebsd-gnome mailing list