diff options
author | 2006-04-02 08:47:05 +0000 | |
---|---|---|
committer | 2006-04-02 08:47:05 +0000 | |
commit | 0f1dc3b5df56b7ff89222ebc3f3be500027969be (patch) | |
tree | b4a51f870b0e17907742911ce261042f2b8321cf /app-text/ghostview | |
parent | move ghostview -> gv (diff) | |
download | historical-0f1dc3b5df56b7ff89222ebc3f3be500027969be.tar.gz historical-0f1dc3b5df56b7ff89222ebc3f3be500027969be.tar.bz2 historical-0f1dc3b5df56b7ff89222ebc3f3be500027969be.zip |
remove obsolete ghostview, use gv now
Diffstat (limited to 'app-text/ghostview')
-rw-r--r-- | app-text/ghostview/ChangeLog | 60 | ||||
-rw-r--r-- | app-text/ghostview/Manifest | 7 | ||||
-rw-r--r-- | app-text/ghostview/files/digest-ghostview-1.5 | 1 | ||||
-rw-r--r-- | app-text/ghostview/files/digest-ghostview-1.5-r1 | 1 | ||||
-rw-r--r-- | app-text/ghostview/files/ghostview-1.5-gentoo.diff | 216 | ||||
-rw-r--r-- | app-text/ghostview/files/ghostview-1.5-r1-gentoo.diff | 216 | ||||
-rw-r--r-- | app-text/ghostview/ghostview-1.5-r1.ebuild | 53 | ||||
-rw-r--r-- | app-text/ghostview/ghostview-1.5.ebuild | 42 |
8 files changed, 0 insertions, 596 deletions
diff --git a/app-text/ghostview/ChangeLog b/app-text/ghostview/ChangeLog deleted file mode 100644 index 3aaa08ca9689..000000000000 --- a/app-text/ghostview/ChangeLog +++ /dev/null @@ -1,60 +0,0 @@ -# ChangeLog for app-text/ghostview -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostview/ChangeLog,v 1.20 2006/01/25 18:29:34 spyderous Exp $ - - 25 Jan 2006; Donnie Berkholz <spyderous@gentoo.org>; - ghostview-1.5-r1.ebuild: - (#120324) Missed a couple of build-time modular X deps. - - 25 Jan 2006; Donnie Berkholz <spyderous@gentoo.org>; - ghostview-1.5-r1.ebuild: - (#119720) Fix modular X deps. - - 18 Apr 2005; Michael Hanselmann <hansmi@gentoo.org> - ghostview-1.5-r1.ebuild: - Stable on ppc. - - 25 Oct 2004; Mamoru KOMACHI <usata@gentoo.org> ghostview-1.5-r1.ebuild, - ghostview-1.5.ebuild: - Provide virtual/pdfviewer and virtual/psviewer; bug #50423. - - 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> - ghostview-1.5-r1.ebuild, ghostview-1.5.ebuild: - virtual/glibc -> virtual/libc - - 28 Apr 2004; Jon Portnoy <avenj@gentoo.org> ghostview-1.5-r1.ebuild : - Stable on AMD64. - - 30 Mar 2004; Daniel Ahlberg <aliz@gentoo.org> ghostview-1.5-r1.ebuild: - Adding amd64 keyword. Closing #44902. - - 23 Feb 2004; Sven Blumenstein <bazik@gentoo.org> ghostview-1.5-r1.ebuild: - Stable on sparc. - - 09 Dec 2003; Heinrich Wendel <lanius@gentoo.org> ghostview-1.5-r1.ebuild, - ghostview-1.5.ebuild: - changed app-text/ghostscript to virtual/ghostscript - - 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords - -*ghostview-1.5-r1 (03 Nov 2002) - - 03 Nov 2002; Ryan Phillips <rphillips@gentoo.org> : - - Added Bret Towe's sed statements for optimizing the package. Fixes #7038 - -*ghostview-1.5 (1 Feb 2002) - - 14 Aug 2002; Pieter Van den Abeele <pvdabeel@gentoo.org> : - correct header - - 2 Aug 2002; phoen][x <phoenix@gentoo.org> ghostview-1.5.ebuild : - Added LICENSE, KEYWORDS, SLOT. - - 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : - - Added initial ChangeLog which should be updated whenever the package is - updated in any way. This changelog is targetted to users. This means that the - comments should well explained and written in clean English. The details about - writing correct changelogs are explained in the skel.ChangeLog file which you - can find in the root directory of the portage repository. diff --git a/app-text/ghostview/Manifest b/app-text/ghostview/Manifest deleted file mode 100644 index ef3f37954371..000000000000 --- a/app-text/ghostview/Manifest +++ /dev/null @@ -1,7 +0,0 @@ -MD5 f21d96537ea2a658157460919cfb8863 ChangeLog 2211 -MD5 0a6983343be936ed5c9144c59a9bca0c files/digest-ghostview-1.5 65 -MD5 0a6983343be936ed5c9144c59a9bca0c files/digest-ghostview-1.5-r1 65 -MD5 a964b4a03027f0ef87901d43921e0eef files/ghostview-1.5-gentoo.diff 7765 -MD5 a964b4a03027f0ef87901d43921e0eef files/ghostview-1.5-r1-gentoo.diff 7765 -MD5 1678e4bda2d3429d959fa909d1139927 ghostview-1.5-r1.ebuild 1273 -MD5 aaf552d80bb1fc2d5b2ef8aad2a233f8 ghostview-1.5.ebuild 1066 diff --git a/app-text/ghostview/files/digest-ghostview-1.5 b/app-text/ghostview/files/digest-ghostview-1.5 deleted file mode 100644 index d73ab66f9d4c..000000000000 --- a/app-text/ghostview/files/digest-ghostview-1.5 +++ /dev/null @@ -1 +0,0 @@ -MD5 4f5c1bced73fe14b03109cfa7aacfd90 ghostview-1.5.tar.gz 139742 diff --git a/app-text/ghostview/files/digest-ghostview-1.5-r1 b/app-text/ghostview/files/digest-ghostview-1.5-r1 deleted file mode 100644 index d73ab66f9d4c..000000000000 --- a/app-text/ghostview/files/digest-ghostview-1.5-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 4f5c1bced73fe14b03109cfa7aacfd90 ghostview-1.5.tar.gz 139742 diff --git a/app-text/ghostview/files/ghostview-1.5-gentoo.diff b/app-text/ghostview/files/ghostview-1.5-gentoo.diff deleted file mode 100644 index 4de1cc981618..000000000000 --- a/app-text/ghostview/files/ghostview-1.5-gentoo.diff +++ /dev/null @@ -1,216 +0,0 @@ -diff -u -r ghostview-1.5.orig/Ghostview.c ghostview-1.5/Ghostview.c ---- ghostview-1.5.orig/Ghostview.c Sat Jul 24 02:29:12 1993 -+++ ghostview-1.5/Ghostview.c Fri Nov 9 20:41:29 2001 -@@ -1112,7 +1112,7 @@ - if (gvw->ghostview.disable_start) return; - - argv[argc++] = gvw->ghostview.interpreter; -- argv[argc++] = "-sDEVICE=x11"; -+ argv[argc++] = "-sDEVICE=x11alpha"; - argv[argc++] = "-dNOPAUSE"; - if (gvw->ghostview.quiet) argv[argc++] = "-dQUIET"; - if (gvw->ghostview.safer) argv[argc++] = "-dSAFER"; -@@ -1832,7 +1832,7 @@ - ** Build Ghostscript startup command - */ - strcpy(cmd, gvw->ghostview.interpreter); -- strcat(cmd, " \"-sDEVICE=x11\" \"-dNOPAUSE\" "); -+ strcat(cmd, " \"-sDEVICE=x11alpha\" \"-dNOPAUSE\" "); - if (gvw->ghostview.quiet) strcat(cmd, "\"-dQUIET\" "); - if (gvw->ghostview.safer) strcat(cmd, "\"-dSAFER\" "); - if (gvw->ghostview.arguments) { -diff -u -r ghostview-1.5.orig/SelFile.c ghostview-1.5/SelFile.c ---- ghostview-1.5.orig/SelFile.c Sat Nov 10 00:01:06 2001 -+++ ghostview-1.5/SelFile.c Sat Nov 10 00:01:20 2001 -@@ -44,9 +44,11 @@ - #include <stdio.h> - #include <errno.h> - /* BSD 4.3 errno.h does not declare errno */ -+#ifdef BSD - extern int errno; - extern int sys_nerr; - extern char *sys_errlist[]; -+#endif - - #include <sys/param.h> - #include <X11/cursorfont.h> -@@ -685,7 +687,7 @@ - SFpositionWidget(selFile); - XtMapWidget(selFile); - --#if defined(SVR4) || defined(SYSV) || defined(USG) -+#if defined(SVR4) || defined(SYSV) || defined(USG) || defined(__GLIBC__) - if (!getcwd(SFstartDir, MAXPATHLEN)) { - #else /* defined(SVR4) || defined(SYSV) || defined(USG) */ - if (!getwd(SFstartDir)) { -diff -u -r ghostview-1.5.orig/ghostview.man ghostview-1.5/ghostview.man ---- ghostview-1.5.orig/ghostview.man Sat Jul 24 02:29:12 1993 -+++ ghostview-1.5/ghostview.man Thu Nov 8 06:32:50 2001 -@@ -33,7 +33,7 @@ - .br - .B ghostview - [\-monochrome] [\-grayscale] [\-color] --[\-[no]title] [\-[no]date] [\-[no]locator] [\-[no]labels] -+[\-[no]title] [\-[no]wtitle] [\-[no]date] [\-[no]locator] [\-[no]labels] - [\-resolution\ \fIdpi\fP] [\-dpi\ \fIdpi\fP] - [\-xdpi\ \fIdpi\fP] [\-ydpi\ \fIdpi\fP] [\-magstep\ \fIn\fP] - [\-[no]safer] [\-[no]quiet] [\-arguments\ \fIarguments\fP] -@@ -463,6 +463,9 @@ - .IP "\fBshowTitle (\fPclass\fB Labels)\fP" 1i - Tells whether to display the \fB%%Title\fP comment. - The default is ``true''. -+.IP "\fBwindowTitle (\fPclass\fB Labels)\fP" 1i -+Tells whether to copy the \fB%%Title\fP comment into the window title. -+The default is ``true''. - .IP "\fBshowDate (\fPclass\fB Labels)\fP" 1i - Tells whether to display the \fB%%Data\fP comment. - The default is ``true''. -@@ -623,6 +626,10 @@ - Equivalent to setting ``Ghostview.showTitle: True''. - .IP \fB\-notitle\fP 1i - Equivalent to setting ``Ghostview.showTitle: False''. -+.IP \fB\-wtitle\fP 1i -+Equivalent to setting ``Ghostview.windowTitle: True''. -+.IP \fB\-nowtitle\fP 1i -+Equivalent to setting ``Ghostview.windowTitle: False''. - .IP \fB\-date\fP 1i - Equivalent to setting ``Ghostview.showDate: True''. - .IP \fB\-nodate\fP 1i -diff -u -r ghostview-1.5.orig/gv.h ghostview-1.5/gv.h ---- ghostview-1.5.orig/gv.h Sat Jul 24 02:29:12 1993 -+++ ghostview-1.5/gv.h Thu Nov 8 06:32:50 2001 -@@ -39,6 +39,7 @@ - /* Application resources */ - typedef struct _AppResources { - Boolean show_title; /* whether to show title */ -+ Boolean window_title; /* whether to put document title in window title */ - Boolean show_date; /* whether to show date */ - Boolean show_locator; /* whether to show locator */ - Boolean auto_center; /* whether to automatically center the page */ -@@ -103,6 +104,8 @@ - extern XErrorHandler old_Xerror; - extern Boolean dying; - extern XErrorEvent bomb; -+extern XTextProperty nameprop; -+extern String version; - - enum {OPEN, PRINT_WHOLE, PRINT_MARKED, SAVE}; - extern int mode; -diff -u -r ghostview-1.5.orig/main.c ghostview-1.5/main.c ---- ghostview-1.5.orig/main.c Sat Jul 24 02:29:12 1993 -+++ ghostview-1.5/main.c Thu Nov 8 06:32:50 2001 -@@ -55,11 +55,13 @@ - - extern char *getenv(); - --static String version = "Ghostview, version 1.5"; -+String version = "Ghostview, version 1.5"; - - static XtResource resources[] = { - {"showTitle", "Labels", XtRBoolean, sizeof(Boolean), - XtOffsetOf(AppResources, show_title), XtRImmediate, (XtPointer)True}, -+ {"windowTitle", "Labels", XtRBoolean, sizeof(Boolean), -+ XtOffsetOf(AppResources, window_title), XtRImmediate, (XtPointer)True}, - {"showDate", "Labels", XtRBoolean, sizeof(Boolean), - XtOffsetOf(AppResources, show_date), XtRImmediate, (XtPointer)True}, - {"showLocator", "Labels", XtRBoolean, sizeof(Boolean), -@@ -138,6 +140,8 @@ - {"-page", ".page", XrmoptionSepArg, NULL}, - {"-title", ".showTitle", XrmoptionNoArg, "True"}, - {"-notitle", ".showTitle", XrmoptionNoArg, "False"}, -+ {"-wtitle", ".windowTitle", XrmoptionNoArg, "True"}, -+ {"-nowtitle", ".windowTitle", XrmoptionNoArg, "False"}, - {"-date", ".showDate", XrmoptionNoArg, "True"}, - {"-nodate", ".showDate", XrmoptionNoArg, "False"}, - {"-locator", ".showLocator", XrmoptionNoArg, "True"}, -@@ -287,6 +291,7 @@ - XErrorHandler old_Xerror; /* standard error handler */ - Boolean dying; /* whether an X error caused our exit */ - XErrorEvent bomb; /* what the error was */ -+XTextProperty nameprop; /* the XStringProperty for the window name */ - - XtAppContext app_con; - AppResources app_res; -@@ -363,7 +368,6 @@ - Boolean set_vert_dist; - String s1, s2; - XFontStruct *font; -- XTextProperty nameprop; - Dimension bottomMargin, leftMargin, rightMargin, topMargin; - Dimension width, height; - Dimension button_width; -@@ -371,6 +375,7 @@ - static XawTextSelectType sarry[] = - {XawselectLine, XawselectAll, XawselectNull}; - -+ nameprop.value= 0; - XtToolkitInitialize(); - XtSetTypeConverter(XtRString, XtRPageOrientation, - XmuCvtStringToPageOrientation, NULL, 0, -@@ -871,7 +876,7 @@ - XtSetArg(args[0], XtNtransientFor, toplevel); - XtSetValues(dialogpopup, args, ONE); - XSetWMProtocols(dpy, XtWindow(toplevel), &wm_delete_window, 1); -- if (XStringListToTextProperty(&version, 1, &nameprop)) { -+ if (nameprop.value) { - XSetWMName(dpy, XtWindow(toplevel), &nameprop); - } - -diff -u -r ghostview-1.5.orig/misc.c ghostview-1.5/misc.c ---- ghostview-1.5.orig/misc.c Sat Jul 24 02:29:12 1993 -+++ ghostview-1.5/misc.c Thu Nov 8 06:32:50 2001 -@@ -56,10 +56,13 @@ - - #include <errno.h> - /* BSD 4.3 errno.h does not declare errno */ --extern int errno; -+ - #ifdef VMS - #include <perror.h> --#else -+#endif -+ -+#ifdef BSD -+extern int errno; - extern int sys_nerr; - extern char *sys_errlist[]; - #endif -@@ -297,6 +300,7 @@ - static String nothing = ""; - String label; - Pixmap bitmap; -+ char *title, *versionfilename; - - /* Reset to a known state. */ - psfree(olddoc); -@@ -328,6 +332,30 @@ - titlemenu = build_label_menu(titlebutton, "title", label, bitmap); - } - -+ if (nameprop.value) { -+ XFree(nameprop.value); -+ nameprop.value = 0; -+ } -+ if (app_res.window_title) { -+ if (doc && doc->title) { -+ title = doc->title; -+ } else if (filename) { -+ title = filename; -+ } else { -+ title = ""; -+ } -+ versionfilename = XtMalloc(strlen(version)+3+strlen(title)+1); -+ strcpy(versionfilename, version); -+ strcat(versionfilename, " - "); -+ strcat(versionfilename, title); -+ XStringListToTextProperty(&versionfilename, 1, &nameprop); -+ XtFree(versionfilename); -+ } else { -+ XStringListToTextProperty(&version, 1, &nameprop); -+ } -+ if (nameprop.value && XtIsRealized(toplevel)) { -+ XSetWMName(XtDisplay(toplevel), XtWindow(toplevel), &nameprop); -+ } - if (app_res.show_date) { - if (doc && doc->date) { - label = doc->date; diff --git a/app-text/ghostview/files/ghostview-1.5-r1-gentoo.diff b/app-text/ghostview/files/ghostview-1.5-r1-gentoo.diff deleted file mode 100644 index 4de1cc981618..000000000000 --- a/app-text/ghostview/files/ghostview-1.5-r1-gentoo.diff +++ /dev/null @@ -1,216 +0,0 @@ -diff -u -r ghostview-1.5.orig/Ghostview.c ghostview-1.5/Ghostview.c ---- ghostview-1.5.orig/Ghostview.c Sat Jul 24 02:29:12 1993 -+++ ghostview-1.5/Ghostview.c Fri Nov 9 20:41:29 2001 -@@ -1112,7 +1112,7 @@ - if (gvw->ghostview.disable_start) return; - - argv[argc++] = gvw->ghostview.interpreter; -- argv[argc++] = "-sDEVICE=x11"; -+ argv[argc++] = "-sDEVICE=x11alpha"; - argv[argc++] = "-dNOPAUSE"; - if (gvw->ghostview.quiet) argv[argc++] = "-dQUIET"; - if (gvw->ghostview.safer) argv[argc++] = "-dSAFER"; -@@ -1832,7 +1832,7 @@ - ** Build Ghostscript startup command - */ - strcpy(cmd, gvw->ghostview.interpreter); -- strcat(cmd, " \"-sDEVICE=x11\" \"-dNOPAUSE\" "); -+ strcat(cmd, " \"-sDEVICE=x11alpha\" \"-dNOPAUSE\" "); - if (gvw->ghostview.quiet) strcat(cmd, "\"-dQUIET\" "); - if (gvw->ghostview.safer) strcat(cmd, "\"-dSAFER\" "); - if (gvw->ghostview.arguments) { -diff -u -r ghostview-1.5.orig/SelFile.c ghostview-1.5/SelFile.c ---- ghostview-1.5.orig/SelFile.c Sat Nov 10 00:01:06 2001 -+++ ghostview-1.5/SelFile.c Sat Nov 10 00:01:20 2001 -@@ -44,9 +44,11 @@ - #include <stdio.h> - #include <errno.h> - /* BSD 4.3 errno.h does not declare errno */ -+#ifdef BSD - extern int errno; - extern int sys_nerr; - extern char *sys_errlist[]; -+#endif - - #include <sys/param.h> - #include <X11/cursorfont.h> -@@ -685,7 +687,7 @@ - SFpositionWidget(selFile); - XtMapWidget(selFile); - --#if defined(SVR4) || defined(SYSV) || defined(USG) -+#if defined(SVR4) || defined(SYSV) || defined(USG) || defined(__GLIBC__) - if (!getcwd(SFstartDir, MAXPATHLEN)) { - #else /* defined(SVR4) || defined(SYSV) || defined(USG) */ - if (!getwd(SFstartDir)) { -diff -u -r ghostview-1.5.orig/ghostview.man ghostview-1.5/ghostview.man ---- ghostview-1.5.orig/ghostview.man Sat Jul 24 02:29:12 1993 -+++ ghostview-1.5/ghostview.man Thu Nov 8 06:32:50 2001 -@@ -33,7 +33,7 @@ - .br - .B ghostview - [\-monochrome] [\-grayscale] [\-color] --[\-[no]title] [\-[no]date] [\-[no]locator] [\-[no]labels] -+[\-[no]title] [\-[no]wtitle] [\-[no]date] [\-[no]locator] [\-[no]labels] - [\-resolution\ \fIdpi\fP] [\-dpi\ \fIdpi\fP] - [\-xdpi\ \fIdpi\fP] [\-ydpi\ \fIdpi\fP] [\-magstep\ \fIn\fP] - [\-[no]safer] [\-[no]quiet] [\-arguments\ \fIarguments\fP] -@@ -463,6 +463,9 @@ - .IP "\fBshowTitle (\fPclass\fB Labels)\fP" 1i - Tells whether to display the \fB%%Title\fP comment. - The default is ``true''. -+.IP "\fBwindowTitle (\fPclass\fB Labels)\fP" 1i -+Tells whether to copy the \fB%%Title\fP comment into the window title. -+The default is ``true''. - .IP "\fBshowDate (\fPclass\fB Labels)\fP" 1i - Tells whether to display the \fB%%Data\fP comment. - The default is ``true''. -@@ -623,6 +626,10 @@ - Equivalent to setting ``Ghostview.showTitle: True''. - .IP \fB\-notitle\fP 1i - Equivalent to setting ``Ghostview.showTitle: False''. -+.IP \fB\-wtitle\fP 1i -+Equivalent to setting ``Ghostview.windowTitle: True''. -+.IP \fB\-nowtitle\fP 1i -+Equivalent to setting ``Ghostview.windowTitle: False''. - .IP \fB\-date\fP 1i - Equivalent to setting ``Ghostview.showDate: True''. - .IP \fB\-nodate\fP 1i -diff -u -r ghostview-1.5.orig/gv.h ghostview-1.5/gv.h ---- ghostview-1.5.orig/gv.h Sat Jul 24 02:29:12 1993 -+++ ghostview-1.5/gv.h Thu Nov 8 06:32:50 2001 -@@ -39,6 +39,7 @@ - /* Application resources */ - typedef struct _AppResources { - Boolean show_title; /* whether to show title */ -+ Boolean window_title; /* whether to put document title in window title */ - Boolean show_date; /* whether to show date */ - Boolean show_locator; /* whether to show locator */ - Boolean auto_center; /* whether to automatically center the page */ -@@ -103,6 +104,8 @@ - extern XErrorHandler old_Xerror; - extern Boolean dying; - extern XErrorEvent bomb; -+extern XTextProperty nameprop; -+extern String version; - - enum {OPEN, PRINT_WHOLE, PRINT_MARKED, SAVE}; - extern int mode; -diff -u -r ghostview-1.5.orig/main.c ghostview-1.5/main.c ---- ghostview-1.5.orig/main.c Sat Jul 24 02:29:12 1993 -+++ ghostview-1.5/main.c Thu Nov 8 06:32:50 2001 -@@ -55,11 +55,13 @@ - - extern char *getenv(); - --static String version = "Ghostview, version 1.5"; -+String version = "Ghostview, version 1.5"; - - static XtResource resources[] = { - {"showTitle", "Labels", XtRBoolean, sizeof(Boolean), - XtOffsetOf(AppResources, show_title), XtRImmediate, (XtPointer)True}, -+ {"windowTitle", "Labels", XtRBoolean, sizeof(Boolean), -+ XtOffsetOf(AppResources, window_title), XtRImmediate, (XtPointer)True}, - {"showDate", "Labels", XtRBoolean, sizeof(Boolean), - XtOffsetOf(AppResources, show_date), XtRImmediate, (XtPointer)True}, - {"showLocator", "Labels", XtRBoolean, sizeof(Boolean), -@@ -138,6 +140,8 @@ - {"-page", ".page", XrmoptionSepArg, NULL}, - {"-title", ".showTitle", XrmoptionNoArg, "True"}, - {"-notitle", ".showTitle", XrmoptionNoArg, "False"}, -+ {"-wtitle", ".windowTitle", XrmoptionNoArg, "True"}, -+ {"-nowtitle", ".windowTitle", XrmoptionNoArg, "False"}, - {"-date", ".showDate", XrmoptionNoArg, "True"}, - {"-nodate", ".showDate", XrmoptionNoArg, "False"}, - {"-locator", ".showLocator", XrmoptionNoArg, "True"}, -@@ -287,6 +291,7 @@ - XErrorHandler old_Xerror; /* standard error handler */ - Boolean dying; /* whether an X error caused our exit */ - XErrorEvent bomb; /* what the error was */ -+XTextProperty nameprop; /* the XStringProperty for the window name */ - - XtAppContext app_con; - AppResources app_res; -@@ -363,7 +368,6 @@ - Boolean set_vert_dist; - String s1, s2; - XFontStruct *font; -- XTextProperty nameprop; - Dimension bottomMargin, leftMargin, rightMargin, topMargin; - Dimension width, height; - Dimension button_width; -@@ -371,6 +375,7 @@ - static XawTextSelectType sarry[] = - {XawselectLine, XawselectAll, XawselectNull}; - -+ nameprop.value= 0; - XtToolkitInitialize(); - XtSetTypeConverter(XtRString, XtRPageOrientation, - XmuCvtStringToPageOrientation, NULL, 0, -@@ -871,7 +876,7 @@ - XtSetArg(args[0], XtNtransientFor, toplevel); - XtSetValues(dialogpopup, args, ONE); - XSetWMProtocols(dpy, XtWindow(toplevel), &wm_delete_window, 1); -- if (XStringListToTextProperty(&version, 1, &nameprop)) { -+ if (nameprop.value) { - XSetWMName(dpy, XtWindow(toplevel), &nameprop); - } - -diff -u -r ghostview-1.5.orig/misc.c ghostview-1.5/misc.c ---- ghostview-1.5.orig/misc.c Sat Jul 24 02:29:12 1993 -+++ ghostview-1.5/misc.c Thu Nov 8 06:32:50 2001 -@@ -56,10 +56,13 @@ - - #include <errno.h> - /* BSD 4.3 errno.h does not declare errno */ --extern int errno; -+ - #ifdef VMS - #include <perror.h> --#else -+#endif -+ -+#ifdef BSD -+extern int errno; - extern int sys_nerr; - extern char *sys_errlist[]; - #endif -@@ -297,6 +300,7 @@ - static String nothing = ""; - String label; - Pixmap bitmap; -+ char *title, *versionfilename; - - /* Reset to a known state. */ - psfree(olddoc); -@@ -328,6 +332,30 @@ - titlemenu = build_label_menu(titlebutton, "title", label, bitmap); - } - -+ if (nameprop.value) { -+ XFree(nameprop.value); -+ nameprop.value = 0; -+ } -+ if (app_res.window_title) { -+ if (doc && doc->title) { -+ title = doc->title; -+ } else if (filename) { -+ title = filename; -+ } else { -+ title = ""; -+ } -+ versionfilename = XtMalloc(strlen(version)+3+strlen(title)+1); -+ strcpy(versionfilename, version); -+ strcat(versionfilename, " - "); -+ strcat(versionfilename, title); -+ XStringListToTextProperty(&versionfilename, 1, &nameprop); -+ XtFree(versionfilename); -+ } else { -+ XStringListToTextProperty(&version, 1, &nameprop); -+ } -+ if (nameprop.value && XtIsRealized(toplevel)) { -+ XSetWMName(XtDisplay(toplevel), XtWindow(toplevel), &nameprop); -+ } - if (app_res.show_date) { - if (doc && doc->date) { - label = doc->date; diff --git a/app-text/ghostview/ghostview-1.5-r1.ebuild b/app-text/ghostview/ghostview-1.5-r1.ebuild deleted file mode 100644 index 129482a0a7e0..000000000000 --- a/app-text/ghostview/ghostview-1.5-r1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostview/ghostview-1.5-r1.ebuild,v 1.20 2006/01/25 18:29:34 spyderous Exp $ - -inherit eutils - -DESCRIPTION="A PostScript viewer for X11" -HOMEPAGE="http://www.gnu.org/software/ghostview/" -SRC_URI="ftp://ftp.gnu.org/gnu/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86 ppc sparc amd64" -IUSE="" - -RDEPEND="|| ( ( x11-libs/libXaw - x11-misc/xbitmaps - ) - virtual/x11 - ) - virtual/ghostscript" -DEPEND="${RDEPEND} - virtual/libc - || ( ( x11-misc/imake - x11-misc/gccmakedep - ) - virtual/x11 - )" -PROVIDE="virtual/pdfviewer - virtual/psviewer" - -src_unpack() { - unpack ${A} - # This patch contains all the Debian patches and enables anti-aliasing. - epatch ${FILESDIR}/${PF}-gentoo.diff -} - -src_compile() { - PATH=/usr/X11R6/bin:${PATH} # root doesn't get this by default - xmkmf -a || die - sed -i -e "s:CDEBUGFLAGS = .*:CDEBUGFLAGS = ${CFLAGS} -fno-strength-reduce:" \ - -e "s,all:: ghostview.\$(MANSUFFIX).html,all:: ,g" \ - Makefile - emake || die -} - -src_install() { - dobin ghostview - newman ghostview.man ghostview.1 - insinto /etc/X11/app-defaults - newins Ghostview.ad Ghostview - dodoc COPYING HISTORY README comments.doc -} diff --git a/app-text/ghostview/ghostview-1.5.ebuild b/app-text/ghostview/ghostview-1.5.ebuild deleted file mode 100644 index 6ce07d0ecb69..000000000000 --- a/app-text/ghostview/ghostview-1.5.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostview/ghostview-1.5.ebuild,v 1.22 2005/01/01 16:16:01 eradicator Exp $ - -inherit eutils - -DESCRIPTION="A PostScript viewer for X11" -HOMEPAGE="http://www.gnu.org/software/ghostview/" -SRC_URI="ftp://ftp.gnu.org/gnu/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86 ppc sparc" -IUSE="" - -DEPEND="virtual/libc - virtual/x11" -RDEPEND="${DEPEND} - virtual/ghostscript" -PROVIDE="virtual/pdfviewer - virtual/psviewer" - -src_unpack() { - unpack ${A} - # This patch contains all the Debian patches and enables anti-aliasing. - epatch ${FILESDIR}/${PF}-gentoo.diff -} - -src_compile() { - PATH=/usr/X11R6/bin:${PATH} # root doesn't get this by default - xmkmf -a || die - sed -i -e "s,all:: ghostview.\$(MANSUFFIX).html,all:: ,g" Makefile - emake || die -} - -src_install() { - dobin ghostview - newman ghostview.man ghostview.1 - insinto /etc/X11/app-defaults - newins Ghostview.ad Ghostview - dodoc COPYING HISTORY README comments.doc -} |