View | Details | Raw Unified | Return to bug 25294
Collapse All | Expand All

(-)vide/Makefile (-2 / +7 lines)
Lines 6-16 Link Here
6
#
6
#
7
7
8
PORTNAME=	vide
8
PORTNAME=	vide
9
PORTVERSION=	0.2.6
9
PORTVERSION=	0.5
10
CATEGORIES=	x11-fm
10
CATEGORIES=	x11-fm
11
MASTER_SITES=	http://vide.sourceforge.net/
11
MASTER_SITES=	http://vide.sourceforge.net/
12
12
13
MAINTAINER=	careilly@thecia.ie
13
MAINTAINER=	sergeiga@yahoo.com
14
15
RUN_DEPENDS=	vim:${PORTSDIR}/editors/vim5
16
LIB_DEPENDS=	gnome.4:${PORTSDIR}/x11/gnomelibs
14
17
15
USE_X_PREFIX=	yes
18
USE_X_PREFIX=	yes
16
USE_GMAKE=	yes
19
USE_GMAKE=	yes
Lines 19-24 Link Here
19
CONFIGURE_ENV=	CPPFLAGS="-DHAVE_SYS_PARAM_H"
22
CONFIGURE_ENV=	CPPFLAGS="-DHAVE_SYS_PARAM_H"
20
23
21
PLIST_SUB=	VERSION=${PORTVERSION}
24
PLIST_SUB=	VERSION=${PORTVERSION}
25
26
PATCH_WRKSRC=	${WRKSRC}/src
22
27
23
post-patch:
28
post-patch:
24
	@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/*.c
29
	@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/*.c
(-)vide/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (vide-0.2.6.tar.gz) = cb8479b92e169e15035efa5f9c71c5f3
1
MD5 (vide-0.5.tar.gz) = e2141aea2576157e9df4f7a94aa3a8b2
(-)vide/files/patch-aa (-16 lines)
Lines 1-16 Link Here
1
--- src/search_mode.c.orig	Wed May 17 20:28:02 2000
2
+++ src/search_mode.c	Wed May 17 20:30:57 2000
3
@@ -16,6 +16,13 @@
4
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
5
  */
6
 
7
+#ifdef HAVE_SYS_PARAM_H
8
+#include <sys/param.h>
9
+#endif
10
+
11
+#if (defined(BSD) && (BSD>=199103))
12
+#include <sys/types.h>
13
+#endif
14
 #include <fnmatch.h>
15
 #include<stdio.h>
16
 #include<string.h>
(-)vide/files/patch-ac (-73 lines)
Lines 1-73 Link Here
1
--- src/vide.c.orig	Thu May 11 03:04:39 2000
2
+++ src/vide.c	Sat Jun 17 15:19:25 2000
3
@@ -224,6 +224,9 @@
4
 
5
 	getcwd(current_dir, sizeof(current_dir));
6
 
7
+  /* i18n support */
8
+  gtk_set_locale();
9
+
10
   /* Set up handler for sigchild so that we don't get zombies */
11
   new_action.sa_handler = received_sigchild;
12
   sigemptyset (&new_action.sa_mask);
13
@@ -243,7 +246,7 @@
14
   gdk_color_parse ("yellow", &TAG_COLOR);
15
   gdk_color_parse ("wheat", &DRAG_HILIGHT);
16
   COMMAND_TEXT_FONT =
17
-    gdk_font_load ("-adobe-courier-medium-r-normal-*-12-*-*-*-*-*-*-*");
18
+    gdk_fontset_load ("-adobe-courier-medium-r-normal-*-12-*-*-*-*-*-*-*,*");
19
 
20
   cfg.filetypes = NULL;
21
   cfg.bookmarks = NULL;
22
@@ -259,7 +262,7 @@
23
       cfg.confirm_delete = TRUE; // not used
24
       cfg.confirm_overwrite = TRUE; // not used
25
       cfg.start_with_cwd = FALSE; 
26
-      strncpy (cfg.viewer_command, "rxvt -e vim",
27
+      strncpy (cfg.viewer_command, "xterm -e vi",
28
 	       sizeof (cfg.viewer_command));
29
       cfg.window_width = 640;
30
       cfg.window_height = 480;
31
@@ -268,7 +271,7 @@
32
       cfg.divide_popup_menu = FALSE; // not used
33
       cfg.dir_history_max_length = 15; 
34
       cfg.command_history_max_length = 10;
35
-      strncpy (cfg.xterm_command, "rxvt", sizeof (cfg.xterm_command));
36
+      strncpy (cfg.xterm_command, "xterm", sizeof (cfg.xterm_command));
37
       chdir (getenv ("HOME"));
38
       getcwd (app.left_view.dir, PATH_MAX);
39
       strncpy (app.right_view.dir, app.left_view.dir, PATH_MAX);
40
@@ -280,9 +283,9 @@
41
     {
42
       /* Setup some default filetypes */
43
       add_filetype ("jpeg,jpg,png,xpm,gif", "xv,gimp", "Image Files");
44
-      add_filetype ("c,cpp,h,pl,java, py", "x vim", "Source Code Files");
45
+      add_filetype ("c,cpp,h,pl,java, py", "x vi", "Source Code Files");
46
       add_filetype ("o,so,a", "x nm %f | less", "Object Files");
47
-      add_filetype ("htm,html,php", "netscape,x vim", "HTML Documents");
48
+      add_filetype ("htm,html,php", "netscape,x vi", "HTML Documents");
49
       add_filetype ("tar.gz,tgz", "x tar xzvf %f ,x tar tzvf %f | less",
50
 		    "Gzipped Tarballs");
51
 			add_filetype("zip, Z", "x unzip %f", "Zip");
52
@@ -310,7 +313,7 @@
53
       gchar trash_com[128];
54
 			gchar memo_com[128];
55
       g_snprintf (trash_com, 128, "mv %%f %s", cfg.trash);
56
-			g_snprintf (memo_com, 128, "rxvt -e vim %s/memo", cfg.config_dir);
57
+			g_snprintf (memo_com, 128, "xterm -e vi %s/memo", cfg.config_dir);
58
 
59
       add_user_command (" ", "NULL");
60
 			add_user_command ("Memo", memo_com);
61
@@ -332,9 +335,9 @@
62
 	}
63
 	if(!read_command_mode_file())
64
 	{
65
-		add_command("mutt", "exe rxvt -e mutt");
66
-		add_command("ps", "exe rxvt -e top");
67
-		add_command("vi", "exe rxvt -e vim");
68
+		add_command("mutt", "exe xterm -e mutt");
69
+		add_command("ps", "exe xterm -e top");
70
+		add_command("vi", "exe xterm -e vi");
71
 		add_command("Backup", "/~$");
72
 	  add_command("touch", "exe touch %{Name of new file.}");
73
 	}
(-)vide/files/patch-ad (-29 lines)
Lines 1-29 Link Here
1
--- src/command_mode.c.orig	Sat Jun 17 15:24:19 2000
2
+++ src/command_mode.c	Sat Jun 17 15:57:34 2000
3
@@ -201,7 +201,7 @@
4
 	buf[4] = '\0';
5
 	if(!strcmp(buf, "grep"))
6
 	{
7
-		g_snprintf(buf, sizeof(buf), "vim \"+ grep %s\"", command);
8
+		g_snprintf(buf, sizeof(buf), "vi \"+ grep %s\"", command);
9
 		exec_in_xterm(buf);
10
 	}
11
 
12
@@ -280,7 +280,7 @@
13
 
14
 	if(!strcmp(command, "h"))
15
 	{
16
-		g_snprintf(buf, sizeof(buf), "%s -e vim %s/vide%s.txt",
17
+		g_snprintf(buf, sizeof(buf), "%s -e vi %s/vide%s.txt",
18
 				cfg.xterm_command, cfg.config_dir, VERSION);
19
 		file_exec(buf);
20
 	}
21
@@ -363,7 +363,7 @@
22
 	/* load file into vi */
23
 	if(!strcmp(command, "e"))
24
 	{
25
-		g_snprintf(buf, sizeof(buf), "%s -e vim \"%s\"", cfg.xterm_command, file);
26
+		g_snprintf(buf, sizeof(buf), "%s -e vi \"%s\"", cfg.xterm_command, file);
27
 		file_exec(buf);  
28
 		
29
 /*		g_snprintf(buf, sizeof(buf), ":e %s/%s\r", curr_view->dir, file);
(-)vide/files/patch-ae (-11 lines)
Lines 1-11 Link Here
1
--- src/config_files.c.orig	Thu Apr 27 04:12:22 2000
2
+++ src/config_files.c	Sat Jun 17 14:26:55 2000
3
@@ -60,7 +60,7 @@
4
 {
5
 	gchar command[PATH_MAX];
6
 
7
-	g_snprintf(command, sizeof(command), "cp /usr/local/share/vide/vide%s.txt %s",
8
+	g_snprintf(command, sizeof(command), "cp %%PREFIX%%/share/vide/vide%s.txt %s",
9
 			VERSION, help_file);
10
 	file_exec(command);
11
 
(-)vide/files/patch-af (-11 lines)
Lines 1-11 Link Here
1
--- src/main_menu.c.orig	Sat Jun 17 15:24:20 2000
2
+++ src/main_menu.c	Sat Jun 17 15:56:55 2000
3
@@ -27,7 +27,7 @@
4
 help_cb(GtkWidget *widget, gpointer data)
5
 {
6
 	gchar help_command[NAME_MAX];
7
-	g_snprintf(help_command, sizeof(help_command), "%s -e vim %s/vide%s.txt",
8
+	g_snprintf(help_command, sizeof(help_command), "%s -e vi %s/vide%s.txt",
9
 			cfg.xterm_command, cfg.config_dir, VERSION); 
10
 	file_exec(help_command);
11
 
(-)vide/files/patch-config_files.c (+35 lines)
Line 0 Link Here
1
*** config_files.c.orig	Wed Feb 21 22:23:30 2001
2
--- config_files.c	Wed Feb 21 22:24:42 2001
3
***************
4
*** 16,21 ****
5
--- 16,27 ----
6
   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
7
   */
8
  
9
+ #include<sys/param.h>
10
+ #if defined(__FreeBSD_version)
11
+     #define CP_HELP "cp %%PREFIX%%/share/vide/vide%s.txt %s"
12
+ #else
13
+     #define CP_HELP "cp /usr/local/share/vide/vide%s.txt %s"
14
+ #endif
15
  
16
  #include <stdlib.h>
17
  #include <stdio.h>
18
***************
19
*** 60,67 ****
20
  {
21
  	gchar command[PATH_MAX];
22
  
23
! 	g_snprintf(command, sizeof(command), "cp /usr/local/share/vide/vide%s.txt %s",
24
! 			VERSION, help_file);
25
  	file_exec(command);
26
  
27
  }
28
--- 66,72 ----
29
  {
30
  	gchar command[PATH_MAX];
31
  
32
! 	g_snprintf(command, sizeof(command), CP_HELP, VERSION, help_file);
33
  	file_exec(command);
34
  
35
  }
(-)vide/files/patch-search_mode.c (+17 lines)
Line 0 Link Here
1
*** search_mode.c.orig	Tue Feb 20 00:14:47 2001
2
--- search_mode.c	Tue Feb 20 00:05:23 2001
3
***************
4
*** 16,21 ****
5
--- 16,27 ----
6
   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
7
   */
8
  
9
+ #include<sys/param.h>
10
+ #if (defined(BSD) && (BSD>=199103))
11
+     /* Required by regex.h on FreeBSD 4.2 at least. */
12
+     #include<sys/types.h>
13
+ #endif
14
+ 
15
  #include <fnmatch.h>
16
  #include<stdio.h>
17
  #include<string.h>
(-)vide/files/patch-vide.c (+71 lines)
Line 0 Link Here
1
*** vide.c.orig	Wed Feb 21 22:20:33 2001
2
--- vide.c	Wed Feb 21 22:21:03 2001
3
***************
4
*** 16,22 ****
5
   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
6
   */
7
  
8
! 
9
  
10
  #include <string.h>
11
  #include <unistd.h>
12
--- 16,29 ----
13
   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
14
   */
15
  
16
! #include<sys/param.h>
17
! #if defined(__FreeBSD_version)
18
!     #define RXVT_VIM "xterm -e vim"
19
!     #define RXVT "xterm"
20
! #else
21
!     #define RXVT_VIM "rxvt -e vim"
22
!     #define RXVT "rxvt"
23
! #endif
24
  
25
  #include <string.h>
26
  #include <unistd.h>
27
***************
28
*** 280,285 ****
29
--- 287,294 ----
30
  
31
  	getcwd(current_dir, sizeof(current_dir));
32
  
33
+   /* i18n support */
34
+   gtk_set_locale();
35
  
36
    /* Set up handler for sigchild so that we don't get zombies */
37
    new_action.sa_handler = received_sigchild;
38
***************
39
*** 329,335 ****
40
        cfg.start_with_cwd = FALSE; 
41
  			strncpy(cfg.vi_clone, "vim", sizeof(cfg.vi_clone));
42
  			strncpy(cfg.vi_command, "vim", sizeof(cfg.vi_command));
43
!       strncpy (cfg.viewer_command, "rxvt -e vim",
44
  	       sizeof (cfg.viewer_command));
45
        cfg.window_width = 640;
46
        cfg.window_height = 480;
47
--- 338,344 ----
48
        cfg.start_with_cwd = FALSE; 
49
  			strncpy(cfg.vi_clone, "vim", sizeof(cfg.vi_clone));
50
  			strncpy(cfg.vi_command, "vim", sizeof(cfg.vi_command));
51
!       strncpy (cfg.viewer_command, RXVT_VIM,
52
  	       sizeof (cfg.viewer_command));
53
        cfg.window_width = 640;
54
        cfg.window_height = 480;
55
***************
56
*** 337,343 ****
57
        cfg.window_ypos = 0;
58
        cfg.dir_history_max_length = 15; 
59
        cfg.command_history_max_length = 10;
60
!       strncpy (cfg.xterm_command, "rxvt", sizeof (cfg.xterm_command));
61
        chdir (getenv ("HOME"));
62
        getcwd (app.left_view.dir, PATH_MAX);
63
        strncpy (app.right_view.dir, app.left_view.dir, PATH_MAX);
64
--- 346,352 ----
65
        cfg.window_ypos = 0;
66
        cfg.dir_history_max_length = 15; 
67
        cfg.command_history_max_length = 10;
68
!       strncpy (cfg.xterm_command, RXVT, sizeof (cfg.xterm_command));
69
        chdir (getenv ("HOME"));
70
        getcwd (app.left_view.dir, PATH_MAX);
71
        strncpy (app.right_view.dir, app.left_view.dir, PATH_MAX);
(-)vide/pkg-descr (-2 / +2 lines)
Lines 6-10 Link Here
6
6
7
WWW: http://vide.sourceforge.net/
7
WWW: http://vide.sourceforge.net/
8
8
9
- Colman
9
- Sergei Gnezdov
10
careilly@thecia.ie
10
sergeiga@yahoo.com

Return to bug 25294