Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2013 12:52:54 GMT
From:      Oliver Brandmüller <ob@e-gitt.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181399: Update pdf2djvu port to 0.7.17 and unbreak
Message-ID:  <201308191252.r7JCqsNW014228@oldred.freebsd.org>
Resent-Message-ID: <201308191300.r7JD00Uf030082@freefall.freebsd.org>

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

>Number:         181399
>Category:       ports
>Synopsis:       Update pdf2djvu port to 0.7.17 and unbreak
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 19 13:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Brandmüller
>Release:        9.2-PRERELEASE
>Organization:
>Environment:
FreeBSD silver 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #44 r254414: Fri Aug 16 17:27:27 CEST 2013     root@silver:/usr/obj/usr/src/sys/BLACK  amd64
>Description:
The pdf2djvu port was BROKEN and an old version for a long time. This contains an update and unbreaks the port. Tested on 9-STABLE amd64. Please review and update.
>How-To-Repeat:
cd /usr/ports/converters/pdf2djvu
make install
>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./pkg-descr
#	./files
#	./files/patch-tools-xml2c
#	./Makefile
#	./distinfo
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << '0e313719ff012ceaf97a028d51caa8f5'
Xpdf2djvu creates DjVu files from PDF files. It's able to extract:
Xgraphics, text layer, hyperlinks, document outline (bookmarks), and
Xmetadata.
X
XWWW: http://code.google.com/p/pdf2djvu/
0e313719ff012ceaf97a028d51caa8f5
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-tools-xml2c
sed 's/^X//' >./files/patch-tools-xml2c << 'ff62aa4c5056ca6b0bbcfe586999b9ca'
X*** tools/xml2c.bsdsed	Wed Aug  7 13:01:33 2013
X--- tools/xml2c	Wed Aug  7 13:01:49 2013
X***************
X*** 6,12 ****
X  # it under the terms of the GNU General Public License as published by
X  # the Free Software Foundation; version 2 dated June, 1991.
X  
X! exec sed \
X    -e '/<!--# *\(.*\) *#-->/ { s//\1/; b; }' \
X    -e '/<!--.*-->/ { s///g; b; }' \
X    -e 's/\\\\/\\\\/g' \
X--- 6,12 ----
X  # it under the terms of the GNU General Public License as published by
X  # the Free Software Foundation; version 2 dated June, 1991.
X  
X! exec gsed \
X    -e '/<!--# *\(.*\) *#-->/ { s//\1/; b; }' \
X    -e '/<!--.*-->/ { s///g; b; }' \
X    -e 's/\\\\/\\\\/g' \
ff62aa4c5056ca6b0bbcfe586999b9ca
echo x - ./Makefile
sed 's/^X//' >./Makefile << '464ef7c6571951809b23e262cbe26e19'
X# Created by: Denise H. G. <darcsis@gmail.com>
X# $FreeBSD: converters/pdf2djvu/Makefile 316310 2013-04-23 06:34:47Z bapt $
X
XPORTNAME=	pdf2djvu
XPORTVERSION=	0.7.17
XCATEGORIES=	converters
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
XDISTNAME=	${PORTNAME}_${PORTVERSION}${EXTRACT_SUFFIX}
X
XMAINTAINER=	darcsis@gmail.com
XCOMMENT=	Pdf2djvu creates DjVu files from PDF files
X
XBUILD_DEPENDS=	${LOCALBASE}/include/pstreams/pstream.h:${PORTSDIR}/devel/pstreams
XBUILD_DEPENDS+=	${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
XLIB_DEPENDS=	poppler:${PORTSDIR}/graphics/poppler
XLIB_DEPENDS+=	djvulibre:${PORTSDIR}/graphics/djvulibre
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	LIBS=-pthread
XCPPFLAGS+=	-I${LOCALBASE}/include
XUSES=		pkgconfig
XUSE_GMAKE=	yes
XUSE_GCC=	4.6+
X
XPLIST_FILES=	bin/pdf2djvu
XMAN1=		pdf2djvu.1
XMANCOMPRESSED=	no
X
XWRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X	${INSTALL_MAN}  ${WRKSRC}/doc/${PORTNAME}.1 ${MANPREFIX}/man/man1
X
X.include <bsd.port.mk>
464ef7c6571951809b23e262cbe26e19
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'aec8793adfd5b7c3f00e62ae41a09ac2'
XSHA256 (pdf2djvu_0.7.17.tar.gz) = fe6d6e2d6df53195f082890d3cb5e50080784510691e708a5e4614b49662f4da
XSIZE (pdf2djvu_0.7.17.tar.gz) = 320923
aec8793adfd5b7c3f00e62ae41a09ac2
exit



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



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