From owner-freebsd-ports Thu May 3 17:10:12 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3D1E337B43C for ; Thu, 3 May 2001 17:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f440A1f11552; Thu, 3 May 2001 17:10:01 -0700 (PDT) (envelope-from gnats) Received: from mcgee.student.umd.edu (mcgee.student.umd.edu [129.2.235.11]) by hub.freebsd.org (Postfix) with ESMTP id 13C4937B424 for ; Thu, 3 May 2001 17:05:55 -0700 (PDT) (envelope-from mcgee@mcgee.student.umd.edu) Received: (from mcgee@localhost) by mcgee.student.umd.edu (8.10.1/8.10.1) id f4405sQ26529 for FreeBSD-gnats-submit@freebsd.org; Thu, 3 May 2001 20:05:54 -0400 (EDT) Message-Id: <200105040005.f4405sQ26529@mcgee.student.umd.edu> Date: Thu, 3 May 2001 20:05:54 -0400 (EDT) From: mcgee@mcgee.student.umd.edu To: FreeBSD-gnats-submit@freebsd.org Subject: ports/27071: New Port: uf-view (GTK app for viewing on-line comics) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 27071 >Category: ports >Synopsis: New Port: uf-view (GTK app for viewing on-line comics) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 03 17:10:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Jonathan McGee >Release: FreeBSD 4.3-STABLE i386 >Organization: n/a >Environment: System: FreeBSD Caesar.Rome 4.3-STABLE FreeBSD 4.3-STABLE #0: Thu Apr 26 09:41:20 EDT 2001 mcgee@Caesar.Rome:/usr/src/sys/compile/MCGEE i386 >Description: uf-view is a gnome program a friend found to pull web comics to your desktop. We decided to port it to FreeBSD, as well as add support for another comic. The hacks aren't too pretty, but we did get it to work. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # uf-view # uf-view/files # uf-view/files/patch-aa # uf-view/files/patch-ab # uf-view/files/patch-ac # uf-view/pkg-plist # uf-view/pkg-descr # uf-view/pkg-comment # uf-view/distinfo # uf-view/Makefile # echo c - uf-view mkdir -p uf-view > /dev/null 2>&1 echo c - uf-view/files mkdir -p uf-view/files > /dev/null 2>&1 echo x - uf-view/files/patch-aa sed 's/^X//' >uf-view/files/patch-aa << 'END-of-uf-view/files/patch-aa' X--- Makefile.am.orig Thu May 3 17:15:27 2001 X+++ Makefile.am Thu May 3 17:16:14 2001 X@@ -11,10 +11,10 @@ X foodir = $(datadir)/pixmaps/uf-view X foo_DATA = uf-logo.png gnome-uf-view.png X X-desktopdir = $(datadir)/gnome/apps/Utilities X+desktopdir = $(datadir)/apps/Utilities X desktop_DATA = uf-view.desktop X X uf_view_SOURCES = \ X uf-gui.c uf-gui.h \ X uf-view.c uf-view.h X-uf_view_LDADD = -lgnomevfs $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) X+uf_view_LDADD = -lgnomevfs $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) $(PTHREAD_LIB) END-of-uf-view/files/patch-aa echo x - uf-view/files/patch-ab sed 's/^X//' >uf-view/files/patch-ab << 'END-of-uf-view/files/patch-ab' X--- uf-view.h.orig Sat Apr 21 17:19:46 2001 X+++ uf-view.h Thu May 3 15:12:47 2001 X@@ -14,6 +14,7 @@ X void mg_fetch(int year, int month, int day); X void pa_fetch(int year, int month, int day); X void ch_fetch(int year, int month, int day); X+void go_fetch(int year, int month, int day); X void di_fetch(int year, int month, int day); X X void on_fetch_button_clicked (GtkWidget *button, gpointer user_data); END-of-uf-view/files/patch-ab echo x - uf-view/files/patch-ac sed 's/^X//' >uf-view/files/patch-ac << 'END-of-uf-view/files/patch-ac' X--- uf-view.c.orig Sat Apr 21 18:41:21 2001 X+++ uf-view.c Thu May 3 15:22:06 2001 X@@ -96,7 +96,7 @@ X if (url != NULL) X { X gchar foo[100] = "/tmp/ufXXXXXX"; X- mktemp(foo); X+ mkstemp(foo); X X appbar_send_msg(_("Fetching %s"), url); X X@@ -199,6 +199,7 @@ X const gchar *authors[] = { X N_("Bastien Nocera "), X N_("Robert Brady "), X+ N_("Edited for Goats by Drew Ogle "), X NULL, X }; X X@@ -279,6 +280,10 @@ X di_fetch(uf->calendar->year, uf->calendar->month+1, X uf->calendar->selected_day); X break; X+ case 5: X+ go_fetch( uf->calendar->year , uf->calendar->month+1, X+ uf->calendar->selected_day); X+ break; X default: X g_print("Brooooken !!!\n"); X } X@@ -372,7 +377,7 @@ X gchar foo[100] = "/tmp/ufXXXXXX"; X X /* Initialise */ X- mktemp(foo); X+ mkstemp(foo); X X if (date_error(year, month, day, 1997, 9, 17) == TRUE) { X show_error(_("User Friendly did not exist at that time.\nPlease choose a later date.")); X@@ -442,6 +447,26 @@ X X g_free(url); X } X+void go_fetch(int year, int month, int day) X+{ X+ gchar *url = NULL; X+ X+ if (date_error(year, month, day, 1997, 4, 1) == TRUE) { X+ show_error(_("Goats did not exist at this time.\n Please choose a later date.")); X+ return; X+ } X+ /* Very easy one, we just show the image */ X+ url = g_strdup_printf X+ ("http://www.goats.com/comix/%02i%02i/goats%02i%02i%02i.gif", X+ year%100, month, year%100, month, day); X+ appbar_send_msg(_("Fetching %s"), url); X+ set_pixmap_to_be(url); X+ X+ appbar_send_msg(_("Goats the Comic for %04i-%02i-%02i"), X+ year, month, day); X+ X+ g_free(url); X+} X X void pa_fetch(int year, int month, int day) X { X@@ -451,7 +476,7 @@ X gchar foo[100] = "/tmp/ufXXXXXX"; X X /* Initialise */ X- mktemp(foo); X+ mkstemp(foo); X X if (date_error(year, month, day, 2000, 3, 17) == TRUE) { X show_error(_("This Penny Arcade's stuff's too old.\nPlease choose a later date.")); X@@ -539,7 +564,7 @@ X X /* Initialise */ X xfer_options = GNOME_VFS_XFER_DEFAULT; X- mktemp(foo); X+ mkstemp(foo); X X /* Grab the webpage to a local file */ X url = g_strdup_printf END-of-uf-view/files/patch-ac echo x - uf-view/pkg-plist sed 's/^X//' >uf-view/pkg-plist << 'END-of-uf-view/pkg-plist' Xbin/uf-view Xshare/gnome/apps/Utilities/uf-view.desktop Xshare/gnome/pixmaps/uf-view/uf-logo.png Xshare/gnome/pixmaps/uf-view/gnome-uf-view.png X@dirrm share/gnome/pixmaps/uf-view END-of-uf-view/pkg-plist echo x - uf-view/pkg-descr sed 's/^X//' >uf-view/pkg-descr << 'END-of-uf-view/pkg-descr' Xuf-view is a Gnome viewer for the UserFriendly comic. XIt also supports MegaTokyo, Penny Arcade, Calvin and Hobbes and XDilbert. This port also includes a patch by Drew Ogle to view Xthe comic goats. X XWWW: http://hadess.net/uf-view.shtml END-of-uf-view/pkg-descr echo x - uf-view/pkg-comment sed 's/^X//' >uf-view/pkg-comment << 'END-of-uf-view/pkg-comment' XGTK+ viewer for the User Friendly comic (amongst others) END-of-uf-view/pkg-comment echo x - uf-view/distinfo sed 's/^X//' >uf-view/distinfo << 'END-of-uf-view/distinfo' XMD5 (uf-view-1.4.1.tar.gz) = ac3bef97f318b7019c5d4a178f5a7323 END-of-uf-view/distinfo echo x - uf-view/Makefile sed 's/^X//' >uf-view/Makefile << 'END-of-uf-view/Makefile' X# New ports collection makefile for: oneko X# Date created: 5 December 1994 X# Whom: asami X# X# $FreeBSD$ X# X XPORTNAME= uf-view XPORTVERSION= 1.4.1 XCATEGORIES= net XMASTER_SITES= http://hadess.net/files/ X XMAINTAINER= mcgee@wam.umd.edu X XUSE_X_PREFIX= yes XUSE_GMAKE= yes XUSE_GTK= yes XUSE_GNOME= yes XUSE_AUTOMAKE= yes XUSE_AUTOCONF= yes XHAS_CONFIGURE= yes X X.include END-of-uf-view/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message