summaryrefslogtreecommitdiff
path: root/misc/uf-view
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-05-30 20:19:32 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-05-30 20:19:32 +0000
commit246dffc5878dec9571b501e3e5cc4d417e965db3 (patch)
tree24d05c11f2826d40c5403772e3e0dc710427b219 /misc/uf-view
parentUpdate to 4141 (diff)
Add uf-view 1.4.2, a gTK+ viewer for the User Friendly and several
other popular comics. PR: 27071 Submitted by: Jonathan McGee <mcgee@mcgee.student.umd.edu>
Notes
Notes: svn path=/head/; revision=43328
Diffstat (limited to 'misc/uf-view')
-rw-r--r--misc/uf-view/Makefile29
-rw-r--r--misc/uf-view/distinfo1
-rw-r--r--misc/uf-view/files/patch-Makefile.in14
-rw-r--r--misc/uf-view/files/patch-uf-view.c49
-rw-r--r--misc/uf-view/pkg-comment1
-rw-r--r--misc/uf-view/pkg-descr6
-rw-r--r--misc/uf-view/pkg-plist6
7 files changed, 106 insertions, 0 deletions
diff --git a/misc/uf-view/Makefile b/misc/uf-view/Makefile
new file mode 100644
index 000000000000..7df7dcdf88b7
--- /dev/null
+++ b/misc/uf-view/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: uf-view
+# Date created: 5 December 1994
+# Whom: Jonathan McGee <mcgee@mcgee.student.umd.edu>
+#
+# $FreeBSD$
+#
+
+PORTNAME= uf-view
+PORTVERSION= 1.4.2
+CATEGORIES= misc
+MASTER_SITES= http://hadess.net/files/
+
+MAINTAINER= mcgee@wam.umd.edu
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GNOME= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
+ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+
+.include <bsd.port.mk>
diff --git a/misc/uf-view/distinfo b/misc/uf-view/distinfo
new file mode 100644
index 000000000000..00f9d4d751a7
--- /dev/null
+++ b/misc/uf-view/distinfo
@@ -0,0 +1 @@
+MD5 (uf-view-1.4.2.tar.gz) = 36917754a13b06b0bbe183b7cab3a443
diff --git a/misc/uf-view/files/patch-Makefile.in b/misc/uf-view/files/patch-Makefile.in
new file mode 100644
index 000000000000..fc359058fb76
--- /dev/null
+++ b/misc/uf-view/files/patch-Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- Makefile.in 2001/05/30 20:07:13 1.1
++++ Makefile.in 2001/05/30 20:07:31
+@@ -120,7 +120,7 @@
+
+ uf_view_SOURCES = uf-gui.c uf-gui.h uf-view.c uf-view.h
+
+-uf_view_LDADD = -lgnomevfs $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS)
++uf_view_LDADD = -lgnomevfs $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) $(PTHREAD_LIB)
+
+ EXTRA_DIST = uf-view.desktop $(foo_DATA) uf-view.spec.in
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
diff --git a/misc/uf-view/files/patch-uf-view.c b/misc/uf-view/files/patch-uf-view.c
new file mode 100644
index 000000000000..911f76bce7ed
--- /dev/null
+++ b/misc/uf-view/files/patch-uf-view.c
@@ -0,0 +1,49 @@
+
+$FreeBSD$
+
+--- uf-view.c.orig Sun May 13 21:13:07 2001
++++ uf-view.c Wed May 30 22:57:40 2001
+@@ -98,7 +98,7 @@
+ if (url != NULL)
+ {
+ gchar foo[100] = "/tmp/ufXXXXXX";
+- mktemp(foo);
++ mkstemp(foo);
+
+ appbar_send_msg(_("Fetching %s"), url);
+
+@@ -206,6 +206,7 @@
+ const gchar *authors[] = {
+ ("Bastien Nocera <hadess@hadess.net>"),
+ ("Robert Brady <rwb197@ecs.soton.ac.uk>"),
++ ("Drew Ogle <daliegri@wam.umd.edu>"),
+ NULL,
+ };
+
+@@ -239,7 +240,7 @@
+ void on_today_button_clicked(GtkWidget * button, gpointer user_data)
+ {
+ struct tm *time_struct;
+- glong curtime;
++ time_t curtime;
+ gint month, year, day;
+
+ curtime = time(0);
+@@ -383,7 +384,7 @@
+ gchar foo[100] = "/tmp/ufXXXXXX";
+
+ /* Initialise */
+- mktemp(foo);
++ mkstemp(foo);
+
+ if (date_error(year, month, day, 1997, 9, 17) == TRUE) {
+ show_error(_("User Friendly did not exist at that time.\nPlease choose a later date."));
+@@ -466,7 +467,7 @@
+ gchar foo[100] = "/tmp/ufXXXXXX";
+
+ /* Initialise */
+- mktemp(foo);
++ mkstemp(foo);
+
+ if (date_error(year, month, day, 2000, 3, 17) == TRUE) {
+ show_error(_("This Penny Arcade's stuff's too old.\nPlease choose a later date."));
diff --git a/misc/uf-view/pkg-comment b/misc/uf-view/pkg-comment
new file mode 100644
index 000000000000..8b78244b157a
--- /dev/null
+++ b/misc/uf-view/pkg-comment
@@ -0,0 +1 @@
+A gTK+ viewer for the User Friendly and several other popular comics
diff --git a/misc/uf-view/pkg-descr b/misc/uf-view/pkg-descr
new file mode 100644
index 000000000000..343019a87f4c
--- /dev/null
+++ b/misc/uf-view/pkg-descr
@@ -0,0 +1,6 @@
+uf-view is a Gnome viewer for the UserFriendly comic.
+It also supports MegaTokyo, Penny Arcade, Calvin and Hobbes and
+Dilbert. This port also includes a patch by Drew Ogle to view
+the comic goats.
+
+WWW: http://hadess.net/uf-view.shtml
diff --git a/misc/uf-view/pkg-plist b/misc/uf-view/pkg-plist
new file mode 100644
index 000000000000..5ad7d73dbf70
--- /dev/null
+++ b/misc/uf-view/pkg-plist
@@ -0,0 +1,6 @@
+bin/uf-view
+share/gnome/apps/Utilities/uf-view.desktop
+share/gnome/pixmaps/uf-view/gnome-uf-view.png
+share/gnome/pixmaps/uf-view/uf-logo.png
+share/locale/sv/LC_MESSAGES/uf-view.mo
+@dirrm share/gnome/pixmaps/uf-view