summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-11-14 19:25:02 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-11-14 19:25:02 +0000
commit3f34becf1464aef60d202c20968e2430da6bd00e (patch)
tree4f55365da49bbd049401b2816f83ab8c18424d4c /net
parentFix up mmc_unmap so that it does not try to search on the (unused) (diff)
Add straw, a GNOME/Python based RSS/RDF news feed aggregator.
PR: 59282 Submitted by: Jeremy Messenger <mezz7@cox.net>
Notes
Notes: svn path=/head/; revision=93972
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/straw/Makefile44
-rw-r--r--net/straw/distinfo1
-rw-r--r--net/straw/files/patch-Makefile61
-rw-r--r--net/straw/files/patch-src::lib::LookupManager.py14
-rw-r--r--net/straw/files/patch-src::lib::Main.py11
-rw-r--r--net/straw/files/patch-src::straw24
-rw-r--r--net/straw/pkg-descr5
-rw-r--r--net/straw/pkg-message6
-rw-r--r--net/straw/pkg-plist58
10 files changed, 225 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index ce71c487bdee..696d02319529 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -649,6 +649,7 @@
SUBDIR += ssltunnel-server
SUBDIR += sting
SUBDIR += stone
+ SUBDIR += straw
SUBDIR += subcalc
SUBDIR += suckblow
SUBDIR += sup
diff --git a/net/straw/Makefile b/net/straw/Makefile
new file mode 100644
index 000000000000..11a3d20a80f3
--- /dev/null
+++ b/net/straw/Makefile
@@ -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>
diff --git a/net/straw/distinfo b/net/straw/distinfo
new file mode 100644
index 000000000000..adf520409dc0
--- /dev/null
+++ b/net/straw/distinfo
@@ -0,0 +1 @@
+MD5 (straw-0.21.1.tar.bz2) = 504c2614d0a09ae8d484ad1568881b32
diff --git a/net/straw/files/patch-Makefile b/net/straw/files/patch-Makefile
new file mode 100644
index 000000000000..0f3825d48d3a
--- /dev/null
+++ b/net/straw/files/patch-Makefile
@@ -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:
diff --git a/net/straw/files/patch-src::lib::LookupManager.py b/net/straw/files/patch-src::lib::LookupManager.py
new file mode 100644
index 000000000000..72ab3b8fc82e
--- /dev/null
+++ b/net/straw/files/patch-src::lib::LookupManager.py
@@ -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
diff --git a/net/straw/files/patch-src::lib::Main.py b/net/straw/files/patch-src::lib::Main.py
new file mode 100644
index 000000000000..3657b72cc4eb
--- /dev/null
+++ b/net/straw/files/patch-src::lib::Main.py
@@ -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')
diff --git a/net/straw/files/patch-src::straw b/net/straw/files/patch-src::straw
new file mode 100644
index 000000000000..af6ce82249d0
--- /dev/null
+++ b/net/straw/files/patch-src::straw
@@ -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
+
diff --git a/net/straw/pkg-descr b/net/straw/pkg-descr
new file mode 100644
index 000000000000..bdfd05c7d1ed
--- /dev/null
+++ b/net/straw/pkg-descr
@@ -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/
diff --git a/net/straw/pkg-message b/net/straw/pkg-message
new file mode 100644
index 000000000000..f00a0a3e1a80
--- /dev/null
+++ b/net/straw/pkg-message
@@ -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.
+##
diff --git a/net/straw/pkg-plist b/net/straw/pkg-plist
new file mode 100644
index 000000000000..62332909baac
--- /dev/null
+++ b/net/straw/pkg-plist
@@ -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