Commit 355f3b77 authored by Bernhard Link's avatar Bernhard Link

Import gv 1:3.6.5-2

parent e120fdb6
# see git-dpm(1) from git-dpm package
e120fdb6e22ad043a1c2a7a13f7a5907b93502ed
e120fdb6e22ad043a1c2a7a13f7a5907b93502ed
c56b9ad0d2639a8e9ebb62577b1736ee5a367705
c56b9ad0d2639a8e9ebb62577b1736ee5a367705
gv_3.6.5.orig.tar.gz
90d0bd5b8243108925d46ddf478c7499b475df3a
537336
This diff is collapsed.
Source: gv
Section: text
Priority: optional
Maintainer: Bernhard R. Link <brlink@debian.org>
Build-Depends: debhelper (>= 5), xaw3dg-dev, libxt-dev, libxmu-dev, libx11-dev
Standards-Version: 3.8.0
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
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
Packaged-By:
This package was put together by Christian Kesselheim <ckesselh@debian.org>
It was later maintained by Martin A. Godisch <godisch@debian.org>,
then by Christoph Berg <myon@debian.org>.
The current Debian maintainer is Bernhard R. Link <brlink@debian.org>.
Upstream-Maintainer: Markus Steinborn <msteinbo@uni-paderborn.de>
Original-Source-Location: ftp://ftp.gnu.org/gnu/gv/
Original-Source-Location: ftp://alpha.gnu.org/gnu/gv/
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 3 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, <http://www.gnu.org/licenses/>.
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in /usr/share/common-licenses/GPL-3.
Further Contributors include:
- Karl Berry
- John Bowman
- Brett W. McCoy
- Hans Fredrik Nordhaug
- Peter Breitenlohner
- Markus Steinborn
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 is:
* 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
#! /usr/bin/perl
# 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 3 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 GNU gv; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#
# Author: Markus Steinborn (see CONTRIBUTORS for the e-mail address)
# This program updates ~/.gv by removing all incompatible entries.
@res = ();
%res = ();
open ($file, "<", "$ENV{HOME}/.gv") or die "Cannot open ~/.gv for reading.\n";
while (<$file>)
{
chomp;
$read = $_;
$line = $read;
while ( $read =~ /\\$/ )
{
$read = <$file>;
chomp $read;
$line .= "\n$read";
}
push (@res, $line);
if ($line =~ /^([^:]+):/ )
{
$res{$1} = $line;
}
}
close $file;
$VER = "gv 3.5.8";
$VER = $res{"GV.version"} if defined $res{"GV.version"};
%remove = ();
sub compare
{
my $a1 = $_[0];
my $a2 = $_[1];
my $b1 = substr($a1,3);
my $b2 = substr($a2,3);
my @c1 = split(/\./, $b1);
my @c2 = split(/\./, $b2);
for (my $i = 0; $i < @c1; $i++)
{
return 1 if $c1[$i] < $c2[$i];
return 0 if $c1[$i] > $c2[$i];
}
return 0;
print "$b1\n$b2\n";
}
$remove{"GV.version"} = 1;
$remove{"GV.scales"} = 1 if compare($VER, "gv 3.6.4.90");
$newfile = "";
for $line (@res)
{
$line =~ /^([^:]+):/ ;
$name = $1;
$newfile .= "$line\n" unless defined $remove{$name};
print "Removing resource $name\n" if defined $remove{$name} && $name ne "GV.version";
}
$newfile .= "GV.version:\t\tgv 3.6.5\n";
open ($file, ">", "$ENV{HOME}/.gv") or die "Cannot open ~/.gv for writing.\n";
print $file $newfile;
close $file;
/* 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.. ",
" .......... ",
" ....... ",
" ",
" ",
" ",
" ",
" ",
" ",
" "};
debian/gv_icon.xpm usr/share/pixmaps
debian/mini-gv.xpm usr/share/pixmaps
?package(gv):needs="x11" section="Applications/Viewers" title="GV" \
icon="/usr/share/pixmaps/mini-gv.xpm" \
command="/usr/bin/gv" hints="PostScript,Documents"
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"
/* 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. ",
" .... ... .. "};
Index: gv-3.6.4.90/src/Makefile.in
===================================================================
--- gv-3.6.4.90.orig/src/Makefile.in 2008-06-19 18:36:37.000000000 +0200
+++ gv-3.6.4.90/src/Makefile.in 2008-06-20 11:47:20.000000000 +0200
@@ -753,7 +753,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
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.
Index: src/resource.c
===================================================================
RCS file: /sources/gv/gv/src/resource.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- a/src/resource.c 30 Jun 2008 09:52:23 -0000 1.23
+++ b/src/resource.c 19 Jul 2008 20:52:50 -0000 1.24
@@ -553,6 +553,8 @@
if (resource_ad_file) fprintf(stderr," %s\n",resource_ad_file);
fprintf(stderr,"belongs to an older version of gv and can not be used.\n");
fprintf(stderr,"Please remove or update the outdated file.\n");
+ if (resource_user_file) fprintf(stderr,"Quite probable your ~/.gv is too old.\n");
+ if (resource_user_file) fprintf(stderr,"Running gv-update-userconfig should help\nby removing all incomatible resources.\n");
r=0;
}
ENDMESSAGE(resource_checkResources)
Index: gv-3.6.4.90/src/gv_message.h
===================================================================
--- gv-3.6.4.90.orig/src/gv_message.h 2008-06-19 18:36:08.000000000 +0200
+++ gv-3.6.4.90/src/gv_message.h 2008-06-20 19:03:29.000000000 +0200
@@ -46,7 +46,7 @@
[-]-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\
+ [-]-scale=N|f.f selects the scale N, or arbitrary scale f.f\n\
[-]-scalebase=N selects the scale base N\n\
[-]-swap interchange the meaning of the orientations landscape\n\
and seascape\n\
Index: gv-3.6.4.90/doc/gv.1
===================================================================
--- gv-3.6.4.90.orig/doc/gv.1 2008-06-21 01:20:52.000000000 +0200
+++ gv-3.6.4.90/doc/gv.1 2008-06-21 01:21:21.000000000 +0200
@@ -57,8 +57,8 @@
[\-]\-orientation=ORIENTATION
sets the orientation of the page
.TP
-[\-]\-scale=N
-selects the scale N
+[\-]\-scale=N|f.f
+selects the scale N or set to arbitrary scale f.f
.TP
[\-]\-scalebase=N
selects the scale base N
01_debian_config
scaledoc.diff
resource-warning.diff
#!/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
# dpkg-buildpackage generates , policy suggests spaces, oh well...
export DEB_BUILD_OPTIONS
BUILDOPTS:=$(shell echo "$$DEB_BUILD_OPTIONS" | sed 's/,/ /g')
CFLAGS = -Wall -g
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifneq (,$(filter debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -DMESSAGES
endif
ifneq (,$(filter parallel=%,$(BUILDOPTS)))
PARFLAGS = -j$(patsubst parallel=%,%,$(filter parallel=%,$(BUILDOPTS)))
endif
clean:
dh_testdir
# if 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
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 ./
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 \
|| ( echo configure failed with $$? ; cat config.log ; exit 1 )
build-arch: build-arch-stamp
build-arch-stamp: config.status
dh_testdir
touch src/versionp.h src/gv_message.h ; sleep 3 ; touch doc/gv.1
$(MAKE) $(PARFLAGS) appdefaultsdir=/etc/X11/app-defaults \
LIBS="-lXaw3d -lXmu -lXt -lX11 -lm"
touch $@
binary-arch: build-arch-stamp
dh_testdir
dh_testroot
dh_clean
$(MAKE) $(PARFLAGS) install appdefaultsdir=/etc/X11/app-defaults \
DESTDIR=${CURDIR}/debian/gv
# can be dropped in next upstream release:
install debian/gv-update-userconfig debian/gv/usr/bin/
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
# see uscan(1) for format
version=3
opts=passive ftp://ftp.gnu.org/gnu/gv/gv-(.*)\.tar\.gz
opts=passive ftp://alpha.gnu.org/gnu/gv/gv-(.*)\.tar\.gz
package ready and patched for .diff.gz creation
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment