Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Mar 2008 13:14:57 +0900 (JST)
From:      Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        turutani@scphys.kyoto-u.ac.jp
Subject:   ports/121456: update graphics/xnview
Message-ID:  <200803070414.m274EvZ5004694@polymer3.scphys.kyoto-u.ac.jp>
Resent-Message-ID: <200803070420.m274K1Dv061359@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121456
>Category:       ports
>Synopsis:       update graphics/xnview
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 07 04:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 6.3-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD polymer3.scphys.kyoto-u.ac.jp 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #11: Wed Jan 16 16:30:07 JST 2008 turutani@polymer3.scphys.kyoto-u.ac.jp:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386


	
>Description:
	update nconvert in graphics/xnview.
	
>How-To-Repeat:
	
>Fix:
	Here is a patch to current skelton:

--- graphics/xnview/Makefile.orig	2007-10-05 04:33:28.000000000 +0900
+++ graphics/xnview/Makefile	2008-03-07 13:07:54.000000000 +0900
@@ -7,10 +7,10 @@
 
 PORTNAME=	xnview
 PORTVERSION=	1.70
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.xnview-download.de/download/
-DISTNAME=	XnView-x86-unknown-FreeBSD5.x-static
-EXTRACT_SUFX=	.tgz
+DISTFILES=	XnView-x86-unknown-FreeBSD5.x-static.tgz
 
 MAINTAINER=	petr@petrovich.kiev.ua
 COMMENT=	An easy graphics viewer / converter
@@ -29,19 +29,34 @@
 
 .if ${OSVERSION} >= 600000
     LIB_DEPENDS+=       c.5:${PORTSDIR}/misc/compat5x
+    DISTFILES+=		NConvert-x86-unknown-FreeBSD6.x.tgz
+    WRKSRC_NC=		${WRKDIR}/NConvert
+.endif
+
+.if ${OSVERSION} >= 700000
+    LIB_DEPENDS+=       c.6:${PORTSDIR}/misc/compat6x
 .endif
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/xnview ${PREFIX}/bin/xnview
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/nview ${PREFIX}/bin/nv
+.if ${OSVERSION} >= 600000
+	${INSTALL_PROGRAM} ${WRKSRC_NC}/nconvert ${PREFIX}/bin/nconvert
+.else
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/nconvert ${PREFIX}/bin/nconvert
+.endif
 	${INSTALL_DATA} ${WRKSRC}/app-defaults/XnView.ad ${PREFIX}/lib/X11/app-defaults/XnView
 	cd ${WRKSRC}/man && ${INSTALL_MAN} xnview.1 nview.1 ${PREFIX}/man/man1
 
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
+.if ${OSVERSION} >= 600000
+	cd ${WRKSRC_NC} && \
+		${INSTALL_DATA} Formats.txt ReadMe.txt Usage.txt WhatsNew.txt ${DOCSDIR}
+.else
 	cd ${WRKSRC} && \
 		${INSTALL_DATA} Formats.txt ReadMe.txt Usage.txt WhatsNew.txt ${DOCSDIR}
 .endif
+.endif
 
 .include <bsd.port.post.mk>
--- graphics/xnview/distinfo.orig	2006-01-30 19:31:00.000000000 +0900
+++ graphics/xnview/distinfo	2008-03-07 12:26:48.000000000 +0900
@@ -4,3 +4,6 @@
 MD5 (XnView-x86-unknown-FreeBSD5.x-static.tgz) = a6cbb30e84970f7ce2331f0840663358
 SHA256 (XnView-x86-unknown-FreeBSD5.x-static.tgz) = 88a8d07802e156ff5d93394e8caecd7a6937a81f396b145ef1e4455ed3296ceb
 SIZE (XnView-x86-unknown-FreeBSD5.x-static.tgz) = 2630725
+MD5 (NConvert-x86-unknown-FreeBSD6.x.tgz) = 691eb763a03130d7ff821970659d9ce4
+SHA256 (NConvert-x86-unknown-FreeBSD6.x.tgz) = 72ae2fbcc4aaed2d74fd4eb883ee42264d55db336bc531cdee8766c9b5baa6d2
+SIZE (NConvert-x86-unknown-FreeBSD6.x.tgz) = 735994
	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803070414.m274EvZ5004694>