diff options
| author | Rene Ladan <rene@FreeBSD.org> | 2014-07-31 20:44:58 +0000 |
|---|---|---|
| committer | Rene Ladan <rene@FreeBSD.org> | 2014-07-31 20:44:58 +0000 |
| commit | e3d6138364db0f21fe303a8c72a737ca241939ab (patch) | |
| tree | 9c8db7cf306e12ce53ec0e870e943a9d9f8ebc48 /misc/gman/files/patch-gman.c | |
| parent | - Update to 1.4.0. (diff) | |
Remove expired ports:
2014-07-30 mail/postfix27: No longer supported by upstream
2014-07-30 misc/freecode-submit: This software is obsolete. Freecode does not accept updates anymore.
2014-07-30 mail/exim-doc-info: yes
2014-07-31 misc/gman: Depends on expiring ghostview
2014-07-31 print/ghostview: project dead nearly a decade ago; use print/gv instead
Diffstat (limited to '')
| -rw-r--r-- | misc/gman/files/patch-gman.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/misc/gman/files/patch-gman.c b/misc/gman/files/patch-gman.c deleted file mode 100644 index fc20386df7e4..000000000000 --- a/misc/gman/files/patch-gman.c +++ /dev/null @@ -1,48 +0,0 @@ ---- gman.c.orig Mon Dec 13 22:25:03 2004 -+++ gman.c Mon Dec 13 22:26:54 2004 -@@ -47,7 +47,7 @@ - pthread_mutex_init(&context_lock,NULL); - pthread_mutex_init(&loading_man_path_lock,NULL); - init_context(); -- debuging = (long)context->get_value("debuging"); -+ debuging = (intptr_t)context->get_value("debuging"); - pthread_mutex_lock(>k_lock); - gtk_init (&argc, &argv); - window = gtk_window_new(GTK_WINDOW_TOPLEVEL); -@@ -62,6 +62,8 @@ - - //gtk_main(); - -+ -+ - while(1){ - pthread_mutex_lock(>k_lock); - while(gtk_events_pending()) { -@@ -77,6 +79,14 @@ - /******************* init_context() *****************/ - void init_context() - { -+ static char *browser; -+ if ((browser = getenv("BROWSER")) == NULL) -+ { -+ fprintf(stderr,"A BROWSER variable that contains the name of your\n \ -+favorite browser's executable file must be created\n \ -+in order to use gman with localbrowse/netbrowse.\n"); -+ exit(1); -+ } - FILE * fd; - char buffer[256]; - context = new AppContext(); -@@ -89,9 +99,9 @@ - context->set_default_value("show_status_bar","int",(void*)0); - context->set_default_value("show_warning","int",(void*)0); - context->set_default_value("show_mode","int",(void*)0); // 0 = xterm, 1 = ghostview -- context->set_default_value("xterm_command","char*",(void*)"x-terminal-emulator"); -- context->set_default_value("gv_command","char*",(void*)"gv"); -- context->set_default_value("browser_command","char*",(void*)"mozilla"); // kfm also works -+ context->set_default_value("xterm_command","char*",(void*)"xterm"); -+ context->set_default_value("gv_command","char*",(void*)"ghostview"); -+ context->set_default_value("browser_command","char*",(void*)browser); // kfm also works - context->set_default_value("cgi_host","char*",(void*)"localhost"); - context->set_default_value("cgi_location","char*",(void*)"/cgi-bin/gman.pl"); - context->set_default_value("print_command","char*",(void*)"lpr"); // not in use |
