Mon Jan 5 16:08:20 2009 UTC ()
Update to 0.9, take maintainership.  Changes (from NEWS):

  xzgv now uses GTK 2, with gdk-pixbuf as the image rendering back-end.
  imlib1 is no longer supported. Gamma, brightness and contrast are not
  currently supported.

I've also included a fix for the "missing preview icons" problem (patch-ad).

OK by wiz@.


(shattered)
diff -r1.36 -r1.37 pkgsrc/graphics/xzgv/Makefile
diff -r1.9 -r1.10 pkgsrc/graphics/xzgv/distinfo
diff -r1.3 -r1.4 pkgsrc/graphics/xzgv/patches/patch-aa
diff -r1.4 -r0 pkgsrc/graphics/xzgv/patches/patch-ab
diff -r1.3 -r0 pkgsrc/graphics/xzgv/patches/patch-ac
diff -r0 -r1.1 pkgsrc/graphics/xzgv/patches/patch-ad

cvs diff -r1.36 -r1.37 pkgsrc/graphics/xzgv/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/xzgv/Makefile 2008/03/04 15:39:11 1.36
+++ pkgsrc/graphics/xzgv/Makefile 2009/01/05 16:08:20 1.37
@@ -1,35 +1,30 @@ @@ -1,35 +1,30 @@
1# $NetBSD: Makefile,v 1.36 2008/03/04 15:39:11 jlam Exp $ 1# $NetBSD: Makefile,v 1.37 2009/01/05 16:08:20 shattered Exp $
 2#
2 3
3DISTNAME= xzgv-0.8 4DISTNAME= xzgv-0.9
4PKGNAME= xzgv-0.8.0.1 
5PKGREVISION= 3 
6CATEGORIES= graphics 5CATEGORIES= graphics
7MASTER_SITES= ftp://ftp.ibiblio.org/pub/Linux/apps/graphics/viewers/X/ 6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xzgv/}
8 7
9PATCHFILES= xzgv-0.8-integer-overflow-fix.diff 8MAINTAINER= shattered@NetBSD.org
10PATCH_SITES= http://rus.members.beeb.net/ 9HOMEPAGE= http://sourceforge.net/projects/xzgv
11PATCH_DIST_STRIP= -p1 
12 
13MAINTAINER= pkgsrc-users@NetBSD.org 
14HOMEPAGE= http://rus.members.beeb.net/xzgv.html 
15COMMENT= Image viewer 10COMMENT= Image viewer
16 11
17PKG_DESTDIR_SUPPORT= user-destdir 12PKG_DESTDIR_SUPPORT= user-destdir
18 13
19USE_X11BASE= yes 14USE_X11BASE= yes
20USE_TOOLS+= gmake makeinfo 15USE_TOOLS+= gmake makeinfo
21INFO_FILES= # PLIST 16INFO_FILES= yes
22INSTALLATION_DIRS= bin ${PKGINFODIR} ${PKGMANDIR}/man1 17INSTALLATION_DIRS= bin ${PKGINFODIR} ${PKGMANDIR}/man1
23 18
24do-install: 19do-install:
25 ${INSTALL_PROGRAM} ${WRKSRC}/src/xzgv ${DESTDIR}${PREFIX}/bin 20 ${INSTALL_PROGRAM} ${WRKSRC}/src/xzgv ${DESTDIR}${PREFIX}/bin
26 ${INSTALL_MAN} ${WRKSRC}/doc/xzgv.1 \ 21 ${INSTALL_MAN} ${WRKSRC}/doc/xzgv.1 \
27 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 22 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
28 @(cd ${WRKSRC}/doc && ${MAKEINFO} xzgv.texi) 23 @(cd ${WRKSRC}/doc && ${MAKEINFO} xzgv.texi)
29 cd ${WRKSRC}/doc; for f in xzgv xzgv-[0-9]*; do \ 24 cd ${WRKSRC}/doc; for f in xzgv xzgv-[0-9]*; do \
30 ${TEST} ! -f "$$f" || \ 25 ${TEST} ! -f "$$f" || \
31 ${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\ 26 ${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\
32 done 27 done
33 28
34.include "../../graphics/imlib/buildlink3.mk" 29.include "../../x11/gtk2/buildlink3.mk"
35.include "../../mk/bsd.pkg.mk" 30.include "../../mk/bsd.pkg.mk"

cvs diff -r1.9 -r1.10 pkgsrc/graphics/xzgv/distinfo (expand / switch to unified diff)

--- pkgsrc/graphics/xzgv/distinfo 2006/09/23 14:59:34 1.9
+++ pkgsrc/graphics/xzgv/distinfo 2009/01/05 16:08:20 1.10
@@ -1,11 +1,7 @@ @@ -1,11 +1,7 @@
1$NetBSD: distinfo,v 1.9 2006/09/23 14:59:34 adrianp Exp $ 1$NetBSD: distinfo,v 1.10 2009/01/05 16:08:20 shattered Exp $
2 2
3SHA1 (xzgv-0.8-integer-overflow-fix.diff) = b18dfdaafe295e2c42764f59784b6b6201b489ea 3SHA1 (xzgv-0.9.tar.gz) = 5d8115c87be3836d9ed35dba777cd1dc48541715
4RMD160 (xzgv-0.8-integer-overflow-fix.diff) = bd75c87cf6f20e4fa2757afe472111e2253cb640 4RMD160 (xzgv-0.9.tar.gz) = 7c3284eac5a0a368db1be2ed87f882e26d39fab7
5Size (xzgv-0.8-integer-overflow-fix.diff) = 6374 bytes 5Size (xzgv-0.9.tar.gz) = 235367 bytes
6SHA1 (xzgv-0.8.tar.gz) = 1aa21336e2562849e6f5f984cbbfcb745489df3b 6SHA1 (patch-aa) = fa502e0fc4fc94cfc88c4aa41505ac7563d982a6
7RMD160 (xzgv-0.8.tar.gz) = e36466a73c27616610fd032b3a92898d95a55a17 7SHA1 (patch-ad) = 378e0c2e19064c2c276c6e0a3e89bdcbcc2c96c5
8Size (xzgv-0.8.tar.gz) = 302801 bytes 
9SHA1 (patch-aa) = 7a0d6e6b24d788fb9cf45967e4c3b434c621def3 
10SHA1 (patch-ab) = cf4c746e3c4b9ac3a5968211a8f2c0b69d43bc99 
11SHA1 (patch-ac) = 3a67b625b6eabd0c6e2399fb0a59fde4460d3893 

cvs diff -r1.3 -r1.4 pkgsrc/graphics/xzgv/patches/patch-aa (expand / switch to unified diff)

--- pkgsrc/graphics/xzgv/patches/patch-aa 2001/08/23 15:56:41 1.3
+++ pkgsrc/graphics/xzgv/patches/patch-aa 2009/01/05 16:08:20 1.4
@@ -1,33 +1,24 @@ @@ -1,33 +1,24 @@
1$NetBSD: patch-aa,v 1.3 2001/08/23 15:56:41 jlam Exp $ 1$NetBSD: patch-aa,v 1.4 2009/01/05 16:08:20 shattered Exp $
2 2
3--- config.mk.orig Sun Jan 7 23:57:44 2001 3--- config.mk.orig 2007-08-12 10:14:42.000000000 +0000
4+++ config.mk 4+++ config.mk
5@@ -6,8 +6,8 @@ 5@@ -6,8 +6,8 @@
6 # Set the C compiler to use, and options for it. 6 # Set the C compiler to use, and options for it.
7 # This is likely to be what you'll want for most systems: 7 # This is likely to be what you'll want for most systems:
8 # 8 #
9-CC=gcc 9-CC=gcc
10-CFLAGS=-O2 -Wall 10-CFLAGS=-O2 -Wall
11+#CC=gcc 11+#CC=gcc
12+#CFLAGS=-O2 -Wall 12+#CFLAGS=-O2 -Wall
13  13
14 # Set the awk interpreter to use for a script used while compiling. 14 # Set the awk interpreter to use for a script used while compiling.
15 # (This should be a `new' awk, such as gawk or mawk.) 15 # (This should be a `new' awk, such as gawk or mawk.)
16@@ -27,7 +27,7 @@ 16@@ -24,7 +24,7 @@ AWK=awk
17 # On non-x86-based machines (e.g. Alpha, Sparc, PPC), you should 
18 # comment it out. 
19 # 
20-CFLAGS+=-DINTERP_MMX 
21+#CFLAGS+=-DINTERP_MMX 
22  
23 # Set rendering backend to use. Currently only Imlib 1.x is properly 
24 # supported, so leave this alone. :-) 
25@@ -45,7 +45,7 @@ 
26 # MANDIR to directory for man page. 17 # MANDIR to directory for man page.
27 # Usually it will be simpler to just set PREFIX. 18 # Usually it will be simpler to just set PREFIX.
28 # 19 #
29-PREFIX=/usr/local 20-PREFIX=/usr/local
30+#PREFIX=/usr/local 21+#PREFIX=/usr/local
31  22 BINDIR=$(PREFIX)/bin
32 # In theory it would be nice to put the info file and man page under 23 INFODIR=$(PREFIX)/share/info
33 # /usr/local/share. However, it's not clear if this is widely 24 MANDIR=$(PREFIX)/share/man/man1

File Deleted: pkgsrc/graphics/xzgv/patches/Attic/patch-ab

File Deleted: pkgsrc/graphics/xzgv/patches/Attic/patch-ac

File Added: pkgsrc/graphics/xzgv/patches/patch-ad
$NetBSD: patch-ad,v 1.1 2009/01/05 16:08:20 shattered Exp $

Proposed fix for "missing preview icons" problem, from
http://sourceforge.net/tracker/index.php?func=detail&aid=1814712&group_id=203093&atid=984206

--- src/main.c.orig	2007-09-09 00:36:21.000000000 +0000
+++ src/main.c
@@ -200,7 +200,7 @@ int orient_state_flip[8]   ={2,3,0,1,6,7
 /* required prototypes */
 void render_pixmap(int reset_pos);
 void cb_nextprev_tagged_image(int next,int view);
-void idle_xvpic_load(int *entryp);
+gint idle_xvpic_load(int *entryp);
 gint pic_win_resized(GtkWidget *widget,GdkEventConfigure *event);
 void cb_scaling_double(void);
 void cb_xscaling_double(void);
@@ -2624,7 +2624,7 @@ else
 }
 
 
-void idle_xvpic_load(int *entryp)
+gint idle_xvpic_load(int *entryp)
 {
 static char buf[1024];
 struct clist_data_tag *datptr;
@@ -2748,6 +2748,7 @@ for(f=0;f<IDLE_XVPIC_NUM_PER_CALL;f++)
     *entryp=-1;
     }
   }
+  return TRUE;
 }