summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/liferea/Makefile94
-rw-r--r--net/liferea/distinfo3
-rw-r--r--net/liferea/files/patch-5.X_build_fix10
-rw-r--r--net/liferea/files/patch-dont_install_wrapper_script22
-rw-r--r--net/liferea/files/patch-src-liferea.in37
-rw-r--r--net/liferea/pkg-descr7
-rw-r--r--net/liferea/pkg-plist116
7 files changed, 289 insertions, 0 deletions
diff --git a/net/liferea/Makefile b/net/liferea/Makefile
new file mode 100644
index 000000000..0f6fd38b8
--- /dev/null
+++ b/net/liferea/Makefile
@@ -0,0 +1,94 @@
+# Ports collection Makefile for: liferea
+# Date created: 28 August 2003
+# Whom: Hye-Shik Chang <perky@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= liferea
+PORTVERSION= 1.0.16
+PORTREVISION= 1
+CATEGORIES= net gnome
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= liferea
+
+MAINTAINER= pav@FreeBSD.org
+COMMENT= Simple RSS/RDF feed reader
+
+USE_X_PREFIX= yes
+USE_GECKO= mozilla firefox
+USE_GNOME= gnomeprefix gnomehack libgtkhtml
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --mandir=${PREFIX}/man
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+MAN1= liferea.1
+GCONF_SCHEMAS= liferea.schemas
+
+OPTIONS= DBUS "Enable dbus support" on \
+ XPI "Firefox extension to subscribe feeds (req. dbus)" off \
+ MOZILLA "Use Mozilla for rendering" off \
+ XULRUNNER "Use Xulrunner for rendering" off
+
+.include <bsd.port.pre.mk>
+
+.ifdef WITH_MOZILLA
+.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
+CONFIGURE_ARGS+=--enable-gecko=${GECKO}
+PLIST_SUB= MOZ=""
+.else
+CONFIGURE_ARGS+=--disable-gecko
+PLIST_SUB= MOZ="@comment "
+.endif
+
+.ifdef WITH_XPI
+PATCH_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
+RUN_DEPENDS+= firefox:${PORTSDIR}/www/firefox
+PLIST_SUB+= XPI=""
+.else
+PLIST_SUB+= XPI="@comment "
+.endif
+
+.ifdef WITH_XULRUNNER
+BUILD_DEPENDS+= xulrunner:${PORTSDIR}/www/xulrunner
+RUN_DEPENDS+= xulrunner:${PORTSDIR}/www/xulrunner
+PLIST_SUB+= XUL=""
+.else
+CONFIGURE_ARGS+=--disable-xulrunner
+PLIST_SUB+= XUL="@comment "
+.endif
+
+.ifdef WITHOUT_DBUS
+CONFIGURE_ARGS+=--disable-dbus
+.else
+LIB_DEPENDS+= dbus-1.2:${PORTSDIR}/devel/dbus
+.endif
+
+post-patch:
+.ifdef WITH_MOZILLA
+ ${REINPLACE_CMD} -e 's,/usr/lib/mozilla,${LOCALBASE}/lib/${GECKO},g ; \
+ s,%FREEBSD_MOZILLA_HOME%,${LOCALBASE}/lib/${GECKO},' \
+ ${WRKSRC}/src/liferea.in
+ ${REINPLACE_CMD} -e 's,firefox-,$$gecko_provider-,g' \
+ -e 's,\(gecko_provider=\).*$$,\1${GECKO},' \
+ -e 's,{print $$1},{print $$2},g' \
+ ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e 's|gtk_moz_embed_set_comp_path(NULL)|gtk_moz_embed_set_comp_path("${X11BASE}/lib/${GECKO}")|' \
+ ${WRKSRC}/src/mozilla/mozilla.c
+.endif
+.ifdef WITH_XPI
+ @${MKDIR} ${WRKDIR}/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}
+ @${UNZIP_CMD} -q -d ${WRKDIR}/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab} ${WRKSRC}/feedbag.xpi
+.endif
+
+post-install:
+.ifdef WITH_XPI
+ ${MKDIR} ${PREFIX}/lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome
+ ${INSTALL_DATA} ${WRKDIR}/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome/feedbag.jar ${PREFIX}/lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome
+ ${INSTALL_DATA} ${WRKDIR}/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome.manifest ${PREFIX}/lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}
+ ${INSTALL_DATA} ${WRKDIR}/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/install.rdf ${PREFIX}/lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/liferea/distinfo b/net/liferea/distinfo
new file mode 100644
index 000000000..523d57b05
--- /dev/null
+++ b/net/liferea/distinfo
@@ -0,0 +1,3 @@
+MD5 (liferea-1.0.16.tar.gz) = 99d1655499a05a46bea0193576ddfde1
+SHA256 (liferea-1.0.16.tar.gz) = 591d7d6b6ea6d8c0a90c68418d1e65076bbfe32976f00d229357f45176e3ebe4
+SIZE (liferea-1.0.16.tar.gz) = 1575690
diff --git a/net/liferea/files/patch-5.X_build_fix b/net/liferea/files/patch-5.X_build_fix
new file mode 100644
index 000000000..a5c26d0ae
--- /dev/null
+++ b/net/liferea/files/patch-5.X_build_fix
@@ -0,0 +1,10 @@
+--- src/net/zlib_interface.c.orig Tue Jan 24 22:28:04 2006
++++ src/net/zlib_interface.c Sat May 20 22:46:03 2006
+@@ -29,6 +29,7 @@
+ #include <stdio.h>
+ #include <zlib.h>
+ #include <string.h>
++#include <sys/types.h>
+
+ int JG_ZLIB_DEBUG = 1;
+
diff --git a/net/liferea/files/patch-dont_install_wrapper_script b/net/liferea/files/patch-dont_install_wrapper_script
new file mode 100644
index 000000000..d050e8eff
--- /dev/null
+++ b/net/liferea/files/patch-dont_install_wrapper_script
@@ -0,0 +1,22 @@
+--- src/Makefile.in.orig Mon May 29 17:07:31 2006
++++ src/Makefile.in Mon May 29 17:08:38 2006
+@@ -204,7 +204,7 @@
+
+
+ bin_PROGRAMS = liferea-bin
+-bin_SCRIPTS = liferea liferea-add-feed
++bin_SCRIPTS = liferea-add-feed
+
+ liferea_bin_SOURCES = \
+ atom10.c atom10.h \
+@@ -374,8 +374,8 @@
+ || test -f $$p1 \
+ ; then \
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+- echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
+- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
++ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/liferea"; \
++ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/liferea || exit 1; \
+ else :; fi; \
+ done
+
diff --git a/net/liferea/files/patch-src-liferea.in b/net/liferea/files/patch-src-liferea.in
new file mode 100644
index 000000000..79bda00fe
--- /dev/null
+++ b/net/liferea/files/patch-src-liferea.in
@@ -0,0 +1,37 @@
+--- src/liferea.in.orig Sun Mar 19 03:50:55 2006
++++ src/liferea.in Tue Mar 21 09:56:50 2006
+@@ -22,15 +22,17 @@
+
+ look_for_mozilla() {
+
+- results=`ls -1d $1 2>/dev/null | sort -n`
+- while [ -n "$results" ]
+- do
+- path=`echo "$results" | tail -n 1`
+- results=`echo "$results" | grep -v $path`
+- path=`dirname $path` # strip comm.jar
+- path=`dirname $path` # strip chrome
+- run_with_mozilla $path
+-
++ for p in $1; do
++ results=`ls -1d $p 2>/dev/null | sort -n`
++ while [ -n "$results" ]
++ do
++ path=`echo "$results" | tail -n 1`
++ results=`echo "$results" | grep -v $path`
++ path=`dirname $path` # strip comm.jar
++ path=`dirname $path` # strip chrome
++ run_with_mozilla $path
++
++ done
+ done
+ }
+
+@@ -39,6 +41,7 @@
+ fi
+
+ @MOZILLA_LIB_DIR_SEARCH@
++look_for_mozilla "%FREEBSD_MOZILLA_HOME%/chrome/comm.jar"
+ look_for_mozilla "/usr/lib/mozilla*/chrome/comm.jar"
+ look_for_mozilla "/usr/lib64/mozilla*/chrome/comm.jar"
+ look_for_mozilla "/usr/local/mozilla*/chrome/comm.jar"
diff --git a/net/liferea/pkg-descr b/net/liferea/pkg-descr
new file mode 100644
index 000000000..3f0b1f4cf
--- /dev/null
+++ b/net/liferea/pkg-descr
@@ -0,0 +1,7 @@
+Liferea is a simple FeedReader clone. It is a reader for RSS/RDF
+feeds. The problem with FeedReader: for now its only available for
+Windows. There are some projects for GNU/Linux or Unices, but no
+satisfying solutions for GTK/GNOME. Therefore I started to write
+this program. Liferea is an abbreviation for Linux Feed Reader.
+
+WWW: http://liferea.sourceforge.net/
diff --git a/net/liferea/pkg-plist b/net/liferea/pkg-plist
new file mode 100644
index 000000000..9f2f0a3c9
--- /dev/null
+++ b/net/liferea/pkg-plist
@@ -0,0 +1,116 @@
+bin/liferea
+bin/liferea-add-feed
+%%XPI%%lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome/feedbag.jar
+%%XPI%%lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome.manifest
+%%XPI%%lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/install.rdf
+lib/liferea/liblihtmlg.la
+lib/liferea/liblihtmlg.so
+%%MOZ%%lib/liferea/liblihtmlm.la
+%%MOZ%%lib/liferea/liblihtmlm.so
+%%XUL%%lib/liferea/liblihtmlx.la
+%%XUL%%lib/liferea/liblihtmlx.so
+share/gnome/applications/liferea.desktop
+share/gnome/liferea/css/adblock.css
+share/gnome/liferea/css/liferea.css
+share/gnome/liferea/css/liferea2.css
+share/gnome/liferea/doc/html/about_de.html
+share/gnome/liferea/doc/html/about_en.html
+share/gnome/liferea/doc/html/enclosures_de.html
+share/gnome/liferea/doc/html/enclosures_en.html
+share/gnome/liferea/doc/html/faq_de.html
+share/gnome/liferea/doc/html/faq_en.html
+share/gnome/liferea/doc/html/faq_ja.html
+share/gnome/liferea/doc/html/folders_de.html
+share/gnome/liferea/doc/html/folders_en.html
+share/gnome/liferea/doc/html/headlines_de.html
+share/gnome/liferea/doc/html/headlines_en.html
+share/gnome/liferea/doc/html/help_feed_available.png
+share/gnome/liferea/doc/html/help_feed_error.png
+share/gnome/liferea/doc/html/help_feed_ocs.png
+share/gnome/liferea/doc/html/help_feed_prop_auth_1.0.0.png
+share/gnome/liferea/doc/html/help_feed_prop_cache_1.0.0.png
+share/gnome/liferea/doc/html/help_feed_prop_enclosures_1.0.0.png
+share/gnome/liferea/doc/html/help_feed_prop_general_1.0.0.png
+share/gnome/liferea/doc/html/help_feed_prop_source_1.0.0.png
+share/gnome/liferea/doc/html/help_item_flag.png
+share/gnome/liferea/doc/html/help_prefs_browser_1.0.0.png
+share/gnome/liferea/doc/html/help_prefs_enclosures_1.0.0.png
+share/gnome/liferea/doc/html/help_prefs_feeds_1.0.0.png
+share/gnome/liferea/doc/html/help_prefs_folders_1.0.0.png
+share/gnome/liferea/doc/html/help_prefs_gui_1.0.0.png
+share/gnome/liferea/doc/html/help_prefs_headlines_1.0.0.png
+share/gnome/liferea/doc/html/help_prefs_proxy_1.0.0.png
+share/gnome/liferea/doc/html/help_search_1.0.0.png
+share/gnome/liferea/doc/html/help_subscribe_1.0.0.png
+share/gnome/liferea/doc/html/help_vfolder_1.0.0.png
+share/gnome/liferea/doc/html/preferences_de.html
+share/gnome/liferea/doc/html/preferences_en.html
+share/gnome/liferea/doc/html/reference.css
+share/gnome/liferea/doc/html/reference_de.html
+share/gnome/liferea/doc/html/reference_en.html
+share/gnome/liferea/doc/html/reference_ja.html
+share/gnome/liferea/doc/html/reference_nl.html
+share/gnome/liferea/doc/html/searching_de.html
+share/gnome/liferea/doc/html/searching_en.html
+share/gnome/liferea/doc/html/subscriptions_de.html
+share/gnome/liferea/doc/html/subscriptions_en.html
+share/gnome/liferea/doc/html/topics_de.html
+share/gnome/liferea/doc/html/topics_en.html
+share/gnome/liferea/doc/html/topics_ja.html
+share/gnome/liferea/doc/html/updating_de.html
+share/gnome/liferea/doc/html/updating_en.html
+share/gnome/liferea/dtd/html.ent
+share/gnome/liferea/opml/feedlist.opml
+share/gnome/liferea/opml/feedlist_de.opml
+share/gnome/liferea/opml/feedlist_es.opml
+share/gnome/liferea/opml/feedlist_fr.opml
+share/gnome/liferea/opml/feedlist_nl.opml
+share/gnome/liferea/opml/feedlist_pl.opml
+share/gnome/liferea/opml/feedlist_sk.opml
+share/gnome/liferea/pixmaps/arrow.png
+share/gnome/liferea/pixmaps/available.png
+share/gnome/liferea/pixmaps/available_offline.png
+share/gnome/liferea/pixmaps/directory.png
+share/gnome/liferea/pixmaps/edit.png
+share/gnome/liferea/pixmaps/empty.png
+share/gnome/liferea/pixmaps/empty_offline.png
+share/gnome/liferea/pixmaps/flag.png
+share/gnome/liferea/pixmaps/liferea.png
+share/gnome/liferea/pixmaps/ocs.png
+share/gnome/liferea/pixmaps/offline.png
+share/gnome/liferea/pixmaps/online.png
+share/gnome/liferea/pixmaps/read.xpm
+share/gnome/liferea/pixmaps/technorati.png
+share/gnome/liferea/pixmaps/unread.png
+share/gnome/liferea/pixmaps/vfolder.png
+share/gnome/pixmaps/liferea.png
+share/locale/bg/LC_MESSAGES/liferea.mo
+share/locale/ca/LC_MESSAGES/liferea.mo
+share/locale/cs/LC_MESSAGES/liferea.mo
+share/locale/de/LC_MESSAGES/liferea.mo
+share/locale/es/LC_MESSAGES/liferea.mo
+share/locale/fi/LC_MESSAGES/liferea.mo
+share/locale/fr/LC_MESSAGES/liferea.mo
+share/locale/it/LC_MESSAGES/liferea.mo
+share/locale/ja/LC_MESSAGES/liferea.mo
+share/locale/ko/LC_MESSAGES/liferea.mo
+share/locale/mk/LC_MESSAGES/liferea.mo
+share/locale/nl/LC_MESSAGES/liferea.mo
+share/locale/pl/LC_MESSAGES/liferea.mo
+share/locale/pt_BR/LC_MESSAGES/liferea.mo
+share/locale/ro/LC_MESSAGES/liferea.mo
+share/locale/ru/LC_MESSAGES/liferea.mo
+share/locale/sk/LC_MESSAGES/liferea.mo
+share/locale/sv/LC_MESSAGES/liferea.mo
+share/locale/zh_CN/LC_MESSAGES/liferea.mo
+share/locale/zh_TW/LC_MESSAGES/liferea.mo
+@dirrm share/gnome/liferea/pixmaps
+@dirrm share/gnome/liferea/opml
+@dirrm share/gnome/liferea/dtd
+@dirrm share/gnome/liferea/doc/html
+@dirrm share/gnome/liferea/doc
+@dirrm share/gnome/liferea/css
+@dirrm share/gnome/liferea
+@dirrm lib/liferea
+%%XPI%%@dirrm lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome
+%%XPI%%@dirrm lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}