Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Evergreen:11.2:Test
gv
gv-3.6.3-deb.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gv-3.6.3-deb.patch of Package gv
--- gv-3.6.3dfsg.orig/doc/gv.texi +++ gv-3.6.3dfsg/doc/gv.texi @@ -22,6 +22,7 @@ @end quotation @end copying +@dircategory Viewers @direntry * gv: (gv). The GNU PostScript and PDF viewer. @end direntry @@ -119,6 +120,7 @@ [-]-style=FILE read and use additional resources from FILE. These resources have lower priority than those provided on the context of --ad [-]-spartan shortcut for --style=gv_spartan.dat + [-]-widgetless shortcut for --style=gv_widgetless.dat [-]-version show gv version and exit @end verbatim @@ -210,6 +212,8 @@ an update of the displayed document. This method may be used by document creators to trigger gv remotely. +@item --widgetless +This is a shortcut for @code{--style=gv_widgetless.dat}. @end table @node Resources, Mouse and key bindings, Invoking gv, Top @@ -473,12 +477,17 @@ @code{line} @end itemize -@item showTitle +@item titleStyle Whether the name of the displayed document should be shown in the title bar of the window. The name of gv's icon will also change accordingly if this resource is set to @code{True}. -It defaults to @code{True}. +If this is @code{0}, no title will be shown. +@code{1} means to show a the document title or the file name if there is +no document title. +Only the file name is shown with @code{2}. + +It defaults to @code{1}. @item maximumWidth, maximumHeight When resizing gv will not attempt to exceed the size specified by these resources. --- gv-3.6.3dfsg.orig/doc/gv.1 +++ gv-3.6.3dfsg/doc/gv.1 @@ -1,7 +1,7 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. .TH GV "1" "June 2007" "gv 3.6.3" "User Commands" .SH NAME -gv \- manual page for gv 3.6.3 +gv \- PostScript and PDF viewer .SH SYNOPSIS .B gv [\fIOPTION\fR]... [\fIFILE\fR] @@ -118,6 +118,9 @@ [\-]\-spartan shortcut for \fB\-\-style\fR=\fIgv_spartan\fR.dat .TP +[\-]\-widgetless +shortcut for \fB\-\-style\fR=\fIgv_widgetless\fR.dat +.TP [\-]\-version show gv version and exit .SH "SEE ALSO" --- gv-3.6.3dfsg.orig/src/gv_misc_res.dat +++ gv-3.6.3dfsg/src/gv_misc_res.dat @@ -273,7 +273,7 @@ GV*eof.Label: Ignore EOF comments GV*antialias.Label: Antialias GV*watchFile.Label: Watch file -GV*showTitle.Label: Show Title +GV*titleLabel.Label: Show Title GV*pixmap.Label: Backing Pixmap GV*size.Label: Automatic resizing GV*watch.Label: Watch File @@ -677,6 +677,10 @@ GV.TopLevelShell*Button.accelerators:#override\n\ <Key>Return: set() notify() unset() +GV.TopLevelShell*dismiss.accelerators:#override\n\ + <Key>Escape: set() notify() unset()\n\ + <Key>Return: set() notify() unset() + GV.TopLevelShell*Button.baseTranslations: #replace\n\ <Key>Return: set() notify() unset()\n\ <LeaveWindow>: unset() \n\ @@ -688,6 +692,18 @@ GV*TransientShell*Button.accelerators:#override\n\ <Key>Return: set() notify() unset() +GV*TransientShell*cancel.accelerators:#override\n\ + <Key>Escape: set() notify() unset()\n\ + <Key>Return: set() notify() unset() + +GV*TransientShell*button1.accelerators:#override\n\ + <Key>Escape: set() notify() unset()\n\ + <Key>Return: set() notify() unset() + +GV*TransientShell*dismiss.accelerators:#override\n\ + <Key>Escape: set() notify() unset()\n\ + <Key>Return: set() notify() unset() + GV*TransientShell*Button.baseTranslations: #replace\n\ <Key>Return: set() notify() unset()\n\ <LeaveWindow>: unset() \n\ --- gv-3.6.3dfsg.orig/src/ps.c +++ gv-3.6.3dfsg/src/ps.c @@ -1738,6 +1738,7 @@ { unsigned int nbytes=0; int skipped=0; + int nesting_level=0; char *line; BEGINMESSAGE(readline) @@ -1796,7 +1797,15 @@ #endif if (!IS_COMMENT("Begin")) {} /* Do nothing */ else if IS_BEGIN("Document:") { /* Skip the EPS without handling its content */ - while (line && !IS_END("Document")) { + nesting_level=1; + line = ps_io_fgetchars(fd,-1); + if (line) *line_lenP += FD_LINE_LEN; + while (line) { + if (IS_COMMENT("Begin") && IS_BEGIN("Document:")) + nesting_level++; + else if (IS_COMMENT("End") && IS_END("Document")) + nesting_level--; + if (nesting_level == 0) break; line = ps_io_fgetchars(fd,-1); if (line) *line_lenP += FD_LINE_LEN; } --- gv-3.6.3dfsg.orig/src/gv_layout_res.dat +++ gv-3.6.3dfsg/src/gv_layout_res.dat @@ -247,6 +247,10 @@ $sss\ confirmButton<+[1]*>\ $sss\ + titleLabel<+[1]*>\ + $sss\ + titleButton<+[1]*>\ + $sss\ misc<+[1]*>\ $sss\ scrolling<+[1]*>\ @@ -257,8 +261,6 @@ $sss\ autoCenter<+[1]*>\ $sss\ - showTitle<+[1]*>\ - $sss\ pixmap<+[1]*>\ $sss\ magmenuLabel<+[1]*>\ --- gv-3.6.3dfsg.orig/src/options_gv.c +++ gv-3.6.3dfsg/src/options_gv.c @@ -545,10 +545,13 @@ n=0; w = XtCreateManagedWidget("apply", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_gv_cb_apply,NULL); + XtInstallAccelerators(optionControl, w); w = XtCreateManagedWidget("save", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_gv_cb_save,NULL); + XtInstallAccelerators(optionControl, w); w = XtCreateManagedWidget("dismiss", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_cb_popdown, (XtPointer)gv_options_gv); + XtInstallAccelerators(optionControl, w); options_gv_setOptionsAtEntry(); options_realize(popup,optionControl); --- gv-3.6.3dfsg.orig/src/Vlist.c +++ gv-3.6.3dfsg/src/Vlist.c @@ -314,6 +314,16 @@ VlistWidget vw = (VlistWidget)w; char * s; int i; + int yofs, ydelta; + + if( vw->simple.international == True ) { + XFontSetExtents *ext = XExtentsOfFontSet(vw->label.fontset); + yofs = (ext->max_ink_extent.y<0)?-ext->max_ink_extent.y:ext->max_ink_extent.y; + ydelta = ext->max_ink_extent.height; + } else { + yofs = vw->label.font->max_bounds.ascent; + ydelta = vw->label.font->max_bounds.ascent + vw->label.font->max_bounds.descent; + } BEGINMESSAGE1(PaintEntryString) s = vw->label.label; @@ -321,14 +331,20 @@ if (s) while (i > 0 && (s = strchr(s,'\n'))) { s++; i--; } if (s) { char *nl = strchr(s,'\n'); - if (nl) *nl = '\0'; - XDrawString(XtDisplay(w), XtWindow(w), vw->label.normal_GC, - vw->label.label_x, - vw->label.label_y+entry*(vw->label.font->max_bounds.ascent + - vw->label.font->max_bounds.descent) + - vw->label.font->max_bounds.ascent, - s, (int)strlen(s)); - if (nl) *nl = '\n'; + int len; + if (nl) + len = nl - s; + else + len = strlen(s); + if( vw->simple.international == True ) + XmbDrawString(XtDisplay(w), XtWindow(w), vw->label.fontset, + vw->label.normal_GC, + vw->label.label_x, vw->label.label_y + yofs + entry*ydelta, + s, len); + else + XDrawString(XtDisplay(w), XtWindow(w), vw->label.normal_GC, + vw->label.label_x, vw->label.label_y + yofs + entry*ydelta, + s, len); } ENDMESSAGE1(PaintEntryString) } --- gv-3.6.3dfsg.orig/src/file.c +++ gv-3.6.3dfsg/src/file.c @@ -282,7 +282,7 @@ #ifdef EFTYPE errno = EFTYPE; #else - errno = ENODATA; + errno = ENOMSG; #endif } IMESSAGE(r) --- gv-3.6.3dfsg.orig/src/info.c +++ gv-3.6.3dfsg/src/info.c @@ -212,6 +212,8 @@ XtSetArg(args[n], XtNright, XtChainRight); n++; infodismiss = XtCreateManagedWidget("dismiss", buttonWidgetClass,infoform,args,n); XtAddCallback(infodismiss, XtNcallback, cb_popdownInfoPopup,NULL); + XtInstallAccelerators(infoform, infodismiss); + XtInstallAccelerators(infotext, infodismiss); n=0; XtSetArg(args[n], XtNfont, &font); n++; --- gv-3.6.3dfsg.orig/src/gv_message.h +++ gv-3.6.3dfsg/src/gv_message.h @@ -70,6 +70,7 @@ [-]-style=FILE read and use additional resources from FILE. These resources\n\ have lower priority than those provided on the context of --ad\n\ [-]-spartan shortcut for --style=gv_spartan.dat\n\ + [-]-widgetless shortcut for --style=gv_widgetless.dat\n\ [-]-version show gv version and exit\n\ "; @@ -116,6 +117,8 @@ [-style <resource file>]\n\ # Shortcut for '-style gv_spartan.dat'\n\ [-spartan]\n\ + # Shortcut for '-style gv_widgetless.dat'\n\ + [-widgetless]\n\ # Toolkit Options\n\ [<other toolkit options>]\n\ # Show help\n\ --- gv-3.6.3dfsg.orig/src/zoom.c +++ gv-3.6.3dfsg/src/zoom.c @@ -187,6 +187,7 @@ n=0; zdismiss = XtCreateManagedWidget(zoom_dismiss, buttonWidgetClass,zcontrol, args, n); XtAddCallback(zdismiss, XtNcallback,cb_destroy,(XtPointer)zshell); + XtInstallAccelerators(zcontrol, zdismiss); XtRealizeWidget(zshell); { --- gv-3.6.3dfsg.orig/src/resource.h +++ gv-3.6.3dfsg/src/resource.h @@ -38,9 +38,8 @@ #endif ); -extern XrmDatabase resource_buildDatabase ( +extern XrmDatabase resource_buildDatabase ( #if NeedFunctionPrototypes - XrmDatabase , Display *, char *, char *, --- gv-3.6.3dfsg.orig/src/miscmenu.c +++ gv-3.6.3dfsg/src/miscmenu.c @@ -243,7 +243,8 @@ int i; MiscMenuEntry e; int menu_x, menu_y; - Dimension menu_width,entry_height,menu_border; + Dimension menu_width,menu_height,entry_height,menu_border; + Dimension screen_width,screen_height; Position button_x, button_y; for (i=0; gv_miscmenu_entries[i]; i++) { e = gv_miscmenu_entries[i]; @@ -271,14 +272,23 @@ n=0; XtSetArg(args[n], XtNwidth, &menu_width); ++n; + XtSetArg(args[n], XtNheight, &menu_height); ++n; XtSetArg(args[n], XtNborderWidth, &menu_border); ++n; XtGetValues(menuwidget, args, n); - + XtTranslateCoords(w, event->xbutton.x, event->xbutton.y, &button_x, &button_y); menu_x = button_x-menu_width/2 -menu_border; menu_y = button_y-entry_height/2; - n=0; + screen_width = WidthOfScreen(XtScreen(menuwidget)); + screen_height = HeightOfScreen(XtScreen(menuwidget)); + + if( menu_x + menu_width > screen_width && menu_width < screen_width ) + menu_x = screen_width - menu_width; + if( menu_y + menu_height > screen_height && menu_height < screen_height ) + menu_y = screen_height - menu_height; + + n=0; XtSetArg(args[n], XtNx, menu_x); n++; XtSetArg(args[n], XtNy, menu_y); n++; XtSetValues(menuwidget, args, n); --- gv-3.6.3dfsg.orig/src/widgets_misc.c +++ gv-3.6.3dfsg/src/widgets_misc.c @@ -94,6 +94,7 @@ static char *LineTextTr = "\ <Key>Return: no-op()\n\ +<Key>Escape: no-op()\n\ <Key>Down: no-op()\n\ <Key>Up: no-op()\n\ <Key>Linefeed: no-op()\n\ @@ -157,6 +158,7 @@ /*##################################################*/ static char *TextTr = "\ +<Key>Escape: no-op()\n\ Ctrl<Key>J: no-op()\n\ Ctrl<Key>M: no-op()\n\ Ctrl<Key>N: no-op()\n\ --- gv-3.6.3dfsg.orig/src/options_fs.c +++ gv-3.6.3dfsg/src/options_fs.c @@ -190,10 +190,13 @@ n=0; w = XtCreateManagedWidget("apply", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_fs_cb_apply,NULL); + XtInstallAccelerators(optionControl, w); w = XtCreateManagedWidget("save", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_fs_cb_save,NULL); + XtInstallAccelerators(optionControl, w); w = XtCreateManagedWidget("dismiss", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_cb_popdown,(XtPointer)gv_options_fs); + XtInstallAccelerators(optionControl, w); scratch_dir = widgets_createLabeledLineTextField("scratchDir", optionControl); default_save_dir = widgets_createLabeledLineTextField("saveDir", optionControl); --- gv-3.6.3dfsg.orig/src/main_globals.h +++ gv-3.6.3dfsg/src/main_globals.h @@ -276,6 +276,7 @@ EXTERN int color_p; EXTERN int grayscale_p; EXTERN int spartan_p; +EXTERN int widgetless_p; EXTERN int quiet_p; EXTERN int monochrome_p; EXTERN int media_p; --- gv-3.6.3dfsg.orig/src/options_setup.c +++ gv-3.6.3dfsg/src/options_setup.c @@ -79,10 +79,12 @@ static Widget popup=NULL,optionControl; static Widget eyeGuideToggle,reverseScrollingToggle,confirmPrintToggle,autoCenterToggle; static Widget pixmapToggle,miscLabel; -static Widget confirmLabel,confirmButton,confirmMenu,showTitleToggle; +static Widget confirmLabel,confirmButton,confirmMenu; +static Widget titleLabel,titleButton,titleMenu; static Widget print_command,scales,screenSize,medias,magmenu,miscmenu; static String confirm_quit_styles[4] = { "Never","When processing","Always", NULL }; +static String title_styles[4] = { "No title","Document title","File name", NULL }; static void options_setup_setOptionsAtEntry(); static void options_setup_create(); @@ -118,7 +120,6 @@ widgets_setToggle(confirmPrintToggle, (app_res.confirm_print ? 1 : 0)); widgets_setToggle(reverseScrollingToggle, (app_res.reverse_scrolling ? 1 : 0)); widgets_setToggle(eyeGuideToggle, (app_res.scrolling_eye_guide ? 1 : 0)); - widgets_setToggle(showTitleToggle, (app_res.show_title ? 1 : 0)); widgets_setToggle(pixmapToggle, (app_res.use_bpixmap ? 1 : 0)); widgets_setToggle(autoCenterToggle, (app_res.auto_center ? 1 : 0)); @@ -148,6 +149,11 @@ XtSetArg(args[n], XtNlabel, s); n++; XtSetValues(confirmButton, args, n); + s=title_styles[app_res.title_style]; + n=0; + XtSetArg(args[n], XtNlabel, s); n++; + XtSetValues(titleButton, args, n); + ENDMESSAGE(options_setup_setOptionsAtEntry) } @@ -179,9 +185,17 @@ cb_useBackingPixmap(NULL,(XtPointer)2,NULL); if (b != app_res.use_bpixmap) reopen=True; - b = SwitchIsSet(showTitleToggle) ? True : False; - if (b != app_res.show_title) { - cb_showTitle(NULL,(XtPointer)1,NULL); + n=0; + XtSetArg(args[n], XtNlabel, &l); n++; + XtGetValues(titleButton, args, n); + i=0;j=0; + while (i<3) { + if (!strcmp(title_styles[i],l)) j = i; + ++i; + } + if (j != app_res.title_style) { + app_res.title_style = j; + cb_showTitle(NULL,NULL,NULL); } options_textApply(print_command,NULL,&gv_print_command); @@ -322,14 +336,21 @@ ++argn; options_setArg(&(argi[argn]),&(argv[argn]),s_scrollingEyeGuide ,gv_class ,SwitchIsSet(eyeGuideToggle) ? t : f); ++argn; - options_setArg(&(argi[argn]),&(argv[argn]),s_showTitle ,gv_class ,SwitchIsSet(showTitleToggle) ? t : f); - ++argn; options_setArg(&(argi[argn]),&(argv[argn]),s_autoCenter ,gv_class ,SwitchIsSet(autoCenterToggle) ? t : f); ++argn; options_setArg(&(argi[argn]),&(argv[argn]),s_useBackingPixmap ,gv_class ,SwitchIsSet(pixmapToggle) ? t : f); ++argn; n=0; XtSetArg(args[n], XtNlabel, &l); n++; + XtGetValues(titleButton, args, n); + i=0; while (i<3) { + if (!strcmp(title_styles[i],l)) sprintf(tmp,"%d",i); + ++i; + } + options_setArg(&(argi[argn]),&(argv[argn]),s_titleStyle ,gv_class ,tmp); + ++argn; + n=0; + XtSetArg(args[n], XtNlabel, &l); n++; XtGetValues(confirmButton, args, n); i=0; while (i<3) { if (!strcmp(confirm_quit_styles[i],l)) sprintf(tmp,"%d",i); @@ -386,9 +407,13 @@ reverseScrollingToggle = XtCreateManagedWidget("scrolling",switchWidgetClass,optionControl,NULL,(Cardinal)0); eyeGuideToggle = XtCreateManagedWidget("eyeGuide",switchWidgetClass,optionControl,NULL,(Cardinal)0); autoCenterToggle = XtCreateManagedWidget("autoCenter",switchWidgetClass,optionControl,NULL,(Cardinal)0); - showTitleToggle = XtCreateManagedWidget("showTitle",switchWidgetClass,optionControl,NULL,(Cardinal)0); pixmapToggle = XtCreateManagedWidget("pixmap",switchWidgetClass,optionControl,NULL,(Cardinal)0); + options_createLabeledMenu("title",optionControl,&titleLabel,&titleButton,&titleMenu); + for (i = 0; title_styles[i]; i++) { + w = XtCreateManagedWidget(title_styles[i],smeBSBObjectClass, titleMenu,NULL,(Cardinal)0); + XtAddCallback(w, XtNcallback,options_cb_changeMenuLabel,NULL); + } options_createLabeledMenu("confirm",optionControl,&confirmLabel,&confirmButton,&confirmMenu); for (i = 0; confirm_quit_styles[i]; i++) { w = XtCreateManagedWidget(confirm_quit_styles[i],smeBSBObjectClass, confirmMenu,NULL,(Cardinal)0); @@ -398,10 +423,13 @@ n=0; w = XtCreateManagedWidget("apply", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_setup_cb_apply,NULL); + XtInstallAccelerators(optionControl, w); w = XtCreateManagedWidget("save", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_setup_cb_save,NULL); + XtInstallAccelerators(optionControl, w); w = XtCreateManagedWidget("dismiss", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_cb_popdown,(XtPointer)gv_options_setup); + XtInstallAccelerators(optionControl, w); miscmenu = widgets_createLabeledTextField("miscmenu", optionControl); magmenu = widgets_createLabeledTextField("magmenu", optionControl); --- gv-3.6.3dfsg.orig/src/main_resources.h +++ gv-3.6.3dfsg/src/main_resources.h @@ -33,8 +33,6 @@ #ifndef _GV_MAIN_RESOURCES_H_ #define _GV_MAIN_RESOURCES_H_ -#include "stdc.h" - /* Application resources */ typedef struct _AppResources { @@ -76,17 +74,18 @@ String style; String ad; String misc_menu; - Boolean show_title; + int title_style; + Boolean filename_as_title; Boolean use_bpixmap; } AppResources; #ifdef _GV_MAIN_C_ # define DECLARE_STRING(aaa) \ - static char CONCAT(n_,aaa)[] = STRING(aaa); \ - char * CONCAT(s_,aaa) = CONCAT(n_,aaa); + static char n_ ## aaa[] = #aaa; \ + char * s_ ## aaa = n_ ## aaa; #else # define DECLARE_STRING(aaa) \ - extern char * CONCAT(s_,aaa); + extern char * s_ ## aaa; #endif DECLARE_STRING(miscMenuEntries) @@ -142,7 +141,7 @@ DECLARE_STRING(style) DECLARE_STRING(ad) DECLARE_STRING(miscMenu) -DECLARE_STRING(showTitle) +DECLARE_STRING(titleStyle) DECLARE_STRING(useBackingPixmap) /*-------------------------------------------------------------*/ @@ -228,8 +227,8 @@ XtOffsetOf(AppResources, ad), XtRImmediate,(XtPointer)""}, {n_miscMenu, n_miscMenu, XtRString, sizeof(String), XtOffsetOf(AppResources, misc_menu), XtRImmediate,"update"}, - {n_showTitle, n_showTitle, XtRBoolean, sizeof(Boolean), - XtOffsetOf(AppResources, show_title), XtRImmediate, (XtPointer)True}, + {n_titleStyle, n_titleStyle, XtRInt, sizeof(int), + XtOffsetOf(AppResources, title_style), XtRImmediate, (XtPointer)1}, {n_useBackingPixmap,n_useBackingPixmap, XtRBoolean, sizeof(Boolean), XtOffsetOf(AppResources, use_bpixmap), XtRImmediate, (XtPointer)True}, }; --- gv-3.6.3dfsg.orig/src/main.c +++ gv-3.6.3dfsg/src/main.c @@ -99,7 +99,6 @@ #include "resource.h" #include "doc_misc.h" #include "version.h" -#include "stdc.h" #include "scale.h" #if defined(USE_SIGNAL_HANDLER) && (XtSpecificationRelease < 6) @@ -109,12 +108,12 @@ # include "gv_signal.h" #endif /* USE_SIGNAL_HANDLER */ - +#define BITSOF(name) name ## _bits +#define WIDTHOF(name) name ## _height +#define HEIGHTOF(name) name ## _width #define BITMAP_ARGS(name)\ - (const char*)CONCAT(name,_bits),\ - CONCAT(name,_width),\ - CONCAT(name,_height) - + (const char*)BITSOF(name), WIDTHOF(name), HEIGHTOF(name) + #include FALLBACK_ICON_PIXMAP #include FALLBACK_SELECTED_BITMAP #include FALLBACK_DOCUMENT_BITMAP @@ -165,6 +164,7 @@ ORIENTATION_ARG, PAGE_ARG, SPARTAN_ARG, + WIDGETLESS_ARG, USAGE_ARG, VERSION_ARG }; @@ -197,6 +197,7 @@ {"pixmap", no_argument, NULL, PIXMAP_ARG}, {"nopixmap", no_argument, NULL, NOPIXMAP_ARG}, {"color", no_argument, NULL, COLOR_ARG}, + {"grayscale", no_argument, NULL, GRAYSCALE_ARG}, {"help", no_argument, NULL, HELP_ARG}, {"quiet", no_argument, NULL, QUIET_ARG}, {"monochrome", no_argument, NULL, MONOCHROME_ARG}, @@ -206,6 +207,7 @@ {"page", required_argument, NULL, PAGE_ARG}, {"usage", no_argument, NULL, USAGE_ARG}, {"spartan", no_argument, NULL, SPARTAN_ARG}, + {"widgetless", no_argument, NULL, WIDGETLESS_ARG}, {"version", no_argument, NULL, VERSION_ARG}, {NULL, 0, NULL, 0} }; @@ -355,6 +357,7 @@ orientation_p = 0; page_p = 0; spartan_p = 0; + widgetless_p = 0; center_p = 0; nocenter_p = 0; scale_p = 0; @@ -574,6 +577,11 @@ opt_counter++; break; + case WIDGETLESS_ARG: + widgetless_p = 1; + opt_counter++; + break; + case VERSION_ARG: /* Show the program version */ fprintf(stdout,"%s\n", versionIdentification[0]); @@ -589,13 +597,10 @@ } /*### getting resources ############################################*/ - gv_database = resource_buildDatabase (XtDatabase(gv_display), - gv_display, + gv_database = resource_buildDatabase (gv_display, gv_class, gv_name, &argc,argv); - XrmSetDatabase (gv_display, gv_database); - /*### initializing widget set and creating application shell #########################*/ --- gv-3.6.3dfsg.orig/src/misc.c +++ gv-3.6.3dfsg/src/misc.c @@ -146,7 +146,6 @@ static Boolean set_new_scale PT(()); static Boolean set_new_orientation PT((int)); static Boolean set_new_pagemedia PT((int)); -static Widget build_label_menu PT((Widget,String,String,Pixmap)); static void layout_ghostview PT(()); #undef PT @@ -886,7 +885,7 @@ int toc_length; char *tocp; Pixmap bitmap; - String label,buttonlabel; + String label; BEGINMESSAGE(setup_ghostview) /* Reset to a known state. */ @@ -933,27 +932,6 @@ } } cb_showTitle(NULL,NULL,NULL); - if (show_title) { - if (doc && doc->title) { - buttonlabel = doc->title; - label = doc->title; - bitmap = app_res.document_bitmap; - } - else if (gv_filename) { - - buttonlabel = gv_filename; - label = gv_filename; - bitmap = None; - } else { - buttonlabel = ""; label = ""; - bitmap = None; - } - n=0; - XtSetArg(args[n], XtNlabel, buttonlabel); n++; - XtSetValues(titlebutton, args, n); - if (titlemenu) XtDestroyWidget(titlemenu); - titlemenu = build_label_menu(titlebutton, "title", label, bitmap); - } if (show_date) { if (doc && doc->date) { @@ -1595,7 +1573,7 @@ /* build_label_menu */ /*------------------------------------------------------------*/ -static Widget +Widget build_label_menu(parent, name, label, bitmap) Widget parent; String name, label; --- gv-3.6.3dfsg.orig/src/callbacks.c +++ gv-3.6.3dfsg/src/callbacks.c @@ -102,13 +102,15 @@ String t=NULL,s; Arg args[2]; Cardinal n; + Pixmap bitmap=None; BEGINMESSAGE(cb_showTitle) - if (client_data) { - app_res.show_title = app_res.show_title ? False : True; - } - if (app_res.show_title) { - if (doc && doc->title) t = doc->title; + if (app_res.title_style != 0) { + if (app_res.title_style == 1 && doc && doc->title) + { + t = doc->title; + bitmap = app_res.document_bitmap; + } else if (gv_filename) { t = gv_filename; @@ -125,6 +127,14 @@ XtSetArg(args[n], XtNtitle, s); n++; XtSetArg(args[n], XtNiconName, t); n++; XtSetValues(toplevel,args,n); + + if (show_title) { + n=0; + XtSetArg(args[n], XtNlabel, t); n++; + XtSetValues(titlebutton, args, n); + if (titlemenu) XtDestroyWidget(titlemenu); + titlemenu = build_label_menu(titlebutton, "title", t, bitmap); + } GV_XtFree(s); ENDMESSAGE(cb_showTitle) } --- gv-3.6.3dfsg.orig/src/dialog.c +++ gv-3.6.3dfsg/src/dialog.c @@ -134,6 +134,7 @@ } widgets_preferButton(pref,1); widgets_preferButton(pref_old,0); + XtInstallAccelerators(dialogText,pref_old); XtInstallAccelerators(dialogText,pref); ENDMESSAGE(action_preferDialogPopupButton) } --- gv-3.6.3dfsg.orig/src/resource.c +++ gv-3.6.3dfsg/src/resource.c @@ -114,17 +114,17 @@ #######################################################*/ XrmDatabase -resource_buildDatabase (XrmDatabase gvdb, +resource_buildDatabase ( Display *display, char *app_class, char *app_name, int *argcP, char **argv) { + XrmDatabase gvdb = XtDatabase(display); XrmDatabase db = NULL; String *sP; String s,t, rpath; - char *spartan_filename; char tmp[GV_MAX_FILENAME_LENGTH]; BEGINMESSAGE(resource_buildDatabase) @@ -148,6 +148,9 @@ } XrmCombineDatabase (gvdb, &db, True); + /* CombineDatabase destroyed gvdb==XtDatabase(display), which + * XtResolvePathname will access soon, so repair it: */ + XrmSetDatabase (display, db); /* ### user resources ################# */ INFMESSAGE(checking for user resources) @@ -211,7 +214,7 @@ } if (spartan_p) { - spartan_filename = (char *) + char *spartan_filename = (char *) GV_XtMalloc (strlen(GV_LIBDIR) + strlen ("/gv_spartan.dat") + 1); spartan_filename[0] = '\0'; strcat(spartan_filename, GV_LIBDIR); @@ -219,6 +222,16 @@ resource_putResource (&db, app_name, ".style", spartan_filename); GV_XtFree (spartan_filename); } + if (widgetless_p) + { + char *widgetless_filename = (char *) + GV_XtMalloc (strlen(GV_LIBDIR) + strlen ("/gv_widgetless.dat") + 1); + widgetless_filename[0] = '\0'; + strcat(widgetless_filename, GV_LIBDIR); + strcat(widgetless_filename, "/gv_widgetless.dat"); + resource_putResource (&db, app_name, ".style", widgetless_filename); + GV_XtFree (widgetless_filename); + } if (quiet_p) { resource_putResource (&db, app_name, ".gsQuiet", "True"); --- gv-3.6.3dfsg.orig/src/Makefile.in +++ gv-3.6.3dfsg/src/Makefile.in @@ -261,8 +261,8 @@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ -dist_pkglib_DATA = gv_system.ad gv_user.ad gv_class.ad gv_spartan.dat gv_user_res.dat gv_copyright.dat -appdefaultsdir = $(pkglibdir) +dist_pkglib_DATA = gv_system.ad gv_user.ad gv_class.ad gv_spartan.dat gv_user_res.dat gv_copyright.dat gv_widgetless.dat +appdefaultsdir = /etc/X11/app-defaults appdefaults_DATA = GV EXTRA_DIST = ad2c gv_font_res.dat gv_layout_res.dat gv_misc_res.dat Aaa_bison.yacc \ gv_current.xbm gv_doc.xbm gv_empty.xbm gv_even.xbm gv_icon.xbm gv_odd.xbm \ @@ -746,7 +746,7 @@ @echo "GV.useBackingPixmap: $(USE_BACKING_PIXMAP)" >> $(srcdir)/gv_make_res.dat @echo "GV*dirs: Home\n\\" >> $(srcdir)/gv_make_res.dat @echo " Tmp\n\\" >> $(srcdir)/gv_make_res.dat - @echo " /usr/doc\n\\" >> $(srcdir)/gv_make_res.dat + @echo " /usr/share/doc\n\\" >> $(srcdir)/gv_make_res.dat @echo " /usr/local/doc" >> $(srcdir)/gv_make_res.dat @echo "GV*filter: no .*" >> $(srcdir)/gv_make_res.dat @echo "GV*filters: None\n\\" >> $(srcdir)/gv_make_res.dat --- gv-3.6.3dfsg.orig/src/magmenu.c +++ gv-3.6.3dfsg/src/magmenu.c @@ -246,7 +246,8 @@ entry = XtCreateManagedWidget(gv_magmenu_entries[i]->name, smeBSBObjectClass,d->menuwidget,NULL,(Cardinal)0); { int menu_x, menu_y; - Dimension menu_width,entry_height,menu_border; + Dimension menu_width,entry_height,menu_border,menu_height; + Dimension screen_width,screen_height; Position button_x, button_y; if (!XtIsRealized(d->menuwidget)) XtRealizeWidget(d->menuwidget); @@ -255,12 +256,21 @@ XtGetValues(entry, args, n); n=0; XtSetArg(args[n], XtNwidth, &menu_width); ++n; + XtSetArg(args[n], XtNheight, &menu_height); ++n; XtSetArg(args[n], XtNborderWidth, &menu_border); ++n; XtGetValues(d->menuwidget, args, n); XtTranslateCoords(w, event->xbutton.x, event->xbutton.y, &button_x, &button_y); menu_x = button_x-menu_width/2 -menu_border; menu_y = button_y-entry_height/2; + + screen_width = WidthOfScreen(XtScreen(d->menuwidget)); + screen_height = HeightOfScreen(XtScreen(d->menuwidget)); + + if( menu_x + menu_width > screen_width && menu_width < screen_width ) + menu_x = screen_width - menu_width; + if( menu_y + menu_height > screen_height && menu_height < screen_height ) + menu_y = screen_height - menu_height; n=0; XtSetArg(args[n], XtNx, menu_x); n++; XtSetArg(args[n], XtNy, menu_y); n++; --- gv-3.6.3dfsg.orig/src/options_gs.c +++ gv-3.6.3dfsg/src/options_gs.c @@ -307,12 +307,16 @@ n=0; w = XtCreateManagedWidget("apply", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_gs_cb_apply,NULL); + XtInstallAccelerators(optionControl, w); w = XtCreateManagedWidget("save", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_gs_cb_save,NULL); + XtInstallAccelerators(optionControl, w); w = XtCreateManagedWidget("dismiss", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_cb_popdown, (XtPointer)gv_options_gs); + XtInstallAccelerators(optionControl, w); w = XtCreateManagedWidget("defaults", buttonWidgetClass,optionControl, args, n); XtAddCallback(w, XtNcallback, options_gs_cb_defaults, NULL); + XtInstallAccelerators(optionControl, w); options_gs_setOptionsAtEntry(); options_realize(popup,optionControl); --- gv-3.6.3dfsg.orig/src/FileSel.c +++ gv-3.6.3dfsg/src/FileSel.c @@ -167,11 +167,6 @@ <Btn3Down>: FS_textfieldFocusAction() extend-start()\ "; -static String TextField_accelerators = -"#override\n\ -<Key>Return: set() notify() unset()\ -"; - #if 0 #define FILE_SELECTION_LAYOUT \ "\ @@ -509,6 +504,22 @@ CreateTextField(&FS_FILTERFRAME,&FS_FILTER,value,text_trans,"filter",new); } + if (BUTTONS_RESOURCE > 0 && BUTTONS_RESOURCE < 5 ) { + XtInstallAccelerators(FS_PATH,FS_BUTTON1); + XtInstallAccelerators(FS_FILTER,FS_BUTTON1); + if (BUTTONS_RESOURCE > 1) { + XtInstallAccelerators(FS_PATH,FS_BUTTON2); + XtInstallAccelerators(FS_FILTER,FS_BUTTON2); + } + if (BUTTONS_RESOURCE > 2) { + XtInstallAccelerators(FS_PATH,FS_BUTTON3); + XtInstallAccelerators(FS_FILTER,FS_BUTTON3); + } + if (BUTTONS_RESOURCE > 3) { + XtInstallAccelerators(FS_PATH,FS_BUTTON4); + XtInstallAccelerators(FS_FILTER,FS_BUTTON4); + } + } SetPreferredButton(new,PREFERRED_BUTTON,TRUE); { @@ -875,22 +886,18 @@ FS_WIDGET w; char name[10]; Widget button; - static XtAccelerators accelerators = (XtAccelerators)NULL; USE_Arg(2); BEGINMESSAGE(SetPreferredButton) - if (!accelerators) accelerators=XtParseAcceleratorTable(TextField_accelerators); IMESSAGE(position) if (IS_BUTTON(position)) { POSITION_TO_BUTTON_NAME(position,name); button = XtNameToWidget((Widget)FS_FILE_SELECTION,name); if (!install) { - SET_Value(button,XtNaccelerators,(XtAccelerators)NULL); preferButton(button,0); if (PREFERRED_BUTTON==position) PREFERRED_BUTTON=0; } else { - SET_Value(button,XtNaccelerators,(XtAccelerators)accelerators); XtInstallAccelerators(FS_PATH,button); XtInstallAccelerators(FS_FILTER,button); preferButton(button,1); --- gv-3.6.3dfsg.orig/src/gv_user_res.dat +++ gv-3.6.3dfsg/src/gv_user_res.dat @@ -22,7 +22,7 @@ GV.confirmQuit: 1 GV.watchFile: False GV.watchFileFrequency: 1000 -GV.showTitle: True +GV.titleStyle: 1 GV.miscMenuEntries: redisplay \n\ # update \n\ stop \n\ --- gv-3.6.3dfsg.orig/src/misc.h +++ gv-3.6.3dfsg/src/misc.h @@ -127,6 +127,8 @@ #endif ); +Widget build_label_menu(Widget,String,String,Pixmap); + #endif /* _GV_MISC_H_ */ --- gv-3.6.3dfsg.orig/src/Aaa.c +++ gv-3.6.3dfsg/src/Aaa.c @@ -45,7 +45,6 @@ #define USE_LAYOUT_DEBUG */ -#include "stdc.h" #include "Aaa_intern.h" #include INC_XMU(Converters.h) --- gv-3.6.3dfsg.orig/src/gv_widgetless.dat +++ gv-3.6.3dfsg/src/gv_widgetless.dat @@ -0,0 +1,30 @@ + +GV*orientationButton*forcedWidth: 72 +GV.control.MButton.height: 1 +GV.control.MButton.forcedHeight: 1 +GV.control.MButton.borderWidth: 0 +GV.control.MButton.borderColor: green +GV.control.MButton.background: gray +GV.control.MButton.topShadowPixel: gray +GV.control.MButton.bottomShadowPixel: darkgray +GV.borderWidth: 0 +GV.control.borderWidth: 0 +GV.control.viewFrame.borderWidth: 0 +GV.control.viewFrame.viewClip.borderWidth: 0 +GV.control.viewFrame.viewClip.page.borderWidth: 0 + +GV*control.layout: \ +|v{ \ + |h{ \ + fileButton \ + stateButton \ + pageButton \ + orientationButton \ + scaleButton \ + pageMediaButton \ + } \ + |h{ \ + newtocFrame<-[1]*+200[1]-[1]> \ + viewFrame<+9999-100%*+9999-100%>\ + } \ +} --- gv-3.6.3dfsg.orig/ChangeLog +++ gv-3.6.3dfsg/ChangeLog @@ -1,3 +1,14 @@ +2007-07-16 Bernhard R. Link <brlink@debian.org> + + * src/main_resources.h: replace showTitle with titleStyle + * src/callbacks.c (cb_showTitle): also set the titlebutton, + depending on title_style instead of show_title + * src/misc.h (build_label_menu): new prototype + * src/misc.c (setup_ghostview): move titlebutton setting code to cb_showTitle + * src/options_setup.c: allow setting titleStyle instead of showTitle + * src/gv_layout_res.dat: titleStyle instead of showTitle + * src/texinfo.tex: document titleStyle + 2007-06-28 Jose E. Marchesi <jemarch@gnu.org> * src/ps.c (ps_gettext): Bypass trailing ')' when scanning a --- gv-3.6.3dfsg.orig/debian/patches/26497_widgetless +++ gv-3.6.3dfsg/debian/patches/26497_widgetless @@ -0,0 +1,199 @@ +This patch adds analogous to -spartan a -widgetless, which loads +a gv_widgetless.dat, which makes all buttons one pixel small and +hides everything but the PS area (and the page list, but making this +only visible when the PS area is too small to fit the whole window) + +Index: gv-3.6.3dfsg/src/Makefile.in +=================================================================== +--- gv-3.6.3dfsg.orig/src/Makefile.in 2007-07-28 17:20:24.000000000 +0200 ++++ gv-3.6.3dfsg/src/Makefile.in 2007-07-28 17:20:25.000000000 +0200 +@@ -261,7 +261,7 @@ + sharedstatedir = @sharedstatedir@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ +-dist_pkglib_DATA = gv_system.ad gv_user.ad gv_class.ad gv_spartan.dat gv_user_res.dat gv_copyright.dat ++dist_pkglib_DATA = gv_system.ad gv_user.ad gv_class.ad gv_spartan.dat gv_user_res.dat gv_copyright.dat gv_widgetless.dat + appdefaultsdir = /etc/X11/app-defaults + appdefaults_DATA = GV + EXTRA_DIST = ad2c gv_font_res.dat gv_layout_res.dat gv_misc_res.dat Aaa_bison.yacc \ +Index: gv-3.6.3dfsg/src/gv_widgetless.dat +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ gv-3.6.3dfsg/src/gv_widgetless.dat 2007-07-28 17:20:25.000000000 +0200 +@@ -0,0 +1,30 @@ ++ ++GV*orientationButton*forcedWidth: 72 ++GV.control.MButton.height: 1 ++GV.control.MButton.forcedHeight: 1 ++GV.control.MButton.borderWidth: 0 ++GV.control.MButton.borderColor: green ++GV.control.MButton.background: gray ++GV.control.MButton.topShadowPixel: gray ++GV.control.MButton.bottomShadowPixel: darkgray ++GV.borderWidth: 0 ++GV.control.borderWidth: 0 ++GV.control.viewFrame.borderWidth: 0 ++GV.control.viewFrame.viewClip.borderWidth: 0 ++GV.control.viewFrame.viewClip.page.borderWidth: 0 ++ ++GV*control.layout: \ ++|v{ \ ++ |h{ \ ++ fileButton \ ++ stateButton \ ++ pageButton \ ++ orientationButton \ ++ scaleButton \ ++ pageMediaButton \ ++ } \ ++ |h{ \ ++ newtocFrame<-[1]*+200[1]-[1]> \ ++ viewFrame<+9999-100%*+9999-100%>\ ++ } \ ++} +Index: gv-3.6.3dfsg/src/gv_message.h +=================================================================== +--- gv-3.6.3dfsg.orig/src/gv_message.h 2007-07-28 17:19:34.000000000 +0200 ++++ gv-3.6.3dfsg/src/gv_message.h 2007-07-28 17:20:25.000000000 +0200 +@@ -70,6 +70,7 @@ + [-]-style=FILE read and use additional resources from FILE. These resources\n\ + have lower priority than those provided on the context of --ad\n\ + [-]-spartan shortcut for --style=gv_spartan.dat\n\ ++ [-]-widgetless shortcut for --style=gv_widgetless.dat\n\ + [-]-version show gv version and exit\n\ + "; + +@@ -116,6 +117,8 @@ + [-style <resource file>]\n\ + # Shortcut for '-style gv_spartan.dat'\n\ + [-spartan]\n\ ++ # Shortcut for '-style gv_widgetless.dat'\n\ ++ [-widgetless]\n\ + # Toolkit Options\n\ + [<other toolkit options>]\n\ + # Show help\n\ +Index: gv-3.6.3dfsg/src/main.c +=================================================================== +--- gv-3.6.3dfsg.orig/src/main.c 2007-07-28 17:20:24.000000000 +0200 ++++ gv-3.6.3dfsg/src/main.c 2007-07-28 17:32:49.000000000 +0200 +@@ -164,6 +164,7 @@ + ORIENTATION_ARG, + PAGE_ARG, + SPARTAN_ARG, ++ WIDGETLESS_ARG, + USAGE_ARG, + VERSION_ARG + }; +@@ -206,6 +207,7 @@ + {"page", required_argument, NULL, PAGE_ARG}, + {"usage", no_argument, NULL, USAGE_ARG}, + {"spartan", no_argument, NULL, SPARTAN_ARG}, ++ {"widgetless", no_argument, NULL, WIDGETLESS_ARG}, + {"version", no_argument, NULL, VERSION_ARG}, + {NULL, 0, NULL, 0} + }; +@@ -355,6 +357,7 @@ + orientation_p = 0; + page_p = 0; + spartan_p = 0; ++ widgetless_p = 0; + center_p = 0; + nocenter_p = 0; + scale_p = 0; +@@ -574,6 +577,11 @@ + opt_counter++; + break; + ++ case WIDGETLESS_ARG: ++ widgetless_p = 1; ++ opt_counter++; ++ break; ++ + case VERSION_ARG: + /* Show the program version */ + fprintf(stdout,"%s\n", versionIdentification[0]); +Index: gv-3.6.3dfsg/src/resource.c +=================================================================== +--- gv-3.6.3dfsg.orig/src/resource.c 2007-07-28 17:19:34.000000000 +0200 ++++ gv-3.6.3dfsg/src/resource.c 2007-07-28 17:20:25.000000000 +0200 +@@ -124,7 +124,6 @@ + XrmDatabase db = NULL; + String *sP; + String s,t, rpath; +- char *spartan_filename; + char tmp[GV_MAX_FILENAME_LENGTH]; + + BEGINMESSAGE(resource_buildDatabase) +@@ -211,7 +210,7 @@ + } + if (spartan_p) + { +- spartan_filename = (char *) ++ char *spartan_filename = (char *) + GV_XtMalloc (strlen(GV_LIBDIR) + strlen ("/gv_spartan.dat") + 1); + spartan_filename[0] = '\0'; + strcat(spartan_filename, GV_LIBDIR); +@@ -219,6 +218,16 @@ + resource_putResource (&db, app_name, ".style", spartan_filename); + GV_XtFree (spartan_filename); + } ++ if (widgetless_p) ++ { ++ char *widgetless_filename = (char *) ++ GV_XtMalloc (strlen(GV_LIBDIR) + strlen ("/gv_widgetless.dat") + 1); ++ widgetless_filename[0] = '\0'; ++ strcat(widgetless_filename, GV_LIBDIR); ++ strcat(widgetless_filename, "/gv_widgetless.dat"); ++ resource_putResource (&db, app_name, ".style", widgetless_filename); ++ GV_XtFree (widgetless_filename); ++ } + if (quiet_p) + { + resource_putResource (&db, app_name, ".gsQuiet", "True"); +Index: gv-3.6.3dfsg/doc/gv.1 +=================================================================== +--- gv-3.6.3dfsg.orig/doc/gv.1 2007-07-28 17:20:24.000000000 +0200 ++++ gv-3.6.3dfsg/doc/gv.1 2007-07-28 17:20:25.000000000 +0200 +@@ -118,6 +118,9 @@ + [\-]\-spartan + shortcut for \fB\-\-style\fR=\fIgv_spartan\fR.dat + .TP ++[\-]\-widgetless ++shortcut for \fB\-\-style\fR=\fIgv_widgetless\fR.dat ++.TP + [\-]\-version + show gv version and exit + .SH "SEE ALSO" +Index: gv-3.6.3dfsg/doc/gv.texi +=================================================================== +--- gv-3.6.3dfsg.orig/doc/gv.texi 2007-07-28 17:20:24.000000000 +0200 ++++ gv-3.6.3dfsg/doc/gv.texi 2007-07-28 17:20:25.000000000 +0200 +@@ -120,6 +120,7 @@ + [-]-style=FILE read and use additional resources from FILE. These resources + have lower priority than those provided on the context of --ad + [-]-spartan shortcut for --style=gv_spartan.dat ++ [-]-widgetless shortcut for --style=gv_widgetless.dat + [-]-version show gv version and exit + @end verbatim + +@@ -211,6 +212,8 @@ + an update of the displayed document. This method + may be used by document creators to trigger gv + remotely. ++@item --widgetless ++This is a shortcut for @code{--style=gv_widgetless.dat}. + @end table + + @node Resources, Mouse and key bindings, Invoking gv, Top +Index: gv-3.6.3dfsg/src/main_globals.h +=================================================================== +--- gv-3.6.3dfsg.orig/src/main_globals.h 2007-07-28 17:25:14.000000000 +0200 ++++ gv-3.6.3dfsg/src/main_globals.h 2007-07-28 17:25:41.000000000 +0200 +@@ -276,6 +276,7 @@ + EXTERN int color_p; + EXTERN int grayscale_p; + EXTERN int spartan_p; ++EXTERN int widgetless_p; + EXTERN int quiet_p; + EXTERN int monochrome_p; + EXTERN int media_p; --- gv-3.6.3dfsg.orig/debian/patches/05_314947_FTBFS_GNU_kFreeBSD +++ gv-3.6.3dfsg/debian/patches/05_314947_FTBFS_GNU_kFreeBSD @@ -0,0 +1,15 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +@DPATCH@ +Index: gv/src/file.c +=================================================================== +--- gv.orig/src/file.c 2006-10-11 16:26:23.614125408 +0200 ++++ gv/src/file.c 2006-10-11 16:40:55.150631720 +0200 +@@ -282,7 +282,7 @@ file_fileIsNotUseful(fn) + #ifdef EFTYPE + errno = EFTYPE; + #else +- errno = ENODATA; ++ errno = ENOMSG; + #endif + } + IMESSAGE(r) --- gv-3.6.3dfsg.orig/debian/patches/299447and433898-nested-eps +++ gv-3.6.3dfsg/debian/patches/299447and433898-nested-eps @@ -0,0 +1,33 @@ +This patch fixes %%EndDocument handling in two aspects: + - allow %%BeginDocument/%%EndDocument pairs within such a pair + - do not misdetect %xxxxDocument headers as %%EndDocument + +Index: gv-3.6.3dfsg/src/ps.c +=================================================================== +--- gv-3.6.3dfsg.orig/src/ps.c 2007-07-28 16:22:27.000000000 +0200 ++++ gv-3.6.3dfsg/src/ps.c 2007-07-28 16:27:12.000000000 +0200 +@@ -1738,6 +1738,7 @@ + { + unsigned int nbytes=0; + int skipped=0; ++ int nesting_level=0; + char *line; + + BEGINMESSAGE(readline) +@@ -1796,7 +1797,15 @@ + #endif + if (!IS_COMMENT("Begin")) {} /* Do nothing */ + else if IS_BEGIN("Document:") { /* Skip the EPS without handling its content */ +- while (line && !IS_END("Document")) { ++ nesting_level=1; ++ line = ps_io_fgetchars(fd,-1); ++ if (line) *line_lenP += FD_LINE_LEN; ++ while (line) { ++ if (IS_COMMENT("Begin") && IS_BEGIN("Document:")) ++ nesting_level++; ++ else if (IS_COMMENT("End") && IS_END("Document")) ++ nesting_level--; ++ if (nesting_level == 0) break; + line = ps_io_fgetchars(fd,-1); + if (line) *line_lenP += FD_LINE_LEN; + } --- gv-3.6.3dfsg.orig/debian/patches/439067resources +++ gv-3.6.3dfsg/debian/patches/439067resources @@ -0,0 +1,58 @@ +--- a/src/main.c 2007-08-27 17:20:30.000000000 +0200 ++++ b/src/main.c 2007-08-27 17:05:02.000000000 +0200 +@@ -597,13 +597,10 @@ + } + + /*### getting resources ############################################*/ +- gv_database = resource_buildDatabase (XtDatabase(gv_display), +- gv_display, ++ gv_database = resource_buildDatabase (gv_display, + gv_class, + gv_name, + &argc,argv); +- XrmSetDatabase (gv_display, gv_database); +- + + /*### initializing widget set and creating application shell #########################*/ + +--- a/src/resource.c 2007-08-27 17:20:30.000000000 +0200 ++++ b/src/resource.c 2007-08-27 17:08:50.000000000 +0200 +@@ -114,13 +114,14 @@ + #######################################################*/ + + XrmDatabase +-resource_buildDatabase (XrmDatabase gvdb, ++resource_buildDatabase ( + Display *display, + char *app_class, + char *app_name, + int *argcP, + char **argv) + { ++ XrmDatabase gvdb = XtDatabase(display); + XrmDatabase db = NULL; + String *sP; + String s,t, rpath; +@@ -147,6 +148,9 @@ + } + + XrmCombineDatabase (gvdb, &db, True); ++ /* CombineDatabase destroyed gvdb==XtDatabase(display), which ++ * XtResolvePathname will access soon, so repair it: */ ++ XrmSetDatabase (display, db); + + /* ### user resources ################# */ + INFMESSAGE(checking for user resources) +--- a/src/resource.h 2007-06-27 16:42:13.000000000 +0200 ++++ b/src/resource.h 2007-08-27 17:09:25.000000000 +0200 +@@ -38,9 +38,8 @@ + #endif + ); + +-extern XrmDatabase resource_buildDatabase ( ++extern XrmDatabase resource_buildDatabase ( + #if NeedFunctionPrototypes +- XrmDatabase , + Display *, + char *, + char *, --- gv-3.6.3dfsg.orig/debian/patches/no_non_free_stdc_h +++ gv-3.6.3dfsg/debian/patches/no_non_free_stdc_h @@ -0,0 +1,70 @@ +Index: gv-3.6.3/src/Aaa.c +=================================================================== +--- gv-3.6.3.orig/src/Aaa.c 2007-07-15 18:59:00.000000000 +0200 ++++ gv-3.6.3/src/Aaa.c 2007-07-15 19:00:24.000000000 +0200 +@@ -45,7 +45,6 @@ + #define USE_LAYOUT_DEBUG + */ + +-#include "stdc.h" + #include "Aaa_intern.h" + #include INC_XMU(Converters.h) + +Index: gv-3.6.3/src/main.c +=================================================================== +--- gv-3.6.3.orig/src/main.c 2007-07-15 18:59:08.000000000 +0200 ++++ gv-3.6.3/src/main.c 2007-07-15 19:27:12.000000000 +0200 +@@ -99,7 +99,6 @@ + #include "resource.h" + #include "doc_misc.h" + #include "version.h" +-#include "stdc.h" + #include "scale.h" + + #if defined(USE_SIGNAL_HANDLER) && (XtSpecificationRelease < 6) +@@ -109,12 +108,12 @@ + # include "gv_signal.h" + #endif /* USE_SIGNAL_HANDLER */ + +- ++#define BITSOF(name) name ## _bits ++#define WIDTHOF(name) name ## _height ++#define HEIGHTOF(name) name ## _width + #define BITMAP_ARGS(name)\ +- (const char*)CONCAT(name,_bits),\ +- CONCAT(name,_width),\ +- CONCAT(name,_height) +- ++ (const char*)BITSOF(name), WIDTHOF(name), HEIGHTOF(name) ++ + #include FALLBACK_ICON_PIXMAP + #include FALLBACK_SELECTED_BITMAP + #include FALLBACK_DOCUMENT_BITMAP +Index: gv-3.6.3/src/main_resources.h +=================================================================== +--- gv-3.6.3.orig/src/main_resources.h 2007-07-15 18:59:12.000000000 +0200 ++++ gv-3.6.3/src/main_resources.h 2007-07-15 18:59:21.000000000 +0200 +@@ -33,8 +33,6 @@ + #ifndef _GV_MAIN_RESOURCES_H_ + #define _GV_MAIN_RESOURCES_H_ + +-#include "stdc.h" +- + /* Application resources */ + + typedef struct _AppResources { +@@ -82,11 +80,11 @@ + + #ifdef _GV_MAIN_C_ + # define DECLARE_STRING(aaa) \ +- static char CONCAT(n_,aaa)[] = STRING(aaa); \ +- char * CONCAT(s_,aaa) = CONCAT(n_,aaa); ++ static char n_ ## aaa[] = #aaa; \ ++ char * s_ ## aaa = n_ ## aaa; + #else + # define DECLARE_STRING(aaa) \ +- extern char * CONCAT(s_,aaa); ++ extern char * s_ ## aaa; + #endif + + DECLARE_STRING(miscMenuEntries) --- gv-3.6.3dfsg.orig/debian/patches/README +++ gv-3.6.3dfsg/debian/patches/README @@ -0,0 +1,14 @@ +This directory contains a number of patches applied to the Debian package +of gv. They are here for archiving and documentation reasons, they are not +actively used when building the package, but everything is also found directly +applied in the .diff.gz. + +If you are: + - patching or NMUing this package: + You can just ignore this directory and apply the patch directly + on top of all those in the .diff.gz. + I'll sort it out and put it here with the next maintainer upload. + + - intrested in looking what is modified: + You can either look here to see what changes belong together, or + take a look at all the changes together. --- gv-3.6.3dfsg.orig/debian/patches/texinfo-dircategory +++ gv-3.6.3dfsg/debian/patches/texinfo-dircategory @@ -0,0 +1,12 @@ +Index: gv/doc/gv.texi +=================================================================== +--- gv.orig/doc/gv.texi 2006-11-13 15:31:31.000000000 +0100 ++++ gv/doc/gv.texi 2006-11-13 15:35:53.770119024 +0100 +@@ -22,6 +22,7 @@ any later version published by the Free + @end quotation + @end copying + ++@dircategory Viewers + @direntry + * gv: (gv). The GNU PostScript and PDF viewer. + @end direntry --- gv-3.6.3dfsg.orig/debian/patches/01_debian_config +++ gv-3.6.3dfsg/debian/patches/01_debian_config @@ -0,0 +1,22 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +@DPATCH@ +--- gv-3.6.1.orig/src/Makefile.in ++++ gv-3.6.1/src/Makefile.in +@@ -233,7 +233,7 @@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + dist_pkglib_DATA = gv_system.ad gv_user.ad gv_class.ad gv_spartan.dat gv_user_res.dat gv_copyright.dat +-appdefaultsdir = $(pkglibdir) ++appdefaultsdir = /etc/X11/app-defaults + appdefaults_DATA = GV + EXTRA_DIST = ad2c gv_font_res.dat gv_layout_res.dat gv_misc_res.dat Aaa_bison.yacc \ + gv_current.xbm gv_doc.xbm gv_empty.xbm gv_even.xbm gv_icon.xbm gv_odd.xbm \ +@@ -805,7 +805,7 @@ + @echo "GV.useBackingPixmap: $(USE_BACKING_PIXMAP)" >> $(srcdir)/gv_make_res.dat + @echo "GV*dirs: Home\n\\" >> $(srcdir)/gv_make_res.dat + @echo " Tmp\n\\" >> $(srcdir)/gv_make_res.dat +- @echo " /usr/doc\n\\" >> $(srcdir)/gv_make_res.dat ++ @echo " /usr/share/doc\n\\" >> $(srcdir)/gv_make_res.dat + @echo " /usr/local/doc" >> $(srcdir)/gv_make_res.dat + @echo "GV*filter: no .*" >> $(srcdir)/gv_make_res.dat + @echo "GV*filters: None\n\\" >> $(srcdir)/gv_make_res.dat --- gv-3.6.3dfsg.orig/debian/patches/manual-whatis +++ gv-3.6.3dfsg/debian/patches/manual-whatis @@ -0,0 +1,13 @@ +Index: gv/doc/gv.1 +=================================================================== +--- gv.orig/doc/gv.1 2006-10-11 16:26:32.021847240 +0200 ++++ gv/doc/gv.1 2006-10-11 16:44:13.001553808 +0200 +@@ -1,7 +1,7 @@ + .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. + .TH GV "1" "June 2007" "gv 3.6.3" "User Commands" + .SH NAME +-gv \- manual page for gv 3.6.3 ++gv \- PostScript and PDF viewer + .SH SYNOPSIS + .B gv + [\fIOPTION\fR]... [\fIFILE\fR] --- gv-3.6.3dfsg.orig/debian/patches/95266_filename_as_title +++ gv-3.6.3dfsg/debian/patches/95266_filename_as_title @@ -0,0 +1,341 @@ +This patch replaces the Option whether the title bar of the window +should display the title with an option whether nothing, the filename +or the PS title (with the filename as fallback) should be displayed +in both the window title and the title label within the window. + +Index: gv-3.6.3dfsg/src/callbacks.c +=================================================================== +--- gv-3.6.3dfsg.orig/src/callbacks.c 2007-06-25 23:09:32.000000000 +0200 ++++ gv-3.6.3dfsg/src/callbacks.c 2007-07-28 16:33:56.000000000 +0200 +@@ -102,13 +102,15 @@ + String t=NULL,s; + Arg args[2]; + Cardinal n; ++ Pixmap bitmap=None; + + BEGINMESSAGE(cb_showTitle) +- if (client_data) { +- app_res.show_title = app_res.show_title ? False : True; +- } +- if (app_res.show_title) { +- if (doc && doc->title) t = doc->title; ++ if (app_res.title_style != 0) { ++ if (app_res.title_style == 1 && doc && doc->title) ++ { ++ t = doc->title; ++ bitmap = app_res.document_bitmap; ++ } + else if (gv_filename) + { + t = gv_filename; +@@ -125,6 +127,14 @@ + XtSetArg(args[n], XtNtitle, s); n++; + XtSetArg(args[n], XtNiconName, t); n++; + XtSetValues(toplevel,args,n); ++ ++ if (show_title) { ++ n=0; ++ XtSetArg(args[n], XtNlabel, t); n++; ++ XtSetValues(titlebutton, args, n); ++ if (titlemenu) XtDestroyWidget(titlemenu); ++ titlemenu = build_label_menu(titlebutton, "title", t, bitmap); ++ } + GV_XtFree(s); + ENDMESSAGE(cb_showTitle) + } +Index: gv-3.6.3dfsg/src/main_resources.h +=================================================================== +--- gv-3.6.3dfsg.orig/src/main_resources.h 2007-07-28 16:31:11.000000000 +0200 ++++ gv-3.6.3dfsg/src/main_resources.h 2007-07-28 16:33:56.000000000 +0200 +@@ -74,7 +74,8 @@ + String style; + String ad; + String misc_menu; +- Boolean show_title; ++ int title_style; ++ Boolean filename_as_title; + Boolean use_bpixmap; + } AppResources; + +@@ -140,7 +141,7 @@ + DECLARE_STRING(style) + DECLARE_STRING(ad) + DECLARE_STRING(miscMenu) +-DECLARE_STRING(showTitle) ++DECLARE_STRING(titleStyle) + DECLARE_STRING(useBackingPixmap) + + /*-------------------------------------------------------------*/ +@@ -226,8 +227,8 @@ + XtOffsetOf(AppResources, ad), XtRImmediate,(XtPointer)""}, + {n_miscMenu, n_miscMenu, XtRString, sizeof(String), + XtOffsetOf(AppResources, misc_menu), XtRImmediate,"update"}, +- {n_showTitle, n_showTitle, XtRBoolean, sizeof(Boolean), +- XtOffsetOf(AppResources, show_title), XtRImmediate, (XtPointer)True}, ++ {n_titleStyle, n_titleStyle, XtRInt, sizeof(int), ++ XtOffsetOf(AppResources, title_style), XtRImmediate, (XtPointer)1}, + {n_useBackingPixmap,n_useBackingPixmap, XtRBoolean, sizeof(Boolean), + XtOffsetOf(AppResources, use_bpixmap), XtRImmediate, (XtPointer)True}, + }; +Index: gv-3.6.3dfsg/src/misc.c +=================================================================== +--- gv-3.6.3dfsg.orig/src/misc.c 2007-06-25 23:14:38.000000000 +0200 ++++ gv-3.6.3dfsg/src/misc.c 2007-07-28 16:33:56.000000000 +0200 +@@ -146,7 +146,6 @@ + static Boolean set_new_scale PT(()); + static Boolean set_new_orientation PT((int)); + static Boolean set_new_pagemedia PT((int)); +-static Widget build_label_menu PT((Widget,String,String,Pixmap)); + static void layout_ghostview PT(()); + #undef PT + +@@ -886,7 +885,7 @@ + int toc_length; + char *tocp; + Pixmap bitmap; +- String label,buttonlabel; ++ String label; + + BEGINMESSAGE(setup_ghostview) + /* Reset to a known state. */ +@@ -933,27 +932,6 @@ + } + } + cb_showTitle(NULL,NULL,NULL); +- if (show_title) { +- if (doc && doc->title) { +- buttonlabel = doc->title; +- label = doc->title; +- bitmap = app_res.document_bitmap; +- } +- else if (gv_filename) { +- +- buttonlabel = gv_filename; +- label = gv_filename; +- bitmap = None; +- } else { +- buttonlabel = ""; label = ""; +- bitmap = None; +- } +- n=0; +- XtSetArg(args[n], XtNlabel, buttonlabel); n++; +- XtSetValues(titlebutton, args, n); +- if (titlemenu) XtDestroyWidget(titlemenu); +- titlemenu = build_label_menu(titlebutton, "title", label, bitmap); +- } + + if (show_date) { + if (doc && doc->date) { +@@ -1595,7 +1573,7 @@ + /* build_label_menu */ + /*------------------------------------------------------------*/ + +-static Widget ++Widget + build_label_menu(parent, name, label, bitmap) + Widget parent; + String name, label; +Index: gv-3.6.3dfsg/src/options_setup.c +=================================================================== +--- gv-3.6.3dfsg.orig/src/options_setup.c 2007-07-28 16:21:14.000000000 +0200 ++++ gv-3.6.3dfsg/src/options_setup.c 2007-07-28 16:33:56.000000000 +0200 +@@ -79,10 +79,12 @@ + static Widget popup=NULL,optionControl; + static Widget eyeGuideToggle,reverseScrollingToggle,confirmPrintToggle,autoCenterToggle; + static Widget pixmapToggle,miscLabel; +-static Widget confirmLabel,confirmButton,confirmMenu,showTitleToggle; ++static Widget confirmLabel,confirmButton,confirmMenu; ++static Widget titleLabel,titleButton,titleMenu; + static Widget print_command,scales,screenSize,medias,magmenu,miscmenu; + + static String confirm_quit_styles[4] = { "Never","When processing","Always", NULL }; ++static String title_styles[4] = { "No title","Document title","File name", NULL }; + + static void options_setup_setOptionsAtEntry(); + static void options_setup_create(); +@@ -118,7 +120,6 @@ + widgets_setToggle(confirmPrintToggle, (app_res.confirm_print ? 1 : 0)); + widgets_setToggle(reverseScrollingToggle, (app_res.reverse_scrolling ? 1 : 0)); + widgets_setToggle(eyeGuideToggle, (app_res.scrolling_eye_guide ? 1 : 0)); +- widgets_setToggle(showTitleToggle, (app_res.show_title ? 1 : 0)); + widgets_setToggle(pixmapToggle, (app_res.use_bpixmap ? 1 : 0)); + widgets_setToggle(autoCenterToggle, (app_res.auto_center ? 1 : 0)); + +@@ -148,6 +149,11 @@ + XtSetArg(args[n], XtNlabel, s); n++; + XtSetValues(confirmButton, args, n); + ++ s=title_styles[app_res.title_style]; ++ n=0; ++ XtSetArg(args[n], XtNlabel, s); n++; ++ XtSetValues(titleButton, args, n); ++ + ENDMESSAGE(options_setup_setOptionsAtEntry) + } + +@@ -179,9 +185,17 @@ + cb_useBackingPixmap(NULL,(XtPointer)2,NULL); + if (b != app_res.use_bpixmap) reopen=True; + +- b = SwitchIsSet(showTitleToggle) ? True : False; +- if (b != app_res.show_title) { +- cb_showTitle(NULL,(XtPointer)1,NULL); ++ n=0; ++ XtSetArg(args[n], XtNlabel, &l); n++; ++ XtGetValues(titleButton, args, n); ++ i=0;j=0; ++ while (i<3) { ++ if (!strcmp(title_styles[i],l)) j = i; ++ ++i; ++ } ++ if (j != app_res.title_style) { ++ app_res.title_style = j; ++ cb_showTitle(NULL,NULL,NULL); + } + + options_textApply(print_command,NULL,&gv_print_command); +@@ -322,14 +336,21 @@ + ++argn; + options_setArg(&(argi[argn]),&(argv[argn]),s_scrollingEyeGuide ,gv_class ,SwitchIsSet(eyeGuideToggle) ? t : f); + ++argn; +- options_setArg(&(argi[argn]),&(argv[argn]),s_showTitle ,gv_class ,SwitchIsSet(showTitleToggle) ? t : f); +- ++argn; + options_setArg(&(argi[argn]),&(argv[argn]),s_autoCenter ,gv_class ,SwitchIsSet(autoCenterToggle) ? t : f); + ++argn; + options_setArg(&(argi[argn]),&(argv[argn]),s_useBackingPixmap ,gv_class ,SwitchIsSet(pixmapToggle) ? t : f); + ++argn; + n=0; + XtSetArg(args[n], XtNlabel, &l); n++; ++ XtGetValues(titleButton, args, n); ++ i=0; while (i<3) { ++ if (!strcmp(title_styles[i],l)) sprintf(tmp,"%d",i); ++ ++i; ++ } ++ options_setArg(&(argi[argn]),&(argv[argn]),s_titleStyle ,gv_class ,tmp); ++ ++argn; ++ n=0; ++ XtSetArg(args[n], XtNlabel, &l); n++; + XtGetValues(confirmButton, args, n); + i=0; while (i<3) { + if (!strcmp(confirm_quit_styles[i],l)) sprintf(tmp,"%d",i); +@@ -386,9 +407,13 @@ + reverseScrollingToggle = XtCreateManagedWidget("scrolling",switchWidgetClass,optionControl,NULL,(Cardinal)0); + eyeGuideToggle = XtCreateManagedWidget("eyeGuide",switchWidgetClass,optionControl,NULL,(Cardinal)0); + autoCenterToggle = XtCreateManagedWidget("autoCenter",switchWidgetClass,optionControl,NULL,(Cardinal)0); +- showTitleToggle = XtCreateManagedWidget("showTitle",switchWidgetClass,optionControl,NULL,(Cardinal)0); + pixmapToggle = XtCreateManagedWidget("pixmap",switchWidgetClass,optionControl,NULL,(Cardinal)0); + ++ options_createLabeledMenu("title",optionControl,&titleLabel,&titleButton,&titleMenu); ++ for (i = 0; title_styles[i]; i++) { ++ w = XtCreateManagedWidget(title_styles[i],smeBSBObjectClass, titleMenu,NULL,(Cardinal)0); ++ XtAddCallback(w, XtNcallback,options_cb_changeMenuLabel,NULL); ++ } + options_createLabeledMenu("confirm",optionControl,&confirmLabel,&confirmButton,&confirmMenu); + for (i = 0; confirm_quit_styles[i]; i++) { + w = XtCreateManagedWidget(confirm_quit_styles[i],smeBSBObjectClass, confirmMenu,NULL,(Cardinal)0); +Index: gv-3.6.3dfsg/src/gv_layout_res.dat +=================================================================== +--- gv-3.6.3dfsg.orig/src/gv_layout_res.dat 2004-11-12 20:07:56.000000000 +0100 ++++ gv-3.6.3dfsg/src/gv_layout_res.dat 2007-07-28 16:33:56.000000000 +0200 +@@ -247,6 +247,10 @@ + $sss\ + confirmButton<+[1]*>\ + $sss\ ++ titleLabel<+[1]*>\ ++ $sss\ ++ titleButton<+[1]*>\ ++ $sss\ + misc<+[1]*>\ + $sss\ + scrolling<+[1]*>\ +@@ -257,8 +261,6 @@ + $sss\ + autoCenter<+[1]*>\ + $sss\ +- showTitle<+[1]*>\ +- $sss\ + pixmap<+[1]*>\ + $sss\ + magmenuLabel<+[1]*>\ +Index: gv-3.6.3dfsg/src/gv_misc_res.dat +=================================================================== +--- gv-3.6.3dfsg.orig/src/gv_misc_res.dat 2007-07-28 16:21:14.000000000 +0200 ++++ gv-3.6.3dfsg/src/gv_misc_res.dat 2007-07-28 16:33:56.000000000 +0200 +@@ -273,7 +273,7 @@ + GV*eof.Label: Ignore EOF comments + GV*antialias.Label: Antialias + GV*watchFile.Label: Watch file +-GV*showTitle.Label: Show Title ++GV*titleLabel.Label: Show Title + GV*pixmap.Label: Backing Pixmap + GV*size.Label: Automatic resizing + GV*watch.Label: Watch File +Index: gv-3.6.3dfsg/src/misc.h +=================================================================== +--- gv-3.6.3dfsg.orig/src/misc.h 2005-03-31 23:14:27.000000000 +0200 ++++ gv-3.6.3dfsg/src/misc.h 2007-07-28 16:33:56.000000000 +0200 +@@ -127,6 +127,8 @@ + #endif + ); + ++Widget build_label_menu(Widget,String,String,Pixmap); ++ + #endif /* _GV_MISC_H_ */ + + +Index: gv-3.6.3dfsg/src/gv_user_res.dat +=================================================================== +--- gv-3.6.3dfsg.orig/src/gv_user_res.dat 2004-11-15 14:54:42.000000000 +0100 ++++ gv-3.6.3dfsg/src/gv_user_res.dat 2007-07-28 16:33:56.000000000 +0200 +@@ -22,7 +22,7 @@ + GV.confirmQuit: 1 + GV.watchFile: False + GV.watchFileFrequency: 1000 +-GV.showTitle: True ++GV.titleStyle: 1 + GV.miscMenuEntries: redisplay \n\ + # update \n\ + stop \n\ +Index: gv-3.6.3dfsg/ChangeLog +=================================================================== +--- gv-3.6.3dfsg.orig/ChangeLog 2007-06-28 22:56:51.000000000 +0200 ++++ gv-3.6.3dfsg/ChangeLog 2007-07-28 16:33:56.000000000 +0200 +@@ -1,3 +1,14 @@ ++2007-07-16 Bernhard R. Link <brlink@debian.org> ++ ++ * src/main_resources.h: replace showTitle with titleStyle ++ * src/callbacks.c (cb_showTitle): also set the titlebutton, ++ depending on title_style instead of show_title ++ * src/misc.h (build_label_menu): new prototype ++ * src/misc.c (setup_ghostview): move titlebutton setting code to cb_showTitle ++ * src/options_setup.c: allow setting titleStyle instead of showTitle ++ * src/gv_layout_res.dat: titleStyle instead of showTitle ++ * src/texinfo.tex: document titleStyle ++ + 2007-06-28 Jose E. Marchesi <jemarch@gnu.org> + + * src/ps.c (ps_gettext): Bypass trailing ')' when scanning a +Index: gv-3.6.3dfsg/doc/gv.texi +=================================================================== +--- gv-3.6.3dfsg.orig/doc/gv.texi 2007-07-28 16:21:14.000000000 +0200 ++++ gv-3.6.3dfsg/doc/gv.texi 2007-07-28 16:33:56.000000000 +0200 +@@ -474,12 +474,17 @@ + @code{line} + @end itemize + +-@item showTitle ++@item titleStyle + Whether the name of the displayed document should be shown in the + title bar of the window. The name of gv's icon will also change + accordingly if this resource is set to @code{True}. + +-It defaults to @code{True}. ++If this is @code{0}, no title will be shown. ++@code{1} means to show a the document title or the file name if there is ++no document title. ++Only the file name is shown with @code{2}. ++ ++It defaults to @code{1}. + @item maximumWidth, maximumHeight + When resizing gv will not attempt to exceed the size specified + by these resources. --- gv-3.6.3dfsg.orig/debian/patches/201439_escape +++ gv-3.6.3dfsg/debian/patches/201439_escape @@ -0,0 +1,228 @@ +Index: gv/src/dialog.c +=================================================================== +--- gv.orig/src/dialog.c 2006-09-07 14:30:27.221001776 +0200 ++++ gv/src/dialog.c 2006-09-07 14:36:25.228576352 +0200 +@@ -134,6 +134,7 @@ action_preferDialogPopupButton(w, event, + } + widgets_preferButton(pref,1); + widgets_preferButton(pref_old,0); ++ XtInstallAccelerators(dialogText,pref_old); + XtInstallAccelerators(dialogText,pref); + ENDMESSAGE(action_preferDialogPopupButton) + } +Index: gv/src/FileSel.c +=================================================================== +--- gv.orig/src/FileSel.c 2006-09-07 14:30:27.243998280 +0200 ++++ gv/src/FileSel.c 2006-09-07 14:36:43.892738968 +0200 +@@ -192,11 +192,6 @@ Meta<Key>Z: no-op()\n\ + <Btn3Down>: FS_textfieldFocusAction() extend-start()\ + "; + +-static String TextField_accelerators = +-"#override\n\ +-<Key>Return: set() notify() unset()\ +-"; +- + #if 0 + #define FILE_SELECTION_LAYOUT \ + "\ +@@ -534,6 +529,22 @@ static void Initialize(request, new, arg + CreateTextField(&FS_FILTERFRAME,&FS_FILTER,value,text_trans,"filter",new); + } + ++ if (BUTTONS_RESOURCE > 0 && BUTTONS_RESOURCE < 5 ) { ++ XtInstallAccelerators(FS_PATH,FS_BUTTON1); ++ XtInstallAccelerators(FS_FILTER,FS_BUTTON1); ++ if (BUTTONS_RESOURCE > 1) { ++ XtInstallAccelerators(FS_PATH,FS_BUTTON2); ++ XtInstallAccelerators(FS_FILTER,FS_BUTTON2); ++ } ++ if (BUTTONS_RESOURCE > 2) { ++ XtInstallAccelerators(FS_PATH,FS_BUTTON3); ++ XtInstallAccelerators(FS_FILTER,FS_BUTTON3); ++ } ++ if (BUTTONS_RESOURCE > 3) { ++ XtInstallAccelerators(FS_PATH,FS_BUTTON4); ++ XtInstallAccelerators(FS_FILTER,FS_BUTTON4); ++ } ++ } + SetPreferredButton(new,PREFERRED_BUTTON,TRUE); + + { +@@ -929,22 +940,18 @@ static void SetPreferredButton(w,positio + FS_WIDGET w; + char name[10]; + Widget button; +- static XtAccelerators accelerators = (XtAccelerators)NULL; + USE_Arg(2); + + BEGINMESSAGE(SetPreferredButton) +- if (!accelerators) accelerators=XtParseAcceleratorTable(TextField_accelerators); + + IMESSAGE(position) + if (IS_BUTTON(position)) { + POSITION_TO_BUTTON_NAME(position,name); + button = XtNameToWidget((Widget)FS_FILE_SELECTION,name); + if (!install) { +- SET_Value(button,XtNaccelerators,(XtAccelerators)NULL); + preferButton(button,0); + if (PREFERRED_BUTTON==position) PREFERRED_BUTTON=0; + } else { +- SET_Value(button,XtNaccelerators,(XtAccelerators)accelerators); + XtInstallAccelerators(FS_PATH,button); + XtInstallAccelerators(FS_FILTER,button); + preferButton(button,1); +Index: gv/src/gv_misc_res.dat +=================================================================== +--- gv.orig/src/gv_misc_res.dat 2006-09-07 14:34:48.696251496 +0200 ++++ gv/src/gv_misc_res.dat 2006-09-07 14:36:25.229576200 +0200 +@@ -677,6 +677,10 @@ GV.TopLevelShell.Aaa.baseTranslations:#r + GV.TopLevelShell*Button.accelerators:#override\n\ + <Key>Return: set() notify() unset() + ++GV.TopLevelShell*dismiss.accelerators:#override\n\ ++ <Key>Escape: set() notify() unset()\n\ ++ <Key>Return: set() notify() unset() ++ + GV.TopLevelShell*Button.baseTranslations: #replace\n\ + <Key>Return: set() notify() unset()\n\ + <LeaveWindow>: unset() \n\ +@@ -688,6 +692,18 @@ GV.TopLevelShell*Button.baseTranslations + GV*TransientShell*Button.accelerators:#override\n\ + <Key>Return: set() notify() unset() + ++GV*TransientShell*cancel.accelerators:#override\n\ ++ <Key>Escape: set() notify() unset()\n\ ++ <Key>Return: set() notify() unset() ++ ++GV*TransientShell*button1.accelerators:#override\n\ ++ <Key>Escape: set() notify() unset()\n\ ++ <Key>Return: set() notify() unset() ++ ++GV*TransientShell*dismiss.accelerators:#override\n\ ++ <Key>Escape: set() notify() unset()\n\ ++ <Key>Return: set() notify() unset() ++ + GV*TransientShell*Button.baseTranslations: #replace\n\ + <Key>Return: set() notify() unset()\n\ + <LeaveWindow>: unset() \n\ +Index: gv/src/info.c +=================================================================== +--- gv.orig/src/info.c 2006-09-07 14:30:27.290991136 +0200 ++++ gv/src/info.c 2006-09-07 14:36:25.230576048 +0200 +@@ -211,6 +211,8 @@ void makeInfoPopup() + XtSetArg(args[n], XtNright, XtChainRight); n++; + infodismiss = XtCreateManagedWidget("dismiss", buttonWidgetClass,infoform,args,n); + XtAddCallback(infodismiss, XtNcallback, cb_popdownInfoPopup,NULL); ++ XtInstallAccelerators(infoform, infodismiss); ++ XtInstallAccelerators(infotext, infodismiss); + + n=0; + XtSetArg(args[n], XtNfont, &font); n++; +Index: gv/src/options_fs.c +=================================================================== +--- gv.orig/src/options_fs.c 2006-09-07 14:34:48.694251800 +0200 ++++ gv/src/options_fs.c 2006-09-07 14:36:25.230576048 +0200 +@@ -190,10 +190,13 @@ static void options_fs_create() + n=0; + w = XtCreateManagedWidget("apply", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_fs_cb_apply,NULL); ++ XtInstallAccelerators(optionControl, w); + w = XtCreateManagedWidget("save", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_fs_cb_save,NULL); ++ XtInstallAccelerators(optionControl, w); + w = XtCreateManagedWidget("dismiss", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_cb_popdown,(XtPointer)gv_options_fs); ++ XtInstallAccelerators(optionControl, w); + + scratch_dir = widgets_createLabeledLineTextField("scratchDir", optionControl); + default_save_dir = widgets_createLabeledLineTextField("saveDir", optionControl); +Index: gv/src/options_gs.c +=================================================================== +--- gv.orig/src/options_gs.c 2006-09-07 14:30:27.336984144 +0200 ++++ gv/src/options_gs.c 2006-09-07 14:36:25.230576048 +0200 +@@ -307,12 +307,16 @@ void options_gs_create() + n=0; + w = XtCreateManagedWidget("apply", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_gs_cb_apply,NULL); ++ XtInstallAccelerators(optionControl, w); + w = XtCreateManagedWidget("save", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_gs_cb_save,NULL); ++ XtInstallAccelerators(optionControl, w); + w = XtCreateManagedWidget("dismiss", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_cb_popdown, (XtPointer)gv_options_gs); ++ XtInstallAccelerators(optionControl, w); + w = XtCreateManagedWidget("defaults", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_gs_cb_defaults, NULL); ++ XtInstallAccelerators(optionControl, w); + + options_gs_setOptionsAtEntry(); + options_realize(popup,optionControl); +Index: gv/src/options_gv.c +=================================================================== +--- gv.orig/src/options_gv.c 2006-09-07 14:30:27.359980648 +0200 ++++ gv/src/options_gv.c 2006-09-07 14:36:25.230576048 +0200 +@@ -549,10 +549,13 @@ void options_gv_create() + n=0; + w = XtCreateManagedWidget("apply", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_gv_cb_apply,NULL); ++ XtInstallAccelerators(optionControl, w); + w = XtCreateManagedWidget("save", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_gv_cb_save,NULL); ++ XtInstallAccelerators(optionControl, w); + w = XtCreateManagedWidget("dismiss", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_cb_popdown, (XtPointer)gv_options_gv); ++ XtInstallAccelerators(optionControl, w); + + options_gv_setOptionsAtEntry(); + options_realize(popup,optionControl); +Index: gv/src/options_setup.c +=================================================================== +--- gv.orig/src/options_setup.c 2006-09-07 14:30:27.382977152 +0200 ++++ gv/src/options_setup.c 2006-09-07 14:36:25.230576048 +0200 +@@ -400,10 +400,13 @@ void options_setup_create() + n=0; + w = XtCreateManagedWidget("apply", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_setup_cb_apply,NULL); ++ XtInstallAccelerators(optionControl, w); + w = XtCreateManagedWidget("save", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_setup_cb_save,NULL); ++ XtInstallAccelerators(optionControl, w); + w = XtCreateManagedWidget("dismiss", buttonWidgetClass,optionControl, args, n); + XtAddCallback(w, XtNcallback, options_cb_popdown,(XtPointer)gv_options_setup); ++ XtInstallAccelerators(optionControl, w); + + miscmenu = widgets_createLabeledTextField("miscmenu", optionControl); + magmenu = widgets_createLabeledTextField("magmenu", optionControl); +Index: gv/src/widgets_misc.c +=================================================================== +--- gv.orig/src/widgets_misc.c 2006-09-07 14:30:27.406973504 +0200 ++++ gv/src/widgets_misc.c 2006-09-07 14:36:25.231575896 +0200 +@@ -94,6 +94,7 @@ widgets_setToggle(w,value) + + static char *LineTextTr = "\ + <Key>Return: no-op()\n\ ++<Key>Escape: no-op()\n\ + <Key>Down: no-op()\n\ + <Key>Up: no-op()\n\ + <Key>Linefeed: no-op()\n\ +@@ -157,6 +158,7 @@ widgets_createLabeledLineTextField(name, + /*##################################################*/ + + static char *TextTr = "\ ++<Key>Escape: no-op()\n\ + Ctrl<Key>J: no-op()\n\ + Ctrl<Key>M: no-op()\n\ + Ctrl<Key>N: no-op()\n\ +Index: gv/src/zoom.c +=================================================================== +--- gv.orig/src/zoom.c 2006-09-07 14:30:27.431969704 +0200 ++++ gv/src/zoom.c 2006-09-07 14:36:25.231575896 +0200 +@@ -189,6 +189,7 @@ zoom_createZoom(w, call_data) + n=0; + zdismiss = XtCreateManagedWidget(zoom_dismiss, buttonWidgetClass,zcontrol, args, n); + XtAddCallback(zdismiss, XtNcallback,cb_destroy,(XtPointer)zshell); ++ XtInstallAccelerators(zcontrol, zdismiss); + + XtRealizeWidget(zshell); + { --- gv-3.6.3dfsg.orig/debian/patches/series +++ gv-3.6.3dfsg/debian/patches/series @@ -0,0 +1,14 @@ +01_debian_config +04_309949_grayscale +05_314947_FTBFS_GNU_kFreeBSD +201439_escape +manual-whatis +texinfo-dircategory +299447and433898-nested-eps +no_non_free_stdc_h +95266_filename_as_title +26497_widgetless +439067resources +149032fontsets +276639popupwithinscreen -p0 +configure_drop_libs --- gv-3.6.3dfsg.orig/debian/patches/149032fontsets +++ gv-3.6.3dfsg/debian/patches/149032fontsets @@ -0,0 +1,50 @@ +Index: gv-3.6.3dfsg/src/Vlist.c +=================================================================== +--- gv-3.6.3dfsg.orig/src/Vlist.c 2007-10-03 14:15:44.000000000 +0200 ++++ gv-3.6.3dfsg/src/Vlist.c 2007-10-03 14:16:07.000000000 +0200 +@@ -314,6 +314,16 @@ + VlistWidget vw = (VlistWidget)w; + char * s; + int i; ++ int yofs, ydelta; ++ ++ if( vw->simple.international == True ) { ++ XFontSetExtents *ext = XExtentsOfFontSet(vw->label.fontset); ++ yofs = (ext->max_ink_extent.y<0)?-ext->max_ink_extent.y:ext->max_ink_extent.y; ++ ydelta = ext->max_ink_extent.height; ++ } else { ++ yofs = vw->label.font->max_bounds.ascent; ++ ydelta = vw->label.font->max_bounds.ascent + vw->label.font->max_bounds.descent; ++ } + + BEGINMESSAGE1(PaintEntryString) + s = vw->label.label; +@@ -321,14 +331,20 @@ + if (s) while (i > 0 && (s = strchr(s,'\n'))) { s++; i--; } + if (s) { + char *nl = strchr(s,'\n'); +- if (nl) *nl = '\0'; +- XDrawString(XtDisplay(w), XtWindow(w), vw->label.normal_GC, +- vw->label.label_x, +- vw->label.label_y+entry*(vw->label.font->max_bounds.ascent + +- vw->label.font->max_bounds.descent) + +- vw->label.font->max_bounds.ascent, +- s, (int)strlen(s)); +- if (nl) *nl = '\n'; ++ int len; ++ if (nl) ++ len = nl - s; ++ else ++ len = strlen(s); ++ if( vw->simple.international == True ) ++ XmbDrawString(XtDisplay(w), XtWindow(w), vw->label.fontset, ++ vw->label.normal_GC, ++ vw->label.label_x, vw->label.label_y + yofs + entry*ydelta, ++ s, len); ++ else ++ XDrawString(XtDisplay(w), XtWindow(w), vw->label.normal_GC, ++ vw->label.label_x, vw->label.label_y + yofs + entry*ydelta, ++ s, len); + } + ENDMESSAGE1(PaintEntryString) + } --- gv-3.6.3dfsg.orig/debian/patches/04_309949_grayscale +++ gv-3.6.3dfsg/debian/patches/04_309949_grayscale @@ -0,0 +1,12 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +@DPATCH@ +--- gv-3.6.1.orig/src/main.c ++++ gv-3.6.1/src/main.c +@@ -202,6 +202,7 @@ + {"pixmap", no_argument, NULL, PIXMAP_ARG}, + {"nopixmap", no_argument, NULL, NOPIXMAP_ARG}, + {"color", no_argument, NULL, COLOR_ARG}, ++ {"grayscale", no_argument, NULL, GRAYSCALE_ARG}, + {"help", no_argument, NULL, HELP_ARG}, + {"quiet", no_argument, NULL, QUIET_ARG}, + {"monochrome", no_argument, NULL, MONOCHROME_ARG}, --- gv-3.6.3dfsg.orig/debian/patches/276639popupwithinscreen +++ gv-3.6.3dfsg/debian/patches/276639popupwithinscreen @@ -0,0 +1,82 @@ +Index: src/magmenu.c +=================================================================== +RCS file: /sources/gv/gv/src/magmenu.c,v +retrieving revision 1.2 +diff -u -r1.2 magmenu.c +--- src/magmenu.c 11 Nov 2004 12:21:05 -0000 1.2 ++++ src/magmenu.c 6 Dec 2007 17:58:53 -0000 +@@ -246,7 +246,8 @@ + entry = XtCreateManagedWidget(gv_magmenu_entries[i]->name, smeBSBObjectClass,d->menuwidget,NULL,(Cardinal)0); + { + int menu_x, menu_y; +- Dimension menu_width,entry_height,menu_border; ++ Dimension menu_width,entry_height,menu_border,menu_height; ++ Dimension screen_width,screen_height; + Position button_x, button_y; + + if (!XtIsRealized(d->menuwidget)) XtRealizeWidget(d->menuwidget); +@@ -255,12 +256,21 @@ + XtGetValues(entry, args, n); + n=0; + XtSetArg(args[n], XtNwidth, &menu_width); ++n; ++ XtSetArg(args[n], XtNheight, &menu_height); ++n; + XtSetArg(args[n], XtNborderWidth, &menu_border); ++n; + XtGetValues(d->menuwidget, args, n); + + XtTranslateCoords(w, event->xbutton.x, event->xbutton.y, &button_x, &button_y); + menu_x = button_x-menu_width/2 -menu_border; + menu_y = button_y-entry_height/2; ++ ++ screen_width = WidthOfScreen(XtScreen(d->menuwidget)); ++ screen_height = HeightOfScreen(XtScreen(d->menuwidget)); ++ ++ if( menu_x + menu_width > screen_width && menu_width < screen_width ) ++ menu_x = screen_width - menu_width; ++ if( menu_y + menu_height > screen_height && menu_height < screen_height ) ++ menu_y = screen_height - menu_height; + n=0; + XtSetArg(args[n], XtNx, menu_x); n++; + XtSetArg(args[n], XtNy, menu_y); n++; +Index: src/miscmenu.c +=================================================================== +RCS file: /sources/gv/gv/src/miscmenu.c,v +retrieving revision 1.5 +diff -u -r1.5 miscmenu.c +--- src/miscmenu.c 10 Aug 2005 10:42:28 -0000 1.5 ++++ src/miscmenu.c 6 Dec 2007 17:58:53 -0000 +@@ -243,7 +243,8 @@ + int i; + MiscMenuEntry e; + int menu_x, menu_y; +- Dimension menu_width,entry_height,menu_border; ++ Dimension menu_width,menu_height,entry_height,menu_border; ++ Dimension screen_width,screen_height; + Position button_x, button_y; + for (i=0; gv_miscmenu_entries[i]; i++) { + e = gv_miscmenu_entries[i]; +@@ -271,14 +272,23 @@ + + n=0; + XtSetArg(args[n], XtNwidth, &menu_width); ++n; ++ XtSetArg(args[n], XtNheight, &menu_height); ++n; + XtSetArg(args[n], XtNborderWidth, &menu_border); ++n; + XtGetValues(menuwidget, args, n); +- ++ + XtTranslateCoords(w, event->xbutton.x, event->xbutton.y, &button_x, &button_y); + menu_x = button_x-menu_width/2 -menu_border; + menu_y = button_y-entry_height/2; + +- n=0; ++ screen_width = WidthOfScreen(XtScreen(menuwidget)); ++ screen_height = HeightOfScreen(XtScreen(menuwidget)); ++ ++ if( menu_x + menu_width > screen_width && menu_width < screen_width ) ++ menu_x = screen_width - menu_width; ++ if( menu_y + menu_height > screen_height && menu_height < screen_height ) ++ menu_y = screen_height - menu_height; ++ ++ n=0; + XtSetArg(args[n], XtNx, menu_x); n++; + XtSetArg(args[n], XtNy, menu_y); n++; + XtSetValues(menuwidget, args, n); --- gv-3.6.3dfsg.orig/debian/patches/configure_drop_libs +++ gv-3.6.3dfsg/debian/patches/configure_drop_libs @@ -0,0 +1,457 @@ +Index: gv-3.6.3dfsg/configure +=================================================================== +--- gv-3.6.3dfsg.orig/configure 2007-12-06 19:27:12.000000000 +0100 ++++ gv-3.6.3dfsg/configure 2007-12-06 19:39:44.000000000 +0100 +@@ -5686,15 +5686,6 @@ + echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } + fi + +-if test "$no_x" = yes; then +- # Not all programs may use this symbol, but it does not hurt to define it. +- +-cat >>confdefs.h <<\_ACEOF +-#define X_DISPLAY_MISSING 1 +-_ACEOF +- +- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= +-else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi +@@ -6910,97 +6901,6 @@ + # Check for libraries that X11R6 Xt/Xaw programs need. + ac_save_LDFLAGS=$LDFLAGS + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" +- # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to +- # check for ICE first), but we must link in the order -lSM -lICE or +- # we get undefined symbols. So assume we have SM if we have ICE. +- # These have to be linked with before -lX11, unlike the other +- # libraries we check for below, so use a different variable. +- # John Interrante, Karl Berry +- { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 +-echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } +-if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then +- echo $ECHO_N "(cached) $ECHO_C" >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lICE $X_EXTRA_LIBS $LIBS" +-cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char IceConnectionNumber (); +-int +-main () +-{ +-return IceConnectionNumber (); +- ; +- return 0; +-} +-_ACEOF +-rm -f conftest.$ac_objext conftest$ac_exeext +-if { (ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_link") 2>conftest.er1 +- ac_status=$? +- grep -v '^ *+' conftest.er1 >conftest.err +- rm -f conftest.er1 +- cat conftest.err >&5 +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && +- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; } && +- { ac_try='test -s conftest$ac_exeext' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; }; then +- ac_cv_lib_ICE_IceConnectionNumber=yes +-else +- echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- ac_cv_lib_ICE_IceConnectionNumber=no +-fi +- +-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 +-echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } +-if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then +- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" +-fi +- +- LDFLAGS=$ac_save_LDFLAGS +- +-fi +- + + { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5 + echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; } +@@ -7088,250 +6988,6 @@ + + fi + +- +-{ echo "$as_me:$LINENO: checking for main in -lICE" >&5 +-echo $ECHO_N "checking for main in -lICE... $ECHO_C" >&6; } +-if test "${ac_cv_lib_ICE_main+set}" = set; then +- echo $ECHO_N "(cached) $ECHO_C" >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lICE $X_LIBS $LIBS" +-cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-rm -f conftest.$ac_objext conftest$ac_exeext +-if { (ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_link") 2>conftest.er1 +- ac_status=$? +- grep -v '^ *+' conftest.er1 >conftest.err +- rm -f conftest.er1 +- cat conftest.err >&5 +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && +- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; } && +- { ac_try='test -s conftest$ac_exeext' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; }; then +- ac_cv_lib_ICE_main=yes +-else +- echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- ac_cv_lib_ICE_main=no +-fi +- +-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_main" >&5 +-echo "${ECHO_T}$ac_cv_lib_ICE_main" >&6; } +-if test $ac_cv_lib_ICE_main = yes; then +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBICE 1 +-_ACEOF +- +- LIBS="-lICE $LIBS" +- +-fi +- +- +-{ echo "$as_me:$LINENO: checking for main in -lSM" >&5 +-echo $ECHO_N "checking for main in -lSM... $ECHO_C" >&6; } +-if test "${ac_cv_lib_SM_main+set}" = set; then +- echo $ECHO_N "(cached) $ECHO_C" >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lSM $X_LIBS $LIBS" +-cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-rm -f conftest.$ac_objext conftest$ac_exeext +-if { (ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_link") 2>conftest.er1 +- ac_status=$? +- grep -v '^ *+' conftest.er1 >conftest.err +- rm -f conftest.er1 +- cat conftest.err >&5 +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && +- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; } && +- { ac_try='test -s conftest$ac_exeext' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; }; then +- ac_cv_lib_SM_main=yes +-else +- echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- ac_cv_lib_SM_main=no +-fi +- +-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ echo "$as_me:$LINENO: result: $ac_cv_lib_SM_main" >&5 +-echo "${ECHO_T}$ac_cv_lib_SM_main" >&6; } +-if test $ac_cv_lib_SM_main = yes; then +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBSM 1 +-_ACEOF +- +- LIBS="-lSM $LIBS" +- +-fi +- +- +-{ echo "$as_me:$LINENO: checking for main in -lXext" >&5 +-echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6; } +-if test "${ac_cv_lib_Xext_main+set}" = set; then +- echo $ECHO_N "(cached) $ECHO_C" >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lXext $X_LIBS $LIBS" +-cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-rm -f conftest.$ac_objext conftest$ac_exeext +-if { (ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_link") 2>conftest.er1 +- ac_status=$? +- grep -v '^ *+' conftest.er1 >conftest.err +- rm -f conftest.er1 +- cat conftest.err >&5 +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && +- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; } && +- { ac_try='test -s conftest$ac_exeext' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; }; then +- ac_cv_lib_Xext_main=yes +-else +- echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- ac_cv_lib_Xext_main=no +-fi +- +-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5 +-echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6; } +-if test $ac_cv_lib_Xext_main = yes; then +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBXEXT 1 +-_ACEOF +- +- LIBS="-lXext $LIBS" +- +-fi +- +- + { echo "$as_me:$LINENO: checking for XtOpenDisplay in -lXt" >&5 + echo $ECHO_N "checking for XtOpenDisplay in -lXt... $ECHO_C" >&6; } + if test "${ac_cv_lib_Xt_XtOpenDisplay+set}" = set; then +@@ -7500,87 +7156,6 @@ + fi + + +-{ echo "$as_me:$LINENO: checking for main in -lXpm" >&5 +-echo $ECHO_N "checking for main in -lXpm... $ECHO_C" >&6; } +-if test "${ac_cv_lib_Xpm_main+set}" = set; then +- echo $ECHO_N "(cached) $ECHO_C" >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lXpm $X_LIBS $LIBS" +-cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-rm -f conftest.$ac_objext conftest$ac_exeext +-if { (ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_link") 2>conftest.er1 +- ac_status=$? +- grep -v '^ *+' conftest.er1 >conftest.err +- rm -f conftest.er1 +- cat conftest.err >&5 +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && +- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; } && +- { ac_try='test -s conftest$ac_exeext' +- { (case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; }; then +- ac_cv_lib_Xpm_main=yes +-else +- echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- ac_cv_lib_Xpm_main=no +-fi +- +-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_main" >&5 +-echo "${ECHO_T}$ac_cv_lib_Xpm_main" >&6; } +-if test $ac_cv_lib_Xpm_main = yes; then +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBXPM 1 +-_ACEOF +- +- LIBS="-lXpm $LIBS" +- +-fi +- +- + { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5 + echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6; } + if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then --- gv-3.6.3dfsg.orig/debian/rules +++ gv-3.6.3dfsg/debian/rules @@ -0,0 +1,105 @@ +#!/usr/bin/make -f + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +CONFFLAGS += --enable-scrollbar-code --enable-signal-handler --disable-setenv-code + +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -DMESSAGES +endif + +version=3.6.3 +get-orig-source: + test ! -d gv-$(version) + test ! -d gv-$(version).orig + if [ ! -e gv-$(version).tar.gz ] ; then wget ftp://ftp.gnu.org/gnu/gv/gv-$(version).tar.gz ; fi + tar -xzf gv-$(version).tar.gz + mv gv-$(version) gv-$(version)dfsg.orig + rm gv-$(version)dfsg.orig/src/stdc.h + rm gv-$(version)dfsg.orig/src/getenv.c + rm gv-$(version)dfsg.orig/src/setenv.c + rm gv-$(version)dfsg.orig/src/setenv.h + tar -cf - gv-$(version)dfsg.orig | gzip --best > gv_$(version)dfsg.orig.tar.gz + rm -r gv-$(version)dfsg.orig + +clean: + dh_testdir + # is this is not here, someone forgot it when creating the package: + test -f maintainer-patch-stamp + # run distclean of configure was completed or attempted + if [ -f config.status -o -f config.log ] ; then $(MAKE) distclean ; fi + test ! -f config.status + rm -f doc/gv.info + dh_clean + rm -f build-arch-stamp build-indep-stamp + +maintainer-prepare: + # This is supposed to be called by the maintainer, after copying the + # the debian/ directory into a new pristine source tree. + if [ -f maintainer-patch-stamp ] ; then \ + rm maintainer-patch-stamp ; \ + test -d ../gv-quilt-status ; \ + else \ + mkdir -p ../gv-quilt-status ; \ + fi + ln -sf debian/patches patches + ln -sf ../gv-quilt-status .pc + quilt upgrade + quilt push -a || test $$? = 2 +maintainer-done: + # This is supposed to be called by the maintainer only, before + # when the package is ready to be built... + quilt push -a || test $$? = 2 + rm patches .pc + echo "package ready and patched for .diff.gz creation" > maintainer-patch-stamp + +config.status: maintainer-patch-stamp configure + dh_testdir + ./configure --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) \ + $(CONFFLAGS) CFLAGS='$(CFLAGS)' LDFLAGS="-Wl,-z,defs" \ + --bindir=/usr/bin --libdir=/usr/share \ + --mandir=/usr/share/man --infodir=/usr/share/info + touch $@ + +build-arch: build-arch-stamp +build-arch-stamp: config.status + dh_testdir + $(MAKE) + touch $@ + +binary-arch: build-arch-stamp + dh_testdir + dh_testroot + dh_clean + $(MAKE) install DESTDIR=${CURDIR}/debian/gv + dh_install + dh_installchangelogs ChangeLog + dh_installdocs AUTHORS NEWS README + dh_installinfo doc/gv.info + dh_installmenu + dh_installmime + dh_strip + dh_compress + dh_fixperms + dh_md5sums + dh_shlibdeps + dh_installdeb + dh_gencontrol + dh_builddeb + +build-indep: build-indep-stamp +build-indep-stamp: + touch $@ +binary-indep: +# nothing to do... + +build: build-arch build-indep +binary: binary-arch binary-indep + +.PHONY: binary binary-arch binary-indep build build-arch build-indep clean --- gv-3.6.3dfsg.orig/debian/copyright +++ gv-3.6.3dfsg/debian/copyright @@ -0,0 +1,101 @@ +This package was put together by Christian Kesselheim <ckesselh@debian.org> +using sources obtained from ftp://ftp.gnu.org/gnu/gv/. +It was later maintained by Martin A. Godisch <godisch@debian.org>, +then by Christoph Berg <myon@debian.org>. +The current maintainer is Bernhard R. Link <brlink@debian.org>. + +Copyright (C) 1992 Timothy O. Theisen +Copyright (c) 1995,1996,1997 Johannes Plass <plass@thep.physik.uni-mainz.de>, +Department of Physics, Johannes Gutenberg-University, Mainz, Germany. +Copyright (C) 2004,2005,2006,2007 José E. Marchesi +with changes from Maurizio Loreti that are in the public domain. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in /usr/share/common-licenses/GPL-2. + +Further Contributors include: + - Karl Berry + - John Bowman + - Brett W. McCoy + - Hans Fredrik Nordhaug + - Peter Breitenlohner + +Parts of the usual auto* generated build scripts and parser code +and the compatibility code in lib/ are: +Copyright (C) 1984-2007 Free Software Foundation, Inc, +install-sh is based on code Copyright (C) 1994 X Consortium + +This package contains a modified version of the Layout widget, the original +being: +* Copyright 1991 Massachusetts Institute of Technology +* Permission to use, copy, modify, distribute, and sell this software and its +* documentation for any purpose is hereby granted without fee, provided that +* the above copyright notice appear in all copies and that both that +* copyright notice and this permission notice appear in supporting +* documentation, and that the name of M.I.T. not be used in advertising or +* publicity pertaining to distribution of the software without specific, +* written prior permission. M.I.T. makes no representations about the +* suitability of this software for any purpose. It is provided "as is" +* without express or implied warranty. +* +* M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T. +* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +* +* Author: Keith Packard, MIT X Consortium + +########The dsfg.orig.tar.gz was created removing the following files:######## + +The files src/getenv.c, src/setenv.c, because their license was: +* Copyright (c) 1987 Regents of the University of California. +* All rights reserved. +* +* Redistribution and use in source and binary forms are permitted +* provided that: (1) source distributions retain this entire copyright +* notice and comment, and (2) distributions including binaries display +* the following acknowledgement: ``This product includes software +* developed by the University of California, Berkeley and its contributors'' +* in the documentation or other materials provided with the distribution +* and in all advertising materials mentioning features or use of this +* software. Neither the name of the University nor the names of its +* contributors may be used to endorse or promote products derived +* from this software without specific prior written permission. +* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR +* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +The file src/stdc.h, because its license was: +* Copyright (c) 1988 The Regents of the University of California. +* All rights reserved. +* +* Redistribution is only permitted until one year after the first shipment +* of 4.4BSD by the Regents. Otherwise, redistribution and use in source and +* binary forms are permitted provided that: (1) source distributions retain +* this entire copyright notice and comment, and (2) distributions including +* binaries display the following acknowledgement: This product includes +* software developed by the University of California, Berkeley and its +* contributors'' in the documentation or other materials provided with the +* distribution and in all advertising materials mentioning features or use +* of this software. Neither the name of the University nor the names of +* its contributors may be used to endorse or promote products derived from +* this software without specific prior written permission. +* THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. --- gv-3.6.3dfsg.orig/debian/mime +++ gv-3.6.3dfsg/debian/mime @@ -0,0 +1,3 @@ +application/postscript; /usr/bin/gv %s; test=test -n "$DISPLAY"; description=postscript +application/ghostview; /usr/bin/gv %s; test=test -n "$DISPLAY" +application/pdf; /usr/bin/gv %s; test=test -n "$DISPLAY" --- gv-3.6.3dfsg.orig/debian/mini-gv.xpm +++ gv-3.6.3dfsg/debian/mini-gv.xpm @@ -0,0 +1,23 @@ +/* XPM */ +static char * mini_gv_xpm[] = { +/* width height num_colors chars_per_pixel */ +"16 14 3 1", +/* colors */ +" s None c None", +". c black", +"X c White", +/* pixels */ +" .... ", +" .XXXX. ", +" .XXXXXX. ", +" .XXXXXX. ", +" ..X.XX.X... ", +" .XXX.XX.X.XX. ", +" .XXXXXXXXXXX. ", +" .XXXXXXXXX. ", +" .XXXXXXX. ", +" .XXXXXXX. ", +" .XXXXXXX. ", +" .XXXXXXXXX. ", +" .XXX.XXX.XXX. ", +" .... ... .. "}; --- gv-3.6.3dfsg.orig/debian/watch +++ gv-3.6.3dfsg/debian/watch @@ -0,0 +1,3 @@ +# see uscan(1) for format +version=3 +http://ftp.gnu.org/gnu/gv/gv-(.*).tar.gz --- gv-3.6.3dfsg.orig/debian/changelog +++ gv-3.6.3dfsg/debian/changelog @@ -0,0 +1,622 @@ +gv (1:3.6.3dfsg-6) unstable; urgency=low + + * remove Vcs-* headers, as Vcs- is not for upstream's vcs. + * try to keep popup windows within the screen (Closes: 276639) + + -- Bernhard R. Link <brlink@debian.org> Thu, 06 Dec 2007 19:09:31 +0100 + +gv (1:3.6.3dfsg-5) unstable; urgency=high + + * depend on new ghostscript-x instead of gs (Closes: 448679) + * to work around ghostscript providing gs and gs-gpl without + the full functionality of those packages, the alternative depends + are versioned on the packages I know of that offered gs. I hope + noone has another package providing gs around they want to have + installed exclusively. + * make Homepage: a proper header, move XS-Vcs to Vcs- + + -- Bernhard R. Link <brlink@debian.org> Wed, 31 Oct 2007 10:46:14 +0100 + +gv (1:3.6.3dfsg-4) unstable; urgency=low + + * properly handle FontSets in Vlist.c when International resource is set + (Closes: 149032) + + -- Bernhard R. Link <brlink@debian.org> Wed, 3 Oct 2007 14:20:19 +0200 + +gv (1:3.6.3dfsg-3) unstable; urgency=low + + * don't crash when XUSERFILESEARCHPATH is set (Closes: 439067, 441450) + * update to new menu policy + + -- Bernhard R. Link <brlink@debian.org> Mon, 10 Sep 2007 18:32:49 +0200 + +gv (1:3.6.3dfsg-2) unstable; urgency=low + + * do not mistake %xxxxDocument for %%EndDocument (Closes: 433898) + * add option to use filename as title (Closes: 95266) + * add widgetless mode (Closes: 26497) + + -- Bernhard R. Link <brlink@debian.org> Sat, 28 Jul 2007 17:05:44 +0200 + +gv (1:3.6.3dfsg-1) unstable; urgency=low + + * new maintainer (Closes: 407666) + * no longer uses quilt at build time (nor the seperated patches) + * general clean up (complete debian/copyright, clean up debian/rules, ...) + * add Vcs-{Browse,CVS} headers + * new upstream version + - handle filenames starting with "-" (Closes: 397118) + - includes fix for CVE-2006-5864 (so droping patches/398292-CVE-2006-5864) + - fixes X resource handling (so droping patches/393454_config) + * repack source to remove files with problematic licenses + + -- Bernhard R. Link <brlink@debian.org> Sun, 15 Jul 2007 21:38:19 +0200 + +gv (1:3.6.2-4) unstable; urgency=low + + * QA upload. + * gv has been orphaned. Setting maintainer to QA group. + * Fix reading of ~/.gv config file. (Closes: #393454) + * Fix handling of files with nested .eps files. (Closes: #299447) + + -- Stefan Fritsch <sf@debian.org> Sat, 05 May 2007 14:51:16 +0200 + +gv (1:3.6.2-3) unstable; urgency=high + + * Update fix for CVE-2006-5864 as in DSA 1214-2 (See: #398292). + + -- Christoph Berg <myon@debian.org> Fri, 5 Jan 2007 17:02:41 +0100 + +gv (1:3.6.2-2) unstable; urgency=high + + * Apply patch by Werner Fink to fix ps_gettext() buffer overflow + vulnerability (Closes: #398292, CVE-2006-5864). + * Put @dircategory before @direntry so that it still works as debhelper + doesn't parse INFO-DIR-SECTION anymore (See: #337215, Blame: texinfo). + + -- Christoph Berg <myon@debian.org> Mon, 13 Nov 2006 15:39:11 +0100 + +gv (1:3.6.2-1) unstable; urgency=low + + * New upstream version. + * Removed patches that went upstream: + + 02_293976=045735_filename+unknown + + 03_294864=295056_scrollbar + + 06_334400_getopt_long_only + + 148533_use_Xresources + + -- Christoph Berg <myon@debian.org> Wed, 11 Oct 2006 16:48:33 +0200 + +gv (1:3.6.1-15) unstable; urgency=low + + * Depend on gs-gpl | gs. + * Add debtags to control file. + + -- Christoph Berg <myon@debian.org> Fri, 22 Sep 2006 12:45:57 +0200 + +gv (1:3.6.1-14) unstable; urgency=low + + * Use quilt for patches. + * Add patch by Bernhard Link to honor X resources (Closes: #148533). + * Add patch by Bernhard Link to enable ESC in dialog windows + (Closes: #201439). + * Put info page in correct section again. + * Use a sane whatis entry in manpage. + + -- Christoph Berg <myon@debian.org> Wed, 13 Sep 2006 12:51:39 +0200 + +gv (1:3.6.1-13) unstable; urgency=low + + * New maintainer (Closes: #347447). + * Move /usr/lib/gv to /usr/share/gv. + * Use dpatch for patches. + * Add patch to recognize single-dash options again (Closes: #334400). + * Convert packaging to debhelper. + * Remove old install-mime compatibility stuff (cf. version 1:3.5.8-14). + * Remove install-docs call (Closes: #315787). + * Remove 3.5.8 patches. + * Update Description. + * Bump Standards-Version. + + -- Christoph Berg <myon@debian.org> Sat, 28 Jan 2006 22:08:19 +0100 + +gv (1:3.6.1-12) unstable; urgency=low + + * Fixed FTBFS on GNU/kFreeBSD, closes: #314947. + Thanks to Aurelien Jarno. + + -- Martin A. Godisch <godisch@debian.org> Mon, 20 Jun 2005 20:17:55 +0200 + +gv (1:3.6.1-11) unstable; urgency=low + + * Fixed option --grayscale, closes: #309949. + + -- Martin A. Godisch <godisch@debian.org> Fri, 20 May 2005 22:33:05 +0200 + +gv (1:3.6.1-10) unstable; urgency=medium + + * Re-upload of 1:3.6.1-10 to trigger rebuild on arm. + * Added README.Debian note that command line arguments have changed, + closes: #295711. + + -- Martin A. Godisch <godisch@debian.org> Thu, 24 Mar 2005 17:04:15 +0100 + +gv (1:3.6.1-9) unstable; urgency=medium + + * Fixed configure script, enabled scrollbar code, closes: #294864. + + -- Martin A. Godisch <godisch@debian.org> Sun, 13 Feb 2005 20:43:15 +0100 + +gv (1:3.6.1-8) unstable; urgency=low + + * Enabled signal handling, closes: #294863. + * This time really added DEB_BUILD_OPTIONS="debug", see 1:3.6.1-7. + + -- Martin A. Godisch <godisch@debian.org> Sat, 12 Feb 2005 07:41:25 +0100 + +gv (1:3.6.1-7) unstable; urgency=high + + * Re-applied lost 3.5.8 patch (filename quotation), closes: #293976. + * Added DEB_BUILD_OPTIONS="debug". + + -- Martin A. Godisch <godisch@debian.org> Mon, 07 Feb 2005 17:20:25 +0100 + +gv (1:3.6.1-6) unstable; urgency=medium + + * Reverted changes for ghostview upgrade path, closes: #293812, + reopens: #289864, #291443. + + -- Martin A. Godisch <godisch@debian.org> Sun, 06 Feb 2005 08:36:50 +0100 + +gv (1:3.6.1-5) unstable; urgency=low + + * Added compatibility symlink and provides for ghostview users, + closes: #291443. + + -- Martin A. Godisch <godisch@debian.org> Fri, 21 Jan 2005 16:01:40 +0100 + +gv (1:3.6.1-4) unstable; urgency=low + + * Conflict with and replace ghostview, closes: #289864. + * Fixed prerm script. + + -- Martin A. Godisch <godisch@debian.org> Fri, 14 Jan 2005 20:21:55 +0100 + +gv (1:3.6.1-3) unstable; urgency=low + + * Removed pdf2dsc and pdf2ps patch, closes: #288696. + + -- Martin A. Godisch <godisch@debian.org> Sat, 08 Jan 2005 09:29:10 +0100 + +gv (1:3.6.1-2) unstable; urgency=low + + * Adjusted build-dependencies, closes: #288291. + * Fixed lintian errors. + + -- Martin A. Godisch <godisch@debian.org> Mon, 03 Jan 2005 18:34:25 +0100 + +gv (1:3.6.1-1) unstable; urgency=low + + * New upstream release, closes: #282253. + + -- Martin A. Godisch <godisch@debian.org> Sat, 01 Jan 2005 21:59:30 +0100 + +gv (1:3.5.8-36) unstable; urgency=medium + + * Reverted gs-gpl dependency, closes: #269339. + + -- Martin A. Godisch <godisch@debian.org> Wed, 01 Sep 2004 05:41:05 +0200 + +gv (1:3.5.8-35) unstable; urgency=medium + + * Reenabled fixed DELAYSAFER, closes: #243442 et al. + + -- Martin A. Godisch <godisch@debian.org> Tue, 31 Aug 2004 18:05:20 +0200 + +gv (1:3.5.8-34) unstable; urgency=medium + + * Further patches cleanup. + * Replaced gs dependency with gs-gpl. + * Added double-buffering support, closes: #206008. + Thanks to Fabrice Le Fessant and Martin Quinson. + * Fixed error message when opening empty files, closes: #252548. + * Deactivated DELAYSAFER patch, closes: #269234. + + -- Martin A. Godisch <godisch@debian.org> Tue, 31 Aug 2004 17:32:55 +0200 + +gv (1:3.5.8-33) unstable; urgency=medium + + * Big build system cleanup. + * Changed function of delete key, closes: #159433. + * Hid hidden directories, closes: #223556. + * Fixed opening files in /tmp, closes: #243442 et al. + * Fixed permissions of tempfiles, closes: #250854. + * Removed xutils from build-dependencies. + * Updated standards version, added watch file. + + -- Martin A. Godisch <godisch@debian.org> Sun, 29 Aug 2004 14:31:10 +0200 + +gv (1:3.5.8-32) unstable; urgency=medium + + * New maintainer upload, + closes: #212174, #206486, #206554, #206798, #212839. + * Applied bzip2 patch, closes: #153001. + Thanks to Tobias Burnus and Euan MacGregor. + + -- Martin A. Godisch <godisch@debian.org> Sat, 28 Aug 2004 20:49:20 +0200 + +gv (1:3.5.8-31) unstable; urgency=low + + * Rebuild with correct umask (closes: #220807, #221042, #222314) + + -- Christian Kesselheim <ckesselh@debian.org> Thu, 11 Dec 2003 19:45:11 +0100 + +gv (1:3.5.8-30) unstable; urgency=low + + * FTBFS when using gcc-3.3 fixed (closes: #197187) + + -- Christian Kesselheim <ckesselh@debian.org> Fri, 13 Jun 2003 00:37:10 +0200 + +gv (1:3.5.8-29) unstable; urgency=low + + * Algorithm for guessing page media by looking at the documents + bounding box fixed (closes: #175023, #167994) + * GV did throw a segfault, when triggering "Respect document structure" + twice; fixed (closes: #152171) + * Upgraded to standards version 3.5.9.0 + + -- Christian Kesselheim <ckesselh@debian.org> Wed, 14 May 2003 17:01:15 +0200 + +gv (1:3.5.8-28) unstable; urgency=low + + * Prevent gv from rashly triggering TOC update if only numeric keypad + navigation was used (thanx to Sebastian Leske + <Sebastian.Leske@bigfoot.de> for tracking down this problem) + (closes: #166654) + * Quotes in man page fixed (patch by Kevin Ryde <user42@zip.com.au>) + (closes: #163745) + * Access beyound end of array fixed (closes: #167029) + * DSC parsing has been made case insensitive and does no longer insist + on trailing colons after each name; this will hopefully result in + less problems concerning badly structured documents (closes: #179643) + + -- Christian Kesselheim <ckesselh@debian.org> Tue, 6 May 2003 21:12:19 +0200 + +gv (1:3.5.8-27) unstable; urgency=high + + * SECURITY: Fixed buffer overflow bug that allowed malformed + PDF/Postscript files to cause arbitrary code to run with the + privileges of the current user (closes: #162830). + Thanks to Jan Niehusmann <jan@gondor.com> for the patch. + + -- Christian Kesselheim <ckesselh@debian.org> Fri, 11 Oct 2002 12:15:59 +0100 + +gv (1:3.5.8-26) unstable; urgency=low + + * Upgraded to standards version 3.5.6.0 + * Maintainer's email address exchanged + * Minor spelling mistakes in manpage fixed + + -- Christian Kesselheim <ckesselh@debian.org> Thu, 21 Mar 2002 14:58:18 +0100 + +gv (1:3.5.8-25) unstable; urgency=high + + * New maintainer + * Keep page markers in ToC when toggeling 'antialiasing' + or some of the other flags (closes: #111039) + * Corrected handling of '-nosafer' and '-noquiet' (closes: #63223) + * Broken handling of malformed EPS files fixed (closes: #66059) + * Update ToC after auto-scrolling (closes: #46607) + * Replaced email address in "send error reports to" field + by maintainer's address, because upstream is dead + * Bashism in debian/rules fixed + + -- Christian Kesselheim <ckesselh@infeurope.lu> Mon, 11 Feb 2002 13:38:12 +0100 + +gv (1:3.5.8-24) unstable; urgency=low + + * Orphaned this package. + + -- Adrian Bunk <bunk@fs.tum.de> Fri, 25 Jan 2002 12:50:51 +0100 + +gv (1:3.5.8-23) unstable; urgency=high + + * Added a "Documents" menu hint. (closes: #121035) + + -- Adrian Bunk <bunk@fs.tum.de> Fri, 11 Jan 2002 01:12:57 +0100 + +gv (1:3.5.8-22) unstable; urgency=high + + * Make gv build again (patch by Jeff Licquia + <jlicquia@progeny.com>). (closes: #109902) + * Corrected some URLs in the documentation. (closes: #101630) + * Use the full path for the menu icon. (closes: #96346) + + -- Adrian Bunk <bunk@fs.tum.de> Thu, 30 Aug 2001 21:19:07 +0200 + +gv (1:3.5.8-21) unstable; urgency=low + + * Removed the outdated debian/shlibs.local. + * Strip gv better. + * Added a menu hint. (closes: #82334) + + -- Adrian Bunk <bunk@fs.tum.de> Wed, 14 Feb 2001 19:52:19 +0100 + +gv (1:3.5.8-20) unstable; urgency=low + + * Added missing build dependency on xutils. (closes: #80186) + * Enable antialiasing by default. (closes: #79913) + * Make /etc/X11/app-defaults/GV a conffile. + + -- Adrian Bunk <bunk@fs.tum.de> Tue, 16 Jan 2001 00:40:35 +0100 + +gv (1:3.5.8-19) unstable; urgency=low + + * Moved app-defaults from /usr/X11R6/lib/X11 to /etc/X11. + (closes: #77601) + + -- Adrian Bunk <bunk@fs.tum.de> Fri, 15 Dec 2000 00:42:46 +0100 + +gv (1:3.5.8-18) unstable; urgency=low + + * New maintainer. + * This upload goes to unstable. (closes: #68810) + * Added "-isp" to dpkg-gencontrol in debian/rules. + * Added Build-Depends. + * Updated the package description. + + -- Adrian Bunk <bunk@fs.tum.de> Mon, 18 Sep 2000 12:35:57 +0200 + +gv (1:3.5.8-17) frozen; urgency=low + + * Corrected wrong link from /usr/doc/gv to + ../share/doc/gv (previously it pointed to ../share/doc/gv#). + The only file affected is debian/postinst (closes: Bug#61140) + + -- Marco Pistore <pistore@debian.org> Mon, 27 Mar 2000 10:36:00 +0200 + +gv (1:3.5.8-16) unstable; urgency=low + + * Removed empty lines from the top of file doc/gv.html, + so that it is correctly recognized as a html file + by dwww (closed: Bug#58977) + * Added DOCTYPE header to the doc/gv*.html files + * Documentation moved to /usr/share/doc/gv and link in /usr/doc + created. + * Moved to a recent debian-policy (3.1.1.1). + + -- Marco Pistore <pistore@debian.org> Fri, 3 Mar 2000 08:38:47 +0100 + +gv (1:3.5.8-15) unstable; urgency=low + + * Corrected weird error in preinst (closes: Bug#47044) + + -- Marco Pistore <pistore@debian.org> Tue, 12 Oct 1999 02:01:30 +0200 + +gv (1:3.5.8-14) unstable; urgency=low + + * Corrected the upstream URL in the copyright file (closes: Bug#41667) + * Now mime informations are handled via the update-mime approach + (closes: Bug#43331) + * Changed my email address to pistore@debian.org + + -- Marco Pistore <pistore@debian.org> Wed, 6 Oct 1999 23:12:30 +0200 + +gv (1:3.5.8-13) unstable; urgency=low + + * Readded menu entry (closes: Bug#41216) + + -- Marco Pistore <pistore@di.unipi.it> Fri, 16 Jul 1999 02:03:04 +0200 + +gv (1:3.5.8-12) unstable; urgency=low + + * Corrected the doc-base control file (closes: Bug#31771) + * Removed explicit dwww support: doc-base supplies it + (closes: Bug#31772) + + -- Marco Pistore <pistore@di.unipi.it> Tue, 6 Jul 1999 22:38:32 +0200 + +gv (1:3.5.8-11) unstable; urgency=low + + * Special characters of filenames are now quoted in the commands that + print, decompress and deal with PDF files (added function + quote_filename to file misc.c; modified files source/save.c and + source/ps.c) (closes: Bug#30738) + * Removed double quotes from commands that print, decompress and deal + with PDF files: they are no more needed (modified files config.Unix + and source/Imakefile) + * Added support for doc-base (closes Bug#31152) + + -- Marco Pistore <pistore@di.unipi.it> Sat, 2 Jan 1999 22:08:25 +0100 + +gv (1:3.5.8-10) unstable; urgency=low + + * Changed scratch dir from ~ to /tmp in file config.Unix + (closes: Bug#30520). + * Changed print command in file config.Unix: the file name is + now quoted and gv prints also files with spaces (closes: Bug#30738). + * Changed command for uncompressing .gz files and for managing + PDF files in source/Imakefile so that the involved file names + are quoted (closes: Bug#30514). + * Modified ps.c, so that strings %dsc and %pdf can appear in the command + that extract the structure from PDF files. Changed the default command to + 'pdf2dsc "%pdf" "%dsc"'. + * Changed the default command that converts PDF files into PS files + to 'pdf2ps "%pdf" "%ps"'. + * Added support for quoted strings in function process_fork in file + process.c. + * Now forward scrolling is allowed also when gv is called from a pipe: + modified file callbacks.c (closes: Bug#28382, Bug#29706). + * Redisplay is disabled for non-(gv_psfile) execution: modified + files misc.c and miscmenu.c. + + -- Marco Pistore <pistore@di.unipi.it> Sat, 19 Dec 1998 23:36:13 +0100 + +gv (1:3.5.8-9) unstable frozen; urgency=low + + * Rewritten description in control file (now PDF support is + provided also by GNU gs, not only by Aladdin gs). For the same + reason, removed Suggests: gs-aladdin. + * Modified save.c, so that strings %ps and %pdf can appear in the command + that converts PDF files into PS files. Changed the default command to + "pdf2ps %pdf %ps" that works both with gs 4 and with gs 5. + (Closes: Bug:#30255) + + -- Marco Pistore <pistore@di.unipi.it> Mon, 7 Dec 1998 18:43:45 +0100 + +gv (1:3.5.8-8) unstable; urgency=low + + * Scratch dir back to ~/ + * Now a "/" is automatically added to the end of the default scratch dir + if it is not present (so, if you set the scartch directory to + /tmp, the scratch files are saved into "/tmp/", not into "/"): + modified "source/file.c". (Closes: Bug#23055) + + -- Marco Pistore <pistore@di.unipi.it> Wed, 17 Jun 1998 00:08:51 +0200 + +gv (1:3.5.8-7) unstable frozen; urgency=low + + * I forgot to upload previous version also to FROZEN! + BRIAN, please include this in HAMM, since it avoids a conflict + the BO version of fvwm-common. + + -- Marco Pistore <pistore@di.unipi.it> Sun, 5 Apr 1998 19:17:58 +0200 + +gv (1:3.5.8-6) unstable; urgency=low + + * Added "Replaces: fvwm-common (<< 2.0.46-BETA-2)". + File /usr/X11R6/include/X11/pixmaps/mini-gv.xpm is present both in gv + and in old versions of package fvwm-common (for instance, the one in + debian 1.3). The "Replaces: fvwm-common" allows to install the package + without the --force-overwrite flag. See Packaging 8.5.1 (thanks James). + + -- Marco Pistore <pistore@di.unipi.it> Fri, 3 Apr 1998 22:11:04 +0200 + +gv (1:3.5.8-5) unstable frozen; urgency=low + + * New maintainer + * Typos in package description fixed (closes Bug#18925) + * Scartch dir is now /tmp (closes Bug#18728) + * Address of FSF corrected (lintian bug) + * Man and doc files have now mode 644 (lintian bug) + * -rpath (for xaw3d) has been removed: all works perfectly well also + without it + * Small changes in the rules file + + -- Marco Pistore <pistore@di.unipi.it> Wed, 25 Mar 1998 11:20:51 +0100 + +gv (1:3.5.8-4) unstable; urgency=low + + * Hech. I forgot the epock so dpkg will replace the `.1' version. One more go. + + -- Karl M. Hegbloom <karlheg@inetarena.com> Tue, 9 Dec 1997 03:36:49 -0800 + +gv (3.5.8-3) unstable; urgency=low + + * Really fix the depends on xaw3dg using a shlibs.local file. + fixes bug #15514 + + -- Karl M. Hegbloom <karlheg@inetarena.com> Tue, 9 Dec 1997 02:42:19 -0800 + +gv (3.5.8-2) unstable; urgency=low + + * Increment version number so that it will upgrade the non-maintainer version + `-.1' that should have been `-0.1'. + + -- Karl M. Hegbloom <karlheg@inetarena.com> Mon, 24 Nov 1997 12:51:57 -0800 + +gv (3.5.8-1) unstable; urgency=low + + * I've closed a bunch of outstanding bug reports, many of which should + have been closed earlier. + * Depend on `xaw3dg' (several bugs, merged, 13986) + + -- Karl M. Hegbloom <karlheg@inetarena.com> Sat, 22 Nov 1997 22:59:39 -0800 + +gv (3.5.8-.1) unstable; urgency=low + + * Non-maintainer release + * Latest version - Pristine sources. + * compiled with xlib6g, and libc6 + + -- Karl M. Hegbloom <karlheg@inetarena.com> Wed, 1 Oct 1997 11:02:22 -0700 + +gv (3.4.3-1.1) unstable; urgency=low + + * Non-maintainer release, compiled with xlib6g. + + -- Karl M. Hegbloom <karlheg@inetarena.com> Tue, 30 Sep 1997 17:06:16 -0700 + +gv (3.4.3-1) unstable; urgency=low + + * new upstream release including heavy improvements in look and feel as + well as several major improvements of the PostScript preprocessor and + several new features. + * this version can no longer be used with standard Athena Widgets. This + release uses (and depends on) the shared Xaw3d library. By using the + -rpath option, the library has to be installed, but doesn't have to be + used as replacement for Xaw. It would be possible to link it + statically against Xaw3d (still dynamically linking all the rest). + If there are enough requests for this, I'll change the package to do + this. + For people compiling from source, simply use the other definition of + XAWLIB in config.Unix for the static version. + Note that the standard symlinks in /usr/X11R6/lib/Xaw3d may be + incorrect. You should check them first if you want to compile gv with + shared libXaw3d. + + -- Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de> Sun, 27 Apr 1997 02:05:17 +0200 + +gv (2.9.4-2) frozen unstable; urgency=low + + * fixed typo + * uploaded to frozen + + -- Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de> Fri, 18 Apr 1997 01:01:13 +0200 + +gv (2.9.4-1) unstable; urgency=low + + * new upstream release + * fixed prerm script (Bug# 7857) + * added menu entries + * added direct access to HTML docs according to Webstandard via menu. + + -- Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de> Sat, 5 Apr 1997 13:06:04 +0200 + +gv (2.7b6-1) unstable; urgency=low + + * fixed bug 6718 (wrong MIME viewer installation) + * fixed bug 7228 (app-default problem) + * converted to new debian standard version 2.1.2.2 + * new upstream release + + -- Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de> Thu, 20 Feb 1997 01:04:29 +0100 + +gv (2.7b5-3) unstable; urgency=low + + * fixed bug 4700 (gv not stripped) + * added mime type application/ghostview + * added Provides: postscript-viewer, pdf-viewer + * finally found all functions using private Xaw code and eliminated + them. Now there is just one gv package for both standard and 3D Athena + Widgets. fixed control files for this. + + -- Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de> Thu, 17 Oct 1996 22:56:53 +0200 + +gv (2.7b5-2) unstable; urgency=low + + * fixed install-mime entry in postinst + * fixed app-defaults file for 2d gv + + -- Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de> Sat, 5 Oct 1996 10:48:54 +0200 + +gv (2.7b5-1) unstable; urgency=LOW + + * First Debian release of the gv PostScript/PDF viewer. + several changes had to be made in order to support + standard Athena Widgets as well as Xaw3d. + * Regretfully there is currently no way to make a binary supporting + both kinds at the same time. + + -- Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de> Sat, 5 Oct 1996 10:48:08 +0200 --- gv-3.6.3dfsg.orig/debian/gv_icon.xpm +++ gv-3.6.3dfsg/debian/gv_icon.xpm @@ -0,0 +1,59 @@ +/* XPM */ +static char * gv_icon_xpm[] = { +/* width height num_colors chars_per_pixel */ +"50 50 3 1", +/* colors */ +" c None", +". c black", +"X c white", +/* pixels */ +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ...... ", +" ..XXXX... ", +" ..XXXXXXX.. ", +" ..XXXXXXXXX. ", +" ..XXXXXXXXXX. ", +" ..XXXXXXXXXX. ", +" ..XXXXXXXXX.. ", +" ...XXXXXXX.. ", +" .... ..XXXXXX.. ", +" ..X.. ...XXXXX. .... ", +" ...XX. ..XXXXX. ..XX.. ", +" ...XX... .XXXXXX. ..XXXX. ", +" ...XXX.....XXXXXXX.. ..XXX... ", +" ...XXXXXXXXXXXXXXX....XXX.. ", +" ....XXXXXXXXXXXXXXXXXXX.. ", +" ...XXXXXXXXXXXXXXXXX.. ", +" ...XXXXXXXXXXXXXXX.. ", +" ...XXXXXXXXXXXXX.. ", +" ..XXXXXXXXXXXXX.. ", +" ...XXXXXXXXXXX.. ", +" ...XXXXXXXXXX.. ", +" ..XXXXXXXXXX. ", +" ...XXXXXXXX.. ", +" ...XXXXXXX. ", +" ..XXXXXXX.. ", +" ...XXXXXX.. ", +" ...XXXXXX. ", +" ...XXXXXX.. .. ", +" ...XXXXX....... ", +" ...XXXXXX....X. ", +" ...XXXXXXXXX.. ", +" ....XXXXXX.. ", +" .......... ", +" ....... ", +" ", +" ", +" ", +" ", +" ", +" ", +" "}; --- gv-3.6.3dfsg.orig/debian/control +++ gv-3.6.3dfsg/debian/control @@ -0,0 +1,20 @@ +Source: gv +Section: text +Priority: optional +Maintainer: Bernhard R. Link <brlink@debian.org> +Build-Depends: debhelper (>> 5), xaw3dg-dev, texinfo +Standards-Version: 3.7.3 +Homepage: http://www.gnu.org/software/gv/ + +Package: gv +Architecture: any +Depends: ghostscript-x | gs-gpl (<< 8.61) | gs-afpl (<< 8.61) | gs-esp (<< 8.61), ${shlibs:Depends} +Provides: postscript-viewer, pdf-viewer +Replaces: gv-2d, gv-3d, fvwm-common (<< 2.0.46-BETA-2) +Conflicts: gv-2d, gv-3d +Description: PostScript and PDF viewer for X + gv is a comfortable viewer of PostScript and PDF files for the X + Window System. It uses the ghostscript PostScript interpreter + and is based on the classic X front-end for gs, ghostview, which + it has replaced now. +XB-Tag: interface::x11, role::program, scope::application, uitoolkit::athena, use::viewing, works-with-format::pdf, works-with-format::postscript, works-with::text, x11::application --- gv-3.6.3dfsg.orig/debian/install +++ gv-3.6.3dfsg/debian/install @@ -0,0 +1,2 @@ +debian/gv_icon.xpm usr/share/pixmaps +debian/mini-gv.xpm usr/share/pixmaps --- gv-3.6.3dfsg.orig/debian/compat +++ gv-3.6.3dfsg/debian/compat @@ -0,0 +1 @@ +5 --- gv-3.6.3dfsg.orig/debian/menu +++ gv-3.6.3dfsg/debian/menu @@ -0,0 +1,3 @@ +?package(gv):needs="x11" section="Applications/Viewers" title="GV" \ + icon="/usr/share/pixmaps/mini-gv.xpm" \ + command="/usr/bin/gv" hints="PostScript,Documents" --- gv-3.6.3dfsg.orig/maintainer-patch-stamp +++ gv-3.6.3dfsg/maintainer-patch-stamp @@ -0,0 +1 @@ +package ready and patched for .diff.gz creation
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor