ports/50908: [Maintainer Update] sysutils/thefish to 0.3.1
Miguel Mendez
flynn at energyhq.homeip.net
Sun Apr 13 18:10:11 UTC 2003
>Number: 50908
>Category: ports
>Synopsis: [Maintainer Update] sysutils/thefish to 0.3.1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun Apr 13 11:10:09 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Miguel Mendez
>Release: FreeBSD 5.0-RELEASE-p7 i386
>Organization:
>Environment:
System: FreeBSD isengard.energyhq.tk 5.0-RELEASE-p7 FreeBSD 5.0-RELEASE-p7 #0: Fri Apr 11 10:51:38 CEST 2003 root at isengard.energyhq.tk:/usr/obj/usr/src/sys/ISENGARD i386
>Description:
0.3 -> 0.3.1
Again, more code cleanup.
Fixed a small bug in the GTK table code.
Now it is possible to add custom comments for new entries.
Fixed a bug in the add_entry function. Make the add menu prettier.
>How-To-Repeat:
>Fix:
--- thefish.diff begins here ---
diff -ruN thefish.old/Makefile thefish/Makefile
--- thefish.old/Makefile Fri Feb 21 14:28:55 2003
+++ thefish/Makefile Sun Apr 13 19:54:20 2003
@@ -6,8 +6,7 @@
#
PORTNAME= thefish
-PORTVERSION= 0.3
-PORTREVISION= 1
+PORTVERSION= 0.3.1
CATEGORIES= sysutils
MASTER_SITES= http://energyhq.homeip.net/files/
@@ -18,7 +17,7 @@
NO_GUI= yes
MAKE_ENV+= NO_GUI=yes
.else
-LIB_DEPENDS= gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20
+USE_GNOME= gtk20
USE_X_PREFIX= yes
.endif
diff -ruN thefish.old/distinfo thefish/distinfo
--- thefish.old/distinfo Mon Feb 3 00:04:58 2003
+++ thefish/distinfo Sun Apr 13 19:54:23 2003
@@ -1 +1 @@
-MD5 (thefish-0.3.tar.gz) = f51b20b4a3c4714f0902138e23765adf
+MD5 (thefish-0.3.1.tar.gz) = 40ec4c7a47929032eca9d633c8ace891
diff -ruN thefish.old/files/patch-gui_ui.c thefish/files/patch-gui_ui.c
--- thefish.old/files/patch-gui_ui.c Wed Feb 5 03:02:55 2003
+++ thefish/files/patch-gui_ui.c Thu Jan 1 01:00:00 1970
@@ -1,138 +0,0 @@
---- gtk_ui.c.orig Tue Feb 4 17:51:19 2003
-+++ gtk_ui.c Tue Feb 4 17:51:37 2003
-@@ -24,7 +24,7 @@
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
--$Id: //depot/fish/gtk_ui.c#28 $
-+$Id: //depot/fish/gtk_ui.c#29 $
-
- */
-
-@@ -33,6 +33,10 @@
- #include <string.h>
- #include <fcntl.h>
-
-+#include <sys/types.h>
-+#include <sys/uio.h>
-+#include <unistd.h>
-+
- #include <time.h>
- extern char *tzname[2];
-
-@@ -66,6 +70,8 @@
- void add_yes_pressed(GtkWidget *, gpointer);
- void add_no_pressed(GtkWidget *, gpointer);
-
-+void save_geometry(void);
-+
- /* Some defines here */
- #define IS_DIRTY 1
- #define NOT_DIRTY 0
-@@ -139,7 +145,10 @@
- GtkWidget *window;
- GtkWidget *myviewport1;
- GtkWidget *myviewport2;
--
-+
-+ /* Window geometry */
-+ int oldsize[2];
-+
- /* I know this code looks chaotic at first sight, but it seems to work :-) */
- int
- create_gtk_ui(RC_NODE *rc_knobs,int num_knobs,RC_NODE *rc_strings,int num_str)
-@@ -202,6 +211,10 @@
-
- int i;
-
-+ char *homedir;
-+ char temp[255];
-+ int fd;
-+
- commit_win_up=FALSE;
- add_win_up=FALSE;
- about_win_up=FALSE;
-@@ -218,6 +231,27 @@
- gtk_window_set_title(GTK_WINDOW(window),"The Fish");
-
-
-+ /* Set the size */
-+
-+ homedir=getenv("HOME");
-+ if(homedir!=NULL) {
-+
-+ snprintf(temp,255,"%s/%s",homedir,".thefishrc");
-+ fd=open(temp,O_RDONLY,0);
-+ if(fd!=-1) {
-+ read(fd,&oldsize[0],sizeof(oldsize));
-+ close(fd);
-+ } else {
-+
-+ oldsize[0]=400;
-+ oldsize[1]=480;
-+
-+ }
-+
-+ }
-+
-+ gtk_window_set_default_size(GTK_WINDOW(window),oldsize[0],oldsize[1]);
-+
- /* Set the icon */
- icon16_pixbuf=gdk_pixbuf_new_from_xpm_data((const char **)icon16);
- icon32_pixbuf=gdk_pixbuf_new_from_xpm_data((const char **)icon32);
-@@ -561,6 +595,7 @@
- void
- destroy( GtkWidget *widget, gpointer data)
- {
-+ save_geometry();
- gtk_main_quit();
- }
-
-@@ -583,10 +618,15 @@
- result=gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
-
-- if(result==GTK_RESPONSE_YES) gtk_main_quit();
-+ if(result==GTK_RESPONSE_YES) {
-+
-+ save_geometry();
-+ gtk_main_quit();
-+ }
-
-- } else {
-+ } else {
-
-+ save_geometry();
- gtk_main_quit();
-
- }
-@@ -1167,4 +1207,29 @@
- gtk_widget_destroy(add_window);
-
- add_win_up=FALSE;
-+}
-+
-+void
-+save_geometry(void)
-+{
-+
-+ int newsize[2];
-+ char *homedir;
-+ char temp[255];
-+ int fd;
-+
-+ gtk_window_get_size(GTK_WINDOW(window),&newsize[0],&newsize[1]);
-+
-+ if(oldsize[0]!=newsize[0] || oldsize[1]!=newsize[1]) {
-+
-+ homedir=getenv("HOME");
-+ if(homedir==NULL) return;
-+ snprintf(temp,255,"%s/%s",homedir,".thefishrc");
-+ fd=open(temp,O_WRONLY|O_CREAT|O_TRUNC,0666);
-+ if(fd==-1) return;
-+ write(fd,&newsize[0],sizeof(newsize));
-+ close(fd);
-+ return;
-+
-+ }
- }
--- thefish.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list