Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 May 2011 04:33:01 -0500
From:      Zhihao Yuan <lichray@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/156859: graphics/mupdf: updates to 0.8.165
Message-ID:  <4dc511d4.c400e70a.6d45.6d8a@mx.google.com>
Resent-Message-ID: <201105070940.p479e8QO015757@freefall.freebsd.org>

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

>Number:         156859
>Category:       ports
>Synopsis:       graphics/mupdf: updates to 0.8.165
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 07 09:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Zhihao Yuan
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
Northern Illinois University
>Environment:
System: FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Mar 14 02:51:28 CDT 2011 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64


	
>Description:
	
	mupdf has been updated to 0.8.165. In this version,
	1. mupdf supports XPS documents;
	2. A new tool, xpsdraw was included.

	Check http://mupdf.com/news for details.
>How-To-Repeat:
	
>Fix:

	
	1. Renames the xpsdraw to mu_xpsdraw, like other mupdf command-line tools;
	2. Synchronizes the post-patch with the new updtream Makefile;
	3. portlint-friendly port (meaningless...).

--- mupdf-0.8.165,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/mupdf.orig/Makefile /usr/ports/graphics/mupdf/Makefile
--- /usr/ports/graphics/mupdf.orig/Makefile	2011-04-08 10:00:07.000000000 -0500
+++ /usr/ports/graphics/mupdf/Makefile	2011-05-07 04:13:41.861070025 -0500
@@ -5,13 +5,12 @@
 # $FreeBSD: ports/graphics/mupdf/Makefile,v 1.12 2011/04/08 15:00:07 bapt Exp $
 
 PORTNAME=	mupdf
-PORTVERSION=	0.8.15
+PORTVERSION=	0.8.165
 PORTEPOCH=	1
 CATEGORIES=	graphics
 MASTER_SITES=	GOOGLE_CODE \
 		http://www.mupdf.com/download/
-
-DISTFILES=	${PORTNAME}-${DISTVERSION}-source.tar.gz
+EXTRACT_SUFX=	-source.tar.gz
 
 MAINTAINER=	lichray@gmail.com
 COMMENT=	Lightweight PDF viewer and toolkit
@@ -22,7 +21,7 @@
 		openjpeg.2:${PORTSDIR}/graphics/openjpeg
 
 USE_GMAKE=	yes
-MAKE_ARGS+=	build=release prefix=${PREFIX} verbose=1 MANDIR=${PREFIX}/man/man1 APPS_MAN="${MAN1:S@^@apps/man/@}" LIBDIR=${PREFIX}/lib
+MAKE_ARGS+=	build=native prefix=${PREFIX} verbose=1 mandir=${PREFIX}/man
 USE_XORG=	x11 xext
 USE_GNOME=	pkgconfig
 MAN1=		mupdf.1 mu_pdfclean.1 mu_pdfdraw.1 mu_pdfshow.1
@@ -33,17 +32,22 @@
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 post-patch:	.SILENT
-	${REINPLACE_CMD} -e 's#\(PDF.*_EXE=.*DIR./\)#\1mu_#g' \
+	${REINPLACE_CMD} \
+		-e 's#\(PDF_APPS :=.*/\)#\1mu_#' \
+		-e 's#\(XPS_APPS :=.*/\)#\1mu_#' \
+		-e 's#\(MUPDF) :.*/\)#\1mu_#' \
+		-e 's#\(OUT)/\).*: apps/#\1mu_%.o : apps/#' \
 		-e '/install:/,/^$$/ { /-d/d; }' \
-		-e '/install.*bin$$/s/install/$$(BSD_INSTALL_PROGRAM)/' \
-		-e '/install.*lib$$/s/install/$$(BSD_INSTALL_PROGRAM)/' \
-		-e '/install.*include$$/s/install/$$(BSD_INSTALL_DATA)/' \
+		-e '/install.*bindir)$$/s/install/$$(BSD_INSTALL_PROGRAM)/' \
+		-e '/install.*libdir)$$/s/install/$$(BSD_INSTALL_LIB)/' \
+		-e '/install.*incdir)$$/s/install/$$(BSD_INSTALL_DATA)/' \
+		-e '/install.*man1$$/s/install/$$(BSD_INSTALL_MAN)/' \
 		${WRKSRC}/Makefile
 	${REINPLACE_CMD} -e 's/-O2//' \
 		-e 's|/usr/local|${LOCALBASE}|' \
 		${WRKSRC}/Makerules
 
 pre-install:	.SILENT
-	find ${WRKSRC} -name pdf\*.1 -exec sh -c 'mv {} $$(dirname {})/mu_$$(basename {})' \;
+	${FIND} ${WRKSRC} -name pdf\*.1 -exec ${SH} -c 'mv {} $$(dirname {})/mu_$$(basename {})' \;
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/graphics/mupdf.orig/distinfo /usr/ports/graphics/mupdf/distinfo
--- /usr/ports/graphics/mupdf.orig/distinfo	2011-04-08 06:47:42.000000000 -0500
+++ /usr/ports/graphics/mupdf/distinfo	2011-05-07 02:51:26.615205402 -0500
@@ -1,2 +1,2 @@
-SHA256 (mupdf-0.8.15-source.tar.gz) = c9e7acc86c208a854e460cd07c1132039a95df0c21aa5052c4481fb540b0e03e
-SIZE (mupdf-0.8.15-source.tar.gz) = 3837265
+SHA256 (mupdf-0.8.165-source.tar.gz) = cfa00870ef857def5de1a8d20e5a20b21d72a5d31ce4746953539d2299cbc59e
+SIZE (mupdf-0.8.165-source.tar.gz) = 3775041
diff -ruN --exclude=CVS /usr/ports/graphics/mupdf.orig/pkg-plist /usr/ports/graphics/mupdf/pkg-plist
--- /usr/ports/graphics/mupdf.orig/pkg-plist	2010-10-06 15:31:12.000000000 -0500
+++ /usr/ports/graphics/mupdf/pkg-plist	2011-05-07 04:02:09.194508328 -0500
@@ -4,6 +4,10 @@
 bin/mu_pdfextract
 bin/mu_pdfinfo
 bin/mu_pdfshow
+bin/mu_xpsdraw
 include/fitz.h
 include/mupdf.h
+include/muxps.h
+lib/libfitz.a
 lib/libmupdf.a
+lib/libmuxps.a
--- mupdf-0.8.165,1.patch ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4dc511d4.c400e70a.6d45.6d8a>