aboutsummaryrefslogtreecommitdiffstats
path: root/www/tickr
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2013-03-15 22:30:21 +0800
committernivit <nivit@FreeBSD.org>2013-03-15 22:30:21 +0800
commit51da7949055902f796858625a946f7d88ba3b55f (patch)
tree66724e6bea23f40e8a690549173dab78558c8fc7 /www/tickr
parentd4252209aa877f1789d2eaba0fa1949473f6a782 (diff)
downloadfreebsd-ports-gnome-51da7949055902f796858625a946f7d88ba3b55f.tar.gz
freebsd-ports-gnome-51da7949055902f796858625a946f7d88ba3b55f.tar.zst
freebsd-ports-gnome-51da7949055902f796858625a946f7d88ba3b55f.zip
TICKR is a Free Open Source, GTK-based RSS READER application which displays
RSS FEEDS in a TICKER bar on your desktop. With a single click, you get the latest headlines scrolling in a thin window on your desktop, as what can be seen on News TV channels. WWW: http://newsrssticker.com/
Diffstat (limited to 'www/tickr')
-rw-r--r--www/tickr/Makefile35
-rw-r--r--www/tickr/distinfo2
-rw-r--r--www/tickr/files/patch-src__tickr__Makefile.in20
-rw-r--r--www/tickr/files/patch-src__tickr__tickr.h13
-rw-r--r--www/tickr/files/patch-src__tickr__tickr_socket.h10
-rw-r--r--www/tickr/files/patch-tickr.desktop14
-rw-r--r--www/tickr/pkg-descr6
-rw-r--r--www/tickr/pkg-plist10
8 files changed, 110 insertions, 0 deletions
diff --git a/www/tickr/Makefile b/www/tickr/Makefile
new file mode 100644
index 000000000000..5ce8f1a5a9ac
--- /dev/null
+++ b/www/tickr/Makefile
@@ -0,0 +1,35 @@
+# Created by: Nicola Vitale <nivit@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= tickr
+PORTVERSION= 0.6.3
+#PORTREVISION= 0
+CATEGORIES= www
+MASTER_SITES= http://www.newsrssticker.com/src/ \
+ LOCAL/nivit/
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= News RSS Ticker
+
+LICENSE= GPLv3
+
+GNU_CONFIGURE= yes
+
+PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S,${PREFIX}/,,}
+
+REINPLACE_ARGS= -e 's,%%PREFIX%%,${PREFIX},1' -i.bak
+
+USE_DOS2UNIX= yes
+USE_GNOME= desktopfileutils gtk20 libxml2
+USE_PKGCONFIG= build
+
+post-patch:
+ ${REINPLACE_CMD} ${WRKSRC}/${PORTNAME}.desktop ${WRKSRC}/src/tickr/tickr.h
+
+post-install:
+ ${LOCALBASE}/bin/desktop-file-install \
+ --mode=${SHAREMODE} --dir=${DESKTOPDIR} \
+ ${WRKSRC}/${PORTNAME}.desktop
+ -${LOCALBASE}/bin/update-desktop-database
+
+.include <bsd.port.mk>
diff --git a/www/tickr/distinfo b/www/tickr/distinfo
new file mode 100644
index 000000000000..6470cdf2c25c
--- /dev/null
+++ b/www/tickr/distinfo
@@ -0,0 +1,2 @@
+SHA256 (tickr-0.6.3.tar.gz) = 86b7cf8650be044882258dc68c6be78b53b5c560472bf1b4b3ad0a8d31a001ab
+SIZE (tickr-0.6.3.tar.gz) = 729487
diff --git a/www/tickr/files/patch-src__tickr__Makefile.in b/www/tickr/files/patch-src__tickr__Makefile.in
new file mode 100644
index 000000000000..6822de2346dc
--- /dev/null
+++ b/www/tickr/files/patch-src__tickr__Makefile.in
@@ -0,0 +1,20 @@
+--- ./src/tickr/Makefile.in.orig 2013-03-15 01:33:12.000000000 +0100
++++ ./src/tickr/Makefile.in 2013-03-15 01:33:47.000000000 +0100
+@@ -189,7 +189,7 @@
+ mkdir_p = @mkdir_p@
+ oldincludedir = @oldincludedir@
+ pdfdir = @pdfdir@
+-prefix = /usr
++prefix = @prefix@
+ program_transform_name = @program_transform_name@
+ psdir = @psdir@
+ sbindir = @sbindir@
+@@ -200,7 +200,7 @@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-tickrdir = $(datadir)/pixmaps
++tickrdir = $(prefix)/share/pixmaps/tickr
+ tickr_SOURCES = tickr_main.c\
+ tickr_resource.c\
+ tickr_render.c\
diff --git a/www/tickr/files/patch-src__tickr__tickr.h b/www/tickr/files/patch-src__tickr__tickr.h
new file mode 100644
index 000000000000..86a4b41f401c
--- /dev/null
+++ b/www/tickr/files/patch-src__tickr__tickr.h
@@ -0,0 +1,13 @@
+--- ./src/tickr/tickr.h.orig 2013-03-15 14:10:30.000000000 +0100
++++ ./src/tickr/tickr.h 2013-03-15 14:11:17.000000000 +0100
+@@ -178,8 +178,8 @@
+ # define STDERR_FILENAME2 "stderr2.txt"
+ #endif
+ #ifndef G_OS_WIN32
+-# define INSTALL_PATH "/usr/share/"APP_CMD
+-# define IMAGES_PATH INSTALL_PATH"/pixmaps"
++# define INSTALL_PATH "%%PREFIX%%/share/"
++# define IMAGES_PATH INSTALL_PATH"/pixmaps/"APP_CMD
+ #else
+ # define IMAGES_PATH APP_NAME /* actually not a path but a dir name */
+ #endif
diff --git a/www/tickr/files/patch-src__tickr__tickr_socket.h b/www/tickr/files/patch-src__tickr__tickr_socket.h
new file mode 100644
index 000000000000..b4e9769e46ed
--- /dev/null
+++ b/www/tickr/files/patch-src__tickr__tickr_socket.h
@@ -0,0 +1,10 @@
+--- ./src/tickr/tickr_socket.h.orig 2013-03-14 23:14:35.000000000 +0100
++++ ./src/tickr/tickr_socket.h 2013-03-14 23:15:07.000000000 +0100
+@@ -51,6 +51,7 @@
+ # include <winreg.h>
+ # include <shlobj.h>
+ #endif
++#include <netinet/in.h>
+ #include "../libetm-0.4.4/libetm.h"
+
+ #define CONNECT_TIMEOUT 5
diff --git a/www/tickr/files/patch-tickr.desktop b/www/tickr/files/patch-tickr.desktop
new file mode 100644
index 000000000000..ac8302dd9a63
--- /dev/null
+++ b/www/tickr/files/patch-tickr.desktop
@@ -0,0 +1,14 @@
+--- ./tickr.desktop.orig 2013-03-15 01:22:11.000000000 +0100
++++ ./tickr.desktop 2013-03-15 01:22:33.000000000 +0100
+@@ -4,8 +4,8 @@
+ Type=Application
+ Terminal=false
+ Name=Tickr - Feed Reader
+-Icon=/usr/share/tickr/pixmaps/tickr-icon.xpm
+-Exec=/usr/bin/tickr
++Icon=%%PREFIX%%/share/pixmaps/tickr/tickr-icon.xpm
++Exec=%%PREFIX%%/bin/tickr
+ Comment=GTK-based highly graphically-customizable Feed Ticker
+-Categories=GNOME;GTK;Network;News
++Categories=GNOME;GTK;Network;News;
+ Name[en_US]=Tickr - Feed Reader
diff --git a/www/tickr/pkg-descr b/www/tickr/pkg-descr
new file mode 100644
index 000000000000..6b9253e13d9a
--- /dev/null
+++ b/www/tickr/pkg-descr
@@ -0,0 +1,6 @@
+TICKR is a Free Open Source, GTK-based RSS READER application which displays
+RSS FEEDS in a TICKER bar on your desktop. With a single click, you get
+the latest headlines scrolling in a thin window on your desktop, as what
+can be seen on News TV channels.
+
+WWW: http://newsrssticker.com/
diff --git a/www/tickr/pkg-plist b/www/tickr/pkg-plist
new file mode 100644
index 000000000000..8d87bdc9c42b
--- /dev/null
+++ b/www/tickr/pkg-plist
@@ -0,0 +1,10 @@
+@comment $FreeBSD$
+bin/tickr
+share/pixmaps/tickr/tickr-icon.png
+share/pixmaps/tickr/tickr-icon.xpm
+share/pixmaps/tickr/tickr-logo.png
+share/pixmaps/tickr/tickr-rss-icon.png
+%%DESKTOPDIR%%/tickr.desktop
+@dirrm share/pixmaps/tickr
+@exec %%LOCALBASE%%/bin/update-desktop-database || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-desktop-database || /usr/bin/true