Date: Wed, 16 Mar 2011 23:31:07 -0500 From: Zhihao Yuan <lichray@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/155625: port: graphics/mupdf updated to 0.8.15 Message-ID: <4d818e92.4800e70a.0cf7.1505@mx.google.com> Resent-Message-ID: <201103170440.p2H4e4MX069762@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155625 >Category: ports >Synopsis: port: graphics/mupdf updated to 0.8.15 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 17 04:40:04 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Zhihao Yuan >Release: FreeBSD 8.2-STABLE amd64 >Organization: >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(http://mupdf.com/) was updated to 0.8.15 (sorry for the deprecated PR ports/155621). We need to update this port. Note that the memory corruption problem (http://portaudit.freebsd.org/53bde960-356b-11e0-8e81-0022190034c0.html) are fixed in this new version. I tested the PDF file from the original advisory (https://code.google.com/p/sumatrapdf/issues/detail?id=1180&can=1), and valgrind shows no problem with the it. BTW, from version 0.8, upstream includes some manpages. I renamed them to following the naming rule of the corresponding binaries (eg., pdf* -> mu_pdf*, pdf*.1 -> mu_pdf*.1). >How-To-Repeat: >Fix: --- patch-mupdf-0.8.15 begins here --- diff -rupN mupdf.orig/Makefile mupdf/Makefile --- mupdf.orig/Makefile 2010-10-06 15:31:12.000000000 -0500 +++ mupdf/Makefile 2011-03-16 23:20:12.915538148 -0500 @@ -5,10 +5,11 @@ # $FreeBSD: ports/graphics/mupdf/Makefile,v 1.10 2010/10/06 20:31:12 pgollucci Exp $ PORTNAME= mupdf -PORTVERSION= 0.7 +PORTVERSION= 0.8.15 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= http://www.mupdf.com/download/ +DISTFILES= ${PORTNAME}-${DISTVERSION}-source.tar.gz MAINTAINER= martin.dieringer@gmx.de COMMENT= Lightweight PDF viewer and toolkit @@ -19,10 +20,11 @@ LIB_DEPENDS= freetype.9:${PORTSDIR}/prin openjpeg.2:${PORTSDIR}/graphics/openjpeg USE_GMAKE= yes -MAKE_ARGS+= build=release prefix=${PREFIX} verbose=1 +MAKE_ARGS+= build=release prefix=${PREFIX} verbose=1 MANDIR=${PREFIX}/man/man1 APPS_MAN="${MAN1:S@^@apps/man/@}" LIBDIR=${PREFIX}/lib USE_XORG= x11 xext USE_GNOME= pkgconfig USE_GCC= 4.2+ +MAN1= mupdf.1 mu_pdfclean.1 mu_pdfdraw.1 mu_pdfshow.1 MAKE_JOBS_SAFE= yes @@ -32,13 +34,11 @@ LICENSE_FILE= ${WRKSRC}/COPYING post-patch: .SILENT ${REINPLACE_CMD} -e 's#\(PDF.*_EXE=.*DIR./\)#\1mu_#g' \ -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)/' \ ${WRKSRC}/Makefile - ${REINPLACE_CMD} -e 's/LAGS :=/LAGS +=/g' \ - -e 's/-O2//' -e 's/-g//' \ + ${REINPLACE_CMD} -e 's/-O2//' \ -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/Makerules +pre-install: .SILENT + find . -name pdf\*.1 -exec sh -c 'mv {} $$(dirname {})/mu_$$(basename {})' \; .include <bsd.port.mk> diff -rupN mupdf.orig/distinfo mupdf/distinfo --- mupdf.orig/distinfo 2010-10-06 15:31:12.000000000 -0500 +++ mupdf/distinfo 2011-03-16 21:56:33.027260860 -0500 @@ -1,3 +1,2 @@ -MD5 (mupdf-0.7.tar.gz) = 83adc4d14eb17835df791a9a0d1e8fa9 -SHA256 (mupdf-0.7.tar.gz) = e7f6307fa472575d27fe893e787ddb3fc927f03ba4ae23105f917189e81960a6 -SIZE (mupdf-0.7.tar.gz) = 3557621 +SHA256 (mupdf-0.8.15-source.tar.gz) = c9e7acc86c208a854e460cd07c1132039a95df0c21aa5052c4481fb540b0e03e +SIZE (mupdf-0.8.15-source.tar.gz) = 3837265 --- patch-mupdf-0.8.15 ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d818e92.4800e70a.0cf7.1505>