ports/59282: New port: news/straw or net/straw, A GNOME 2 desktop weblog aggregator written in Python

Jeremy Messenger mezz7 at cox.net
Fri Nov 14 08:40:21 UTC 2003


>Number:         59282
>Category:       ports
>Synopsis:       New port: news/straw or net/straw, A GNOME 2 desktop weblog aggregator written in Python
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 14 00:40:18 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mezz
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ns1.mezzweb.com 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Aug 13
22:39:47 CDT 2003 mezz at mezz.mezzweb.com:/usr/obj/usr/src/sys/BSDROCKS i386

>Description:
Straw port is back!

Straw is a desktop news aggregator for the GNOME environment. Its aim is to be a
faster, easier and more accessible way to read news and blogs than the
traditional browser.

Yep, it has finally work on FreeBSD. There have two different lookup options,
one depend on ADNS and other its own lookup function.

>How-To-Repeat:
n/a

>Fix:
Some feedbacks are what I would like to see:

	- I am not sure which it fits in either news
	  or net category. The Liferea is in the net
	  category, so I am guessing it's more like
	  in the net category.
	- Can anyone check on the RUN_DEPENDS of
	  py-bsddb and py-bsddb3. I hope, it's fine.
	- It would be nice if anyone can clean the
	  grammar in the pkg-message if it needs.

Thanks!

--- straw.shar begins here ---
# 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/files/patch-src::lib::LookupManager.py
#	straw/distinfo
#	straw/Makefile
#	straw/pkg-descr
#	straw/pkg-plist
#	straw/pkg-message
#
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	Thu Nov 13 21:53:33 2003
X+++ Makefile	Thu Nov 13 21:57:07 2003
X@@ -1,4 +1,4 @@
X-PYTHON ?= python2.2
X+PYTHON ?= python
X INSTALL ?= install
X RM ?= rm
X MSGFMT ?= msgfmt
X@@ -6,16 +6,16 @@
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 # If you edited PYTHON above, edit this to the corresponding python lib dir
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 # change this to just "/etc" if you're installing in /usr
X SYSCONFDIR = $(PREFIX)/etc
X@@ -27,9 +27,9 @@
X schema_DATA = data/straw.schemas 
X # modify this if you're running your own build environment (garnome/jhbuild)
X # change it to "xml://path/to/gnome_build_env/etc/gconf/gconf.xml.defaults"
X-GCONF_SCHEMA_CONFIG_SOURCE = xml::/etc/gconf/gconf.xml.defaults 
X+GCONF_SCHEMA_CONFIG_SOURCE = xml::$(SYSCONFDIR)/gconf/gconf.xml.defaults 
X GCONF_SCHEMA_FILE_DIR = $(SYSCONFDIR)/gconf/schemas/
X-GCONFTOOL = gconftool-2
X+GCONFTOOL = $(BINDIR)/gconftool-2
X 
X SCHEMADIR = $(GCONF_SCHEMA_FILE_DIR)
X 
X@@ -60,7 +60,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 data/straw.schemas $(SCHEMADIR)
X 	$(INSTALL) -m 644 images/straw.png $(ICONDIR)
X@@ -69,7 +69,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	Thu Nov 13 21:57:57 2003
X+++ src/lib/Main.py	Thu Nov 13 21:58:51 2003
X@@ -360,7 +360,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 Nov 13 21:59:51 2003
X+++ src/straw	Thu Nov 13 22:01:07 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/files/patch-src::lib::LookupManager.py
sed 's/^X//' >straw/files/patch-src::lib::LookupManager.py << 'END-of-straw/files/patch-src::lib::LookupManager.py'
X--- src/lib/LookupManager.py.orig	Thu Nov 13 23:37:03 2003
X+++ src/lib/LookupManager.py	Thu Nov 13 23:38:28 2003
X@@ -6,9 +6,9 @@
X from error import log
X try:
X     import adns, ADNS
X-    _have_adns = True
X+    _have_adns = False
X except ImportError:
X-    log("No ADNS library found, using synchronous name lookups.")
X+    #log("No ADNS library found, using synchronous name lookups.")
X     _have_adns = False
X 
X MAX_TIMES = 3
END-of-straw/files/patch-src::lib::LookupManager.py
echo x - straw/distinfo
sed 's/^X//' >straw/distinfo << 'END-of-straw/distinfo'
XMD5 (straw-0.21.1.tar.bz2) = 504c2614d0a09ae8d484ad1568881b32
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.21.1
XCATEGORIES=	net gnome
XMASTER_SITES=	${MASTER_SITE_SAVANNAH}
XMASTER_SITE_SUBDIR=	${PORTNAME}/${PORTNAME}.pkg/${PORTVERSION}/
X
XMAINTAINER=	mezz7 at cox.net
XCOMMENT=	A GNOME 2 desktop weblog aggregator written in Python
X
XRUN_DEPENDS=	${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_GMAKE=	yes
XUSE_PYTHON=	yes
XUSE_X_PREFIX=	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
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
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. Its aim is to be a
Xfaster, easier and more accessible way to read news and blogs than the
Xtraditional 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
Xetc/gconf/schemas/straw.schemas
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/FeedPropertiesDialog.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/MessageManager.py
Xshare/gnome/straw/NetworkConstants.py
Xshare/gnome/straw/OPML.py
Xshare/gnome/straw/OPMLExport.py
Xshare/gnome/straw/OPMLImport.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/SummaryItem.py
Xshare/gnome/straw/SummaryParser.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/hig_alert.py
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/gnome/straw/utils.py
Xshare/locale/de/LC_MESSAGES/straw.mo
Xshare/locale/es/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
echo x - straw/pkg-message
sed 's/^X//' >straw/pkg-message << 'END-of-straw/pkg-message'
X##
XThe ADNS feature has been disabled, because it will never work on FreeBSD. There
Xhas a different function that will do the lookup without ADNS, although ADNS
Xshould be more smoother. The problem with ADNS is possible has to do with the
Xthread safe or something else.
X##
END-of-straw/pkg-message
exit
--- straw.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list