1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add straw, a GNOME/Python based RSS/RDF news feed aggregator.

PR:		59282
Submitted by:	Jeremy Messenger <mezz7@cox.net>
This commit is contained in:
Joe Marcus Clarke 2003-11-14 19:25:02 +00:00
parent 5116c8f075
commit 3f34becf14
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93972
10 changed files with 225 additions and 0 deletions

View File

@ -649,6 +649,7 @@
SUBDIR += ssltunnel-server
SUBDIR += sting
SUBDIR += stone
SUBDIR += straw
SUBDIR += subcalc
SUBDIR += suckblow
SUBDIR += sup

44
net/straw/Makefile Normal file
View File

@ -0,0 +1,44 @@
# New ports collection makefile for: straw
# Date created: 06 March 2003
# Whom: Mezz <mezz7@cox.net>
#
# $FreeBSD$
#
PORTNAME= straw
PORTVERSION= 0.21.1
CATEGORIES= net gnome
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}.pkg/${PORTVERSION}/
MAINTAINER= mezz7@cox.net
COMMENT= A GNOME 2 desktop weblog aggregator written in Python
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/mx/DateTime/mxDateTime/__init__.py:${PORTSDIR}/lang/py-mx-base \
${PYTHON_SITELIBDIR}/gtk-2.0/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome2
USE_BZIP2= yes
USE_GMAKE= yes
USE_PYTHON= yes
USE_X_PREFIX= yes
USE_REINPLACE= yes
USE_GNOME= libglade2
.include <bsd.port.pre.mk>
# pybsddb ships with python 2.3
.if ${PYTHON_REL} < 230
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb3
.else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%X11PREFIX%%|${PREFIX}|g ; \
s|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|g' \
${WRKSRC}/Makefile ${WRKSRC}/src/straw
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

1
net/straw/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (straw-0.21.1.tar.bz2) = 504c2614d0a09ae8d484ad1568881b32

View File

@ -0,0 +1,61 @@
--- Makefile.orig Thu Nov 13 21:53:33 2003
+++ Makefile Thu Nov 13 21:57:07 2003
@@ -1,4 +1,4 @@
-PYTHON ?= python2.2
+PYTHON ?= python
INSTALL ?= install
RM ?= rm
MSGFMT ?= msgfmt
@@ -6,16 +6,16 @@
XGETTEXT ?= xgettext
FIND ?= find
-#PREFIX = /usr/local
+PREFIX = %%X11PREFIX%%
# autodetect GNOME prefix, change this if you want it elsewhere
-PREFIX ?= `pkg-config libgnome-2.0 --variable=prefix || echo /usr/local`
+#PREFIX ?= `pkg-config libgnome-2.0 --variable=prefix || echo /usr/local`
# If you edited PYTHON above, edit this to the corresponding python lib dir
-LIBDIR = $(PREFIX)/lib/python2.2/site-packages/straw
+LIBDIR = $(PREFIX)/share/gnome/straw
BINDIR = $(PREFIX)/bin
-DATADIR = $(PREFIX)/share/straw
-APPLICATIONSDIR = $(PREFIX)/share/applications
-ICONDIR = $(PREFIX)/share/pixmaps
+DATADIR = $(PREFIX)/share/gnome/straw
+APPLICATIONSDIR = $(PREFIX)/share/gnome/applications
+ICONDIR = $(PREFIX)/share/gnome/pixmaps
LOCALEDIR = $(PREFIX)/share/locale
# change this to just "/etc" if you're installing in /usr
SYSCONFDIR = $(PREFIX)/etc
@@ -27,9 +27,9 @@
schema_DATA = data/straw.schemas
# modify this if you're running your own build environment (garnome/jhbuild)
# change it to "xml://path/to/gnome_build_env/etc/gconf/gconf.xml.defaults"
-GCONF_SCHEMA_CONFIG_SOURCE = xml::/etc/gconf/gconf.xml.defaults
+GCONF_SCHEMA_CONFIG_SOURCE = xml::$(SYSCONFDIR)/gconf/gconf.xml.defaults
GCONF_SCHEMA_FILE_DIR = $(SYSCONFDIR)/gconf/schemas/
-GCONFTOOL = gconftool-2
+GCONFTOOL = $(BINDIR)/gconftool-2
SCHEMADIR = $(GCONF_SCHEMA_FILE_DIR)
@@ -60,7 +60,7 @@
$(INSTALL) -m 644 images/straw.png $(ICONDIR)
$(INSTALL) -m 644 images/*.png $(DATADIR)
$(INSTALL) -m 644 data/default_subscriptions.opml $(DATADIR)
- $(INSTALL) -m 644 src/lib/*.py[co] $(LIBDIR)
+ $(INSTALL) -m 644 src/lib/*.py $(LIBDIR)
$(INSTALL) -m 644 straw.desktop $(APPLICATIONSDIR)
$(INSTALL) -m 644 data/straw.schemas $(SCHEMADIR)
$(INSTALL) -m 644 images/straw.png $(ICONDIR)
@@ -69,7 +69,7 @@
for mo in $$mos; do \
mo=`basename $$mo`; \
lang=`echo $$mo | sed -e 's/\.mo$$//'`; \
- $(INSTALL) -m 644 -D $$mo $(LOCALEDIR)/$$lang/LC_MESSAGES/straw.mo; \
+ $(INSTALL) -m 644 $$mo $(LOCALEDIR)/$$lang/LC_MESSAGES/straw.mo; \
done
clean:

View File

@ -0,0 +1,14 @@
--- src/lib/LookupManager.py.orig Thu Nov 13 23:37:03 2003
+++ src/lib/LookupManager.py Thu Nov 13 23:38:28 2003
@@ -6,9 +6,9 @@
from error import log
try:
import adns, ADNS
- _have_adns = True
+ _have_adns = False
except ImportError:
- log("No ADNS library found, using synchronous name lookups.")
+ #log("No ADNS library found, using synchronous name lookups.")
_have_adns = False
MAX_TIMES = 3

View File

@ -0,0 +1,11 @@
--- src/lib/Main.py.orig Thu Nov 13 21:57:57 2003
+++ src/lib/Main.py Thu Nov 13 21:58:51 2003
@@ -360,7 +360,7 @@
return os.environ["STRAW_DATA"]
h, t = os.path.split(os.path.split(os.path.abspath(sys.argv[0]))[0])
if t == 'bin':
- fp = os.path.join(h, 'share', 'straw')
+ fp = os.path.join(h, 'share', 'gnome', 'straw')
if os.path.isdir(fp):
return fp
fp = os.path.join(h, 'lib', 'straw')

View File

@ -0,0 +1,24 @@
--- src/straw.orig Thu Nov 13 21:59:51 2003
+++ src/straw Thu Nov 13 22:01:07 2003
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.2
+#!/usr/bin/env python
#
# Copyright (c) 2002 Juri Pakaste
# You may use and distribute this software under the terms of the
@@ -19,13 +19,14 @@
return sd
h, t = os.path.split(os.path.split(os.path.abspath(sys.argv[0]))[0])
if t == 'bin':
- libdir = os.path.join(h, 'lib')
+ libdir = os.path.join(h, 'share', 'gnome')
fp = os.path.join(libdir, 'straw')
if os.path.isdir(fp):
return libdir
raise "FileNotFoundError", "couldn't find straw library dir"
sys.path.insert(0, find_straw_lib())
+sys.path.insert(0, '%%PYTHON_SITELIBDIR%%')
import straw

5
net/straw/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
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.
WWW: http://www.nongnu.org/straw/

6
net/straw/pkg-message Normal file
View File

@ -0,0 +1,6 @@
##
The ADNS feature has been disabled, because it will never work on FreeBSD. There
has a different function that will do the lookup without ADNS, although ADNS
should be more smoother. The problem with ADNS is possible has to do with the
thread safe or something else.
##

58
net/straw/pkg-plist Normal file
View File

@ -0,0 +1,58 @@
bin/straw
etc/gconf/schemas/straw.schemas
share/gnome/applications/straw.desktop
share/gnome/pixmaps/straw.png
share/gnome/straw/Config.py
share/gnome/straw/DashboardFrontend.py
share/gnome/straw/Event.py
share/gnome/straw/ExportSubscriptionsDialog.py
share/gnome/straw/Feed.py
share/gnome/straw/FeedDataRouter.py
share/gnome/straw/FeedItems.py
share/gnome/straw/FeedList.py
share/gnome/straw/FeedPropertiesDialog.py
share/gnome/straw/FindDialog.py
share/gnome/straw/ImageCache.py
share/gnome/straw/ImportSubscriptionsDialog.py
share/gnome/straw/ItemStore.py
share/gnome/straw/LookupManager.py
share/gnome/straw/Main.py
share/gnome/straw/MainWindow.py
share/gnome/straw/MessageManager.py
share/gnome/straw/NetworkConstants.py
share/gnome/straw/OPML.py
share/gnome/straw/OPMLExport.py
share/gnome/straw/OPMLImport.py
share/gnome/straw/ParsedSummary.py
share/gnome/straw/PollManager.py
share/gnome/straw/PreferencesDialog.py
share/gnome/straw/QueueDict.py
share/gnome/straw/StrawURLOpener.py
share/gnome/straw/SubscribeDialog.py
share/gnome/straw/SummaryItem.py
share/gnome/straw/SummaryParser.py
share/gnome/straw/URLFetch.py
share/gnome/straw/__init__.py
share/gnome/straw/dashboard.py
share/gnome/straw/default_subscriptions.opml
share/gnome/straw/error.py
share/gnome/straw/face-happy.png
share/gnome/straw/face-sad.png
share/gnome/straw/hig_alert.py
share/gnome/straw/httplib_async.py
share/gnome/straw/image-broken.png
share/gnome/straw/image-waiting.png
share/gnome/straw/offline.png
share/gnome/straw/online.png
share/gnome/straw/rssfinder.py
share/gnome/straw/rssparser.py
share/gnome/straw/straw.glade
share/gnome/straw/straw.png
share/gnome/straw/utils.py
share/locale/de/LC_MESSAGES/straw.mo
share/locale/es/LC_MESSAGES/straw.mo
share/locale/fi/LC_MESSAGES/straw.mo
share/locale/fr/LC_MESSAGES/straw.mo
share/locale/no/LC_MESSAGES/straw.mo
share/locale/ru/LC_MESSAGES/straw.mo
@dirrm share/gnome/straw