Update gv to 3.7.1.

%%%%%%%%%%%%%%%%%%% GV 3.7.1 (June 2010) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Fix bug [bug #30081] gv 3.7.0: unable to print/save pdf files.

%%%%%%%%%%%%%%%%%%% GV 3.7.0 (June 2010) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

* GV 3.6.91 has been released as GV 3.7.0 with no changes but
  some minor code cleanups.

%%%%%%%%%%%%%%%%%%% GV 3.6.91 (June 2010) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Support starting ghostscript from a safe directory.

# ghostscript is started with -P- if SAFER is enabled.

# ghostscript is started with -dSAFER and -dDELAYSAFER for "pdf2dsc"
  and "pdf2ps" if safer is enabled

# Minor bugfixes

%%%%%%%%%%%%%%%%%%% GV 3.6.90 (May 2010) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Fix compiling on Mac OS X

# Support for localised user interfaces

%%%%%%%%%%%%%%%%%%% GV 3.6.9  (April 2010) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Bugfix in gv-update-userconfig

%%%%%%%%%%%%%%%%%%% GV 3.6.8.91  (March 2010) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Fixed compiling on Xaw3d 1.5.

%%%%%%%%%%%%%%%%%%% GV 3.6.8.90  (March 2010) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# UTF-8 Support. Read the included file README.I18N for details.

%%%%%%%%%%%%%%%%%%% GV 3.6.8  (December 2009) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# GV 3.6.7.90 has been released as GV 3.6.8 with no changes

? "Fit to window magnification" and "Fit width to window magnification" with
  "Automatic resizing" turned on sometime miss rescaling, especially when
  changing the orientation or resizing the window. You can force
  rescaling by selecting the active "special" scale in the scales menu.

? Interactive prompting for the password of encrypted PDF files do not work
  if and only if DSC is turned off. As a workarouund, you can load the file
  with DSC turned on and then turn DSC off.

%%%%%%%%%%%%%%%%%%% GV 3.6.7.90  (December 2009) %%%%%%%%%%%%%%%%%%%%%%%%%%%

# Compilation fix for Mac OS X: Requires --enable-SIGCHLD-fallback during
  compilation.

# "Fit height to window magnification"  --
  currently works best with "Automatic resizing" turned off.
  With --scale=-1003, you can access the new scale from the command line.

# Improved handling of filename "-" (which means read document from stdin)

%%%%%%%%%%%%%%%%%%% GV 3.6.7  (March 2009) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# GV 3.6.6.92 has been released as GV 3.6.7 with no changes

? "Fit to window magnification" and "Fit width to window magnification" with
  "Automatic resizing" turned on sometime miss rescaling, especially when
  changing the orientation or resizing the window. You can force
  rescaling by selecting the active "special" scale in the scales menu.

? Interactive prompting for the password of encrypted PDF files do not work
  if and only if DSC is turned off. As a workarouund, you can load the file
  with DSC turned on and then turn DSC off.

%%%%%%%%%%%%%% GV 3.6.6.92 (internal release: March 2009) %%%%%%%%%%%%%%

# Fixed debian bug #516995: Misleading error message when .gv file is not
present [and XUSERFILESEARCHPATH is used]

%%%%%%%%%%%%%%%%%%% GV 3.6.6.91 (February 2009) %%%%%%%%%%%%%%%%%%%%%%%%

# Fixed a bug in switching to presentation mode.

# Fixed reset scrolling position in open dialog when changing directories.

%%%%%%%%%%%%%%%%%%% GV 3.6.6.90 (January 2009) %%%%%%%%%%%%%%%%%%%%%%%%

# TOC can now display more than about 2000 pages (fixes bug #24069).

# File open dialog can now display more than about 2000 files
  (fixes ubuntu bug #274767).

# By pressing "Shift-P" or selecting "State/Presentation Mode", you can
  open another instance of GNU gv which is in presentation mode.

%%%%%%%%%%%%%%%%%%% GV 3.6.6  (September 2008) %%%%%%%%%%%%%%%%%%%%%%%%

# Updated maintainer's e-mail address, otherwise no changes

%%%%%%%%%%%%%%%%%%% GV 3.6.5.92  (September 2008) %%%%%%%%%%%%%%%%%%%%%

# libzio is now used if available during compile time

%%%%%%%%%%%%%%%%%%% GV 3.6.5.91  (September 2008) %%%%%%%%%%%%%%%%%%%%%

# gv-update-userconfig now offers the options -n resp. -N to switch to an
  alternative navigation: After each page switch (except if selected by the
  page number) the page is scrolled to   the top (if switching forward) resp.
  the bottom (if switching backward).

# gv-update-userconfig can remove the resources inserted by -n resp. -N with
  the new option -s.

# Support for encrypted PDF files. New command line switch
  "--password=PASSWORD" for opening encrypted PDFs. If the password
  is not supplied via command line, the user will be asked to enter it.

# Support for files > 2GB on file systems with large file support.

? Interactive prompting for the password of encrypted PDF files do not work
  if and only if DSC is turned off. As a workarouund, you can load the file
  with DSC turned on and then turn DSC off.

%%%%%%%%%%%%%%%%%%% GV 3.6.5.90  (August 2008) %%%%%%%%%%%%%%%%%%%%%%%%

# the current coordinate can be saved to a file by the z resp. the u key.
  See gv.info for details.

# The return key now scrolls through the whole document vertically.
  Unlike the space key no horizontal scrolling is performed. The old function
  of the return key is still available through the "Page Down" and the "f" key.

# *.ad and *.dat files are installed to $PREFIX/share/gv

# "ERROR:" and "error:" now also trigger the info popup in error mode

# Xinerama support. It can be configured by the "xinerama"-resource.
  Its values can be "On", "Off" or "Auto". "Auto" is the default.

# New helper Script "gv-update-userconfig", which is a simple script to
  update an .gv config file to the current version of gv.

# Should build on Solaris now using sun studio 11 compiler

%%%%%%%%%%%%%%%%%%% GV 3.6.5  (July 2008) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# GV 3.6.4.91 has been released as GV 3.6.5 with no changes

? "Fit to window magnification" and "Fit width to window magnification" with
  "Automatic resizing" turned on sometime miss rescaling, especially when
  changing the orientation or resizing the window. You can force
  rescaling by selecting the active "special" scale in the scales menu.

%%%%%%%%%%%%%%%%%%% GV 3.6.4.91  (June 2008) %%%%%%%%%%%%%%%%%%%%%%%%%%

# ~/.gv now contains the version that has saved that configuration.

%%%%%%%%%%%%%%%%%%% GV 3.6.4.90  (June 2008) %%%%%%%%%%%%%%%%%%%%%%%%%%

* Build-system ensures that the man-page is always up to date

# Fixed some compiler warnings

# Added new widgetless mode, usable via option "--widgetless"

# --help, --usage and --version now work without having an X11 display

# --spartan and --widgetless now use embedded resources. Before this bugfix,
  you had to use --style=gv_spartan.dat to use the embedded resource.

# --infoSilent, --infoErrors and --infoAll will control, which ghostscript
  messages will lead to an info pop-up window.
  The same effect can be reached via a resource "infoVerbose", which values can
  be "Silent", "Errors" and "All". It can also be edited via the "gv options"
  dialog.

# "Fit to window magnification" and "Fit width to window magnification" --
  currently works best with "Automatic resizing" turned off. With --scale=-1000
  resp. --scale=-1001, you can access these special scales from the command line.

? "Fit to window magnification" and "Fit width to window magnification" with
  "Automatic resizing" turned on sometime miss rescaling, especially when
  changing the orientation or resizing the window. You can force
  rescaling by selecting the active "special" scale in the scales menu.

# Arbitrary scales are now possible - input them in the gv options dialog
  or with --scale=n, where n is a float.

# New fullscreen mode which needs support from the window manager

# New command line switch "--presentation" as a shortcut for
  "--fullscreen --noresize --scale=-1000 --widgetless"

%%%%%%%%%%%%%%%%%%% GV 3.6.4  (June 2008) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# GV 3.6.3.90 has been released as GV 3.6.4 with no changes

%%%%%%%%%%%%%%%%%%% GV 3.6.3.90  (May 2008) %%%%%%%%%%%%%%%%%%%%%%%%%%%

# DSC parser now respects the level of BeginDocument/EndDocument

# Possible segfault has been fixed

# Fixed bug #21239: Vlist.c produces garbage if International is set

# Fixed bug #21740: popup windows may partly invisible as not on the screen

# The escape key is now working in more contexts

# The filename can optionally be shown insted of the title

# Fixed bug #23199: No error message for errors in opened file

* Got rid of non-free code.
This commit is contained in:
obache 2010-07-24 08:22:02 +00:00
parent f9dc07c13c
commit f10e4a067a
9 changed files with 65 additions and 142 deletions

View file

@ -1,19 +1,18 @@
# $NetBSD: Makefile,v 1.70 2010/03/11 12:46:42 drochner Exp $
# $NetBSD: Makefile,v 1.71 2010/07/24 08:22:02 obache Exp $
DISTNAME= gv-3.6.3
PKGREVISION= 2
DISTNAME= gv-3.7.1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_GNU:=gv/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/gv/
COMMENT= PostScript and PDF previewer
LICENSE= gnu-gpl-v2
LICENSE= gnu-gpl-v3
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_TOOLS+= gmake gs:run makeinfo
USE_TOOLS+= gmake gs:run makeinfo perl:run
TEXINFO_REQD= 4.2
INFO_FILES= yes
@ -33,6 +32,23 @@ XAW_TYPE= 3d
CONFIGURE_ARGS+= --enable-setenv-code
.endif
.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --enable-SIGCHLD-fallback
.endif
SUBST_CLASSES+= optlong1
SUBST_STAGE.optlong1= post-extract
SUBST_FILES.optlong1= src/gv_message.h
SUBST_SED.optlong1= -e 's/\[-\]-/--/'
SUBST_CLASSES+= optlong2
SUBST_STAGE.optlong2= post-extract
SUBST_FILES.optlong2= doc/gv.1
SUBST_SED.optlong2= -e 's/\[\\-\]\\-/\\-\\-/'
REPLACE_PERL+= src/gv-update-userconfig.in
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,11 +1,15 @@
@comment $NetBSD: PLIST,v 1.7 2009/06/14 18:11:56 joerg Exp $
@comment $NetBSD: PLIST,v 1.8 2010/07/24 08:22:02 obache Exp $
bin/gv
bin/gv-update-userconfig
info/gv.info
lib/gv/GV
lib/gv/gv_class.ad
lib/gv/gv_copyright.dat
lib/gv/gv_spartan.dat
lib/gv/gv_system.ad
lib/gv/gv_user.ad
lib/gv/gv_user_res.dat
man/man1/gv-update-userconfig.1
man/man1/gv.1
share/gv/GV
share/gv/gv_class.ad
share/gv/gv_copyright.dat
share/gv/gv_spartan.dat
share/gv/gv_system.ad
share/gv/gv_user.ad
share/gv/gv_user_res.dat
share/gv/gv_widgetless.dat
@pkgdir share/gv/safe-gs-workdir

View file

@ -1,10 +1,9 @@
$NetBSD: distinfo,v 1.17 2010/03/11 12:46:42 drochner Exp $
$NetBSD: distinfo,v 1.18 2010/07/24 08:22:02 obache Exp $
SHA1 (gv-3.6.3.tar.gz) = 1eb09482a1b77f6db957840ba691b42947aeb364
RMD160 (gv-3.6.3.tar.gz) = 3c0fb1c252b305f25522abc8528dfe9489029ad3
Size (gv-3.6.3.tar.gz) = 480724 bytes
SHA1 (patch-aa) = 4a13819735017694fad8a44e3b50a90b763c4a46
SHA1 (patch-ab) = 63d103a821074ab36a6cf946bbf1252d4d356987
SHA1 (patch-ad) = 8803493dd643554067677edec5c4efccfbfc2606
SHA1 (patch-ae) = 2d1057004a1bd1b29af491c3163d83dd31bba7c2
SHA1 (patch-af) = 618164139ea6dcc81996dff659d01ede6245ff43
SHA1 (gv-3.7.1.tar.gz) = 05fcf76f29de77e67379bae7e9ca1c8a26bbf6e1
RMD160 (gv-3.7.1.tar.gz) = ddeef03ff83442379cd02d8ac4491a43c57eeddc
Size (gv-3.7.1.tar.gz) = 747166 bytes
SHA1 (patch-aa) = de9dff87b4a064dda2ac2cd949cf78c8c2349e2e
SHA1 (patch-ae) = 8ed82e599e729d01b05b0053eb027ab3cb9ca773
SHA1 (patch-af) = da0bf3a7f4bdce391531274d4c51b9ec6d35c07e
SHA1 (patch-aj) = 9bba6286d8ee4e6c197ca2a07aae8538471df4f3

View file

@ -1,8 +1,8 @@
$NetBSD: patch-aa,v 1.14 2006/10/23 12:29:56 tron Exp $
$NetBSD: patch-aa,v 1.15 2010/07/24 08:22:02 obache Exp $
--- src/main.c.orig 2006-09-14 19:56:08.000000000 +0100
+++ src/main.c 2006-10-23 12:50:43.000000000 +0100
@@ -408,7 +408,7 @@
--- src/main.c.orig 2010-06-04 17:34:53.000000000 +0000
+++ src/main.c
@@ -467,7 +467,7 @@ int main(argc, argv)
}
/*### Manage GNU command line arguments ########################*/

View file

@ -1,88 +0,0 @@
$NetBSD: patch-ab,v 1.8 2006/10/23 12:29:56 tron Exp $
--- src/gv_message.h.orig 2005-03-31 14:02:39.000000000 +0100
+++ src/gv_message.h 2006-10-23 13:16:40.000000000 +0100
@@ -29,48 +29,48 @@
char *message_usage = "\
Usage: gv [OPTION]... [FILE]\n\
PostScript and PDF viewer.\n\
- [-]-monochrome display document using only black and white\n\
- [-]-grayscale display document without colors\n\
- [-]-color display document as usual\n\
- [-]-safer start ghostscript in safe mode\n\
- [-]-nosafer do not start ghostscript in safe mode\n\
- [-]-quiet start ghostscript with the -dQUIET option\n\
- [-]-noquiet do not start ghostscript with the -dQUIET option\n\
- [-]-arguments=ARGS start ghostscript with additional options as specified\n\
+ --monochrome display document using only black and white\n\
+ --grayscale display document without colors\n\
+ --color display document as usual\n\
+ --safer start ghostscript in safe mode\n\
+ --nosafer do not start ghostscript in safe mode\n\
+ --quiet start ghostscript with the -dQUIET option\n\
+ --noquiet do not start ghostscript with the -dQUIET option\n\
+ --arguments=ARGS start ghostscript with additional options as specified\n\
by the string ARGS\n\
- [-]-page=LABEL display the page with label LABEL first\n\
- [-]-center the page should be centered automatically\n\
- [-]-nocenter the page should not be centered automatically\n\
- [-]-media=MEDIA selects the paper size to be used\n\
- [-]-orientation=ORIENTATION sets the orientation of the page\n\
- [-]-scale=N selects the scale N\n\
- [-]-scalebase=N selects the scale base N\n\
- [-]-swap interchange the meaning of the orientations landscape\n\
+ --page=LABEL display the page with label LABEL first\n\
+ --center the page should be centered automatically\n\
+ --nocenter the page should not be centered automatically\n\
+ --media=MEDIA selects the paper size to be used\n\
+ --orientation=ORIENTATION sets the orientation of the page\n\
+ --scale=N selects the scale N\n\
+ --scalebase=N selects the scale base N\n\
+ --swap interchange the meaning of the orientations landscape\n\
and seascape\n\
- [-]-noswap do not interchange the meaning of the orientation\n\
+ --noswap do not interchange the meaning of the orientation\n\
landscape and seascape\n\
- [-]-antialias use antialiasing\n\
- [-]-noantialias do not use antialiasing\n\
- [-]-dsc dsc comments are respected\n\
- [-]-nodsc dsc comments are not respected\n\
- [-]-eof ignore the postscript EOF comment while scanning\n\
+ --antialias use antialiasing\n\
+ --noantialias do not use antialiasing\n\
+ --dsc dsc comments are respected\n\
+ --nodsc dsc comments are not respected\n\
+ --eof ignore the postscript EOF comment while scanning\n\
documents\n\
- [-]-noeof do not ignore the postscript EOF comment while\n\
+ --noeof do not ignore the postscript EOF comment while\n\
scanning documents\n\
- [-]-pixmap use backing pixmap\n\
- [-]-nopixmap do not use backing pixmap\n\
- [-]-watch watch the document file for changes\n\
- [-]-nowatch do not watch the document file for changes\n\
- [-]-help print a help message and exit\n\
- [-]-usage print a usage message and exit\n\
- [-]-resize fit the size of the window to the size of the page\n\
- [-]-noresize do not fit the size of the window to the size of the page\n\
+ --pixmap use backing pixmap\n\
+ --nopixmap do not use backing pixmap\n\
+ --watch watch the document file for changes\n\
+ --nowatch do not watch the document file for changes\n\
+ --help print a help message and exit\n\
+ --usage print a usage message and exit\n\
+ --resize fit the size of the window to the size of the page\n\
+ --noresize do not fit the size of the window to the size of the page\n\
-geometry [<width>][x<height>][{+-}<xoffset>{+-}<yoffset>]\n\
- [-]-ad=FILE read and use additional resources from FILE\n\
- [-]-style=FILE read and use additional resources from FILE. These resources\n\
+ --ad=FILE read and use additional resources from FILE\n\
+ --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\
- [-]-version show gv version and exit\n\
+ --spartan shortcut for --style=gv_spartan.dat\n\
+ --version show gv version and exit\n\
";
char *message_help = "\

View file

@ -1,23 +0,0 @@
$NetBSD: patch-ad,v 1.6 2010/03/11 12:46:42 drochner Exp $
--- src/file.c.orig 2005-08-10 11:33:21.000000000 +0000
+++ src/file.c
@@ -199,7 +199,7 @@ file_getTmpFilename(baseDirectory,baseFi
#ifdef VMS
sprintf(tempFilename,"%sgv_%lx_%x_%s_%s.tmp",tmpDirBuf,time(NULL),i,tmpName,tmpExt);
#else
- sprintf(tempFilename,"%sgv_%lx_%x_%s.%s.tmp",tmpDirBuf,time(NULL),i,tmpName,tmpExt);
+ sprintf(tempFilename,"%sgv_%llx_%x_%s.%s.tmp",tmpDirBuf,(long long)time(NULL),i,tmpName,tmpExt);
#endif
file_translateTildeInPath(tempFilename);
no_such_file = stat(tempFilename,&s);
@@ -265,6 +265,9 @@ int file_fileIsDir(fn)
/* file_fileIsNotUseful */
/*############################################################*/
+#ifndef ENODATA
+#define ENODATA ENOMSG
+#endif
int
file_fileIsNotUseful(fn)
char *fn;

View file

@ -1,8 +1,8 @@
$NetBSD: patch-ae,v 1.9 2006/10/23 12:29:56 tron Exp $
$NetBSD: patch-ae,v 1.10 2010/07/24 08:22:02 obache Exp $
--- src/Ghostview.c.orig 2006-07-04 21:09:52.000000000 +0200
--- src/Ghostview.c.orig 2010-06-03 16:36:25.000000000 +0000
+++ src/Ghostview.c
@@ -83,8 +83,6 @@ typedef char *XPointer;
@@ -87,8 +87,6 @@ typedef char *XPointer;
#endif
#include <errno.h>

View file

@ -1,6 +1,6 @@
$NetBSD: patch-af,v 1.6 2006/10/23 12:29:56 tron Exp $
$NetBSD: patch-af,v 1.7 2010/07/24 08:22:02 obache Exp $
--- src/error.h.orig 2005-08-10 13:33:21.000000000 +0200
--- src/error.h.orig 2010-05-29 07:37:20.000000000 +0000
+++ src/error.h
@@ -36,8 +36,6 @@

15
print/gv/patches/patch-aj Normal file
View file

@ -0,0 +1,15 @@
$NetBSD: patch-aj,v 1.1 2010/07/24 08:22:02 obache Exp $
Avoid unwanted regeneration.
--- src/Makefile.in.orig 2010-06-08 17:59:16.000000000 +0000
+++ src/Makefile.in
@@ -1185,7 +1185,7 @@ gv_class.h : gv_class.ad
@echo "creating gv_class.h"
@sh $(srcdir)/ad2c gv_class.ad > gv_class.h
-gv-i18n.h: $(srcdir)/nls $(srcdir)/nls/*
+gv-i18n.h: $(srcdir)/nls/*
perl $(srcdir)/gv-i18n.pl $(srcdir) > gv-i18n.h
gv_class.ad : $(srcdir)/gv_font_res.dat $(srcdir)/gv_font_res-I18N_mb.dat $(srcdir)/gv_layout_res.dat gv_make_res.dat $(srcdir)/gv_misc_res.dat $(srcdir)/gv_user_res.dat gv_intern_res_unix.dat