From nobody@FreeBSD.org  Sun Mar 21 19:03:38 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B443916A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Mar 2004 19:03:38 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 99B9E43D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Mar 2004 19:03:38 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i2M33c72004474
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Mar 2004 19:03:38 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i2M33cjS004473;
	Sun, 21 Mar 2004 19:03:38 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200403220303.i2M33cjS004473@www.freebsd.org>
Date: Sun, 21 Mar 2004 19:03:38 -0800 (PST)
From: Patrick Dung <patrick_dkt@yahoo.com.hk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port:print/pdftk, A tool to do everyday things with PDF
X-Send-Pr-Version: www-2.3

>Number:         64555
>Category:       ports
>Synopsis:       New port:print/pdftk, A tool to do everyday things with PDF
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 21 19:10:12 PST 2004
>Closed-Date:    Thu Apr 01 17:48:45 PST 2004
>Last-Modified:  Thu Apr 01 17:48:45 PST 2004
>Originator:     Patrick Dung
>Release:        FreeBSD 4.9-STABLE
>Organization:
N/A
>Environment:
FreeBSD 4.9-STABLE FreeBSD 4.9-STABLE #0:
>Description:
pdftk is a simple tool for doing everyday things with PDF documents.
Such as setting encryption on PDF files.

The attached port files only works on FreeBSD 4.x-stable
It will have compile problems with FreeBSD 5.x.
The port needs GCC33 to build.
>How-To-Repeat:
N/A
>Fix:
# 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:
#
#	pdftk
#	pdftk/Makefile
#	pdftk/pkg-descr
#	pdftk/pkg-plist
#
echo c - pdftk
mkdir -p pdftk > /dev/null 2>&1
echo x - pdftk/Makefile
sed 's/^X//' >pdftk/Makefile << 'END-of-pdftk/Makefile'
X# Ports collection makefile for:	pdftk
X# Date created:			18 March, 2004
X# Whom:				Patrick Dung (patrick_dkt@yahoo.com.hk)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pdftk
XPORTVERSION=	0.93
XCATEGORIES=	print
XMASTER_SITES=	http://www.accesspdf.com/pdftk/
X
XMAINTAINER=	patrick_dkt@yahoo.com.hk
XCOMMENT=	A simple tool for doing everyday things with PDF documents
X
XBUILD_DEPENDS=	${LOCALBASE}/bin/gcc33:${PORTSDIR}/lang/gcc33
XRUN_DEPENDS=	${LOCALBASE}/lib/libiconv.so.3:${PORTSDIR}/converters/libiconv
X
XUSE_GCC=	3.3
X
XUSE_GMAKE=	yes
XUSE_ICONV=	yes
XUSE_REINPLACE=	yes
X
XBUILD_WRKSRC=	${WRKSRC}/${PORTNAME}
XINSTALL_WRKSRC=	${WRKSRC}/${PORTNAME}
X
XMAKEFILE=	Makefile.Generic
X
XMAN1=		${PORTNAME}.1
X
Xpost-extract:
X	@${REINPLACE_CMD} -e "s|CC_OPTS \+\=|CC_OPTS \+\= ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz|g" \
X	 ${WRKSRC}/${PORTNAME}/Makefile.Base
X
X	@${REINPLACE_CMD} -e "s|g\+\+|g\+\+${USE_GCC:S/.//}|g" ${WRKSRC}/${PORTNAME}/Makefile.Base
X
X	@${FIND} ${WRKSRC} -type f -name Makefile | \
X	${XARGS} ${REINPLACE_CMD} -E -e "s/[[:<:]]gc(c|jh?)[[:>:]]/gc\1${USE_GCC:S/.//}/g"
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${PORTNAME} ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.1 ${PREFIX}/man/man1
X
X.include <bsd.port.mk>
END-of-pdftk/Makefile
echo x - pdftk/pkg-descr
sed 's/^X//' >pdftk/pkg-descr << 'END-of-pdftk/pkg-descr'
XIf PDF is electronic paper, then pdftk is an electronic staple-remover,
Xhole-punch, binder, secret-decoder-ring, and X-Ray-glasses.
XPdftk is a simple tool for doing everyday things with PDF documents.
XKeep one in the top drawer of your desktop and use it to:
X
XMerge PDF Documents
XSplit PDF Pages into a New Document
XDecrypt Input as Necessary (Password Required)
XEncrypt Output as Desired
XBurst a PDF Document into Single Pages
XReport on PDF Metrics, including Metadata and Bookmarks
XUncompress and Re-Compress Page Streams
XRepair Corrupted PDF (Where Possible)
X
XPdftk is also an example of how to use a library of Java classes
Xin a stand-alone C++ program. Specifically, it demonstrates how GCJ and CNI
Xallow C++ code to use iText's (itext-paulo) Java classes.
X
XWWW: http://www.accesspdf.com/pdftk/
END-of-pdftk/pkg-descr
echo x - pdftk/pkg-plist
sed 's/^X//' >pdftk/pkg-plist << 'END-of-pdftk/pkg-plist'
Xbin/pdftk
END-of-pdftk/pkg-plist
exit




>Release-Note:
>Audit-Trail:

From: "Patrick Dung" <patrick_dkt@yahoo.com.hk>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: ports/64555: New port:print/pdftk, A tool to do everyday things with PDF
Date: Mon, 29 Mar 2004 21:33:58 +0800

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0003_01C415D5.8B2B61F0
 Content-Type: text/plain;
 	charset="big5"
 Content-Transfer-Encoding: quoted-printable
 
 The following is the Makefile for pdftk 0.94.
 
 # Ports collection makefile for: pdftk
 # Date created:   18 March, 2004
 # Whom:    Patrick Dung (patrick_dkt@yahoo.com.hk)
 #
 # $FreeBSD$
 #
 
 PORTNAME=3D pdftk
 PORTVERSION=3D 0.94
 CATEGORIES=3D print
 MASTER_SITES=3D http://www.accesspdf.com/pdftk/
 
 MAINTAINER=3D patrick_dkt@yahoo.com.hk
 COMMENT=3D A simple tool for doing everyday things with PDF documents
 
 BUILD_DEPENDS=3D ${LOCALBASE}/bin/gcc33:${PORTSDIR}/lang/gcc33
 RUN_DEPENDS=3D =
 ${LOCALBASE}/lib/libiconv.so.3:${PORTSDIR}/converters/libiconv
 
 USE_GCC=3D 3.3
 
 USE_GMAKE=3D yes
 USE_ICONV=3D yes
 USE_REINPLACE=3D yes
 
 BUILD_WRKSRC=3D ${WRKSRC}/${PORTNAME}
 INSTALL_WRKSRC=3D ${WRKSRC}/${PORTNAME}
 
 MAKEFILE=3D Makefile.Generic
 
 MAN1=3D ${PORTNAME}.1
 
 post-extract:
 
  @${REINPLACE_CMD} -e \
  "s|CC_OPTS \+\=3D|CC_OPTS \+\=3D ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} =
 -liconv -lz |g" \
  ${WRKSRC}/${PORTNAME}/Makefile.Base
 
  @${REINPLACE_CMD} -e "s|g\+\+|${CXX}|g" =
 ${WRKSRC}/${PORTNAME}/Makefile.Generic
 
  @${REINPLACE_CMD} -e "s|GCJ=3D gcj|GCJ=3D gcj${USE_GCC:S/.//}|" =
 ${WRKSRC}/itext-1.1/Makefile
  @${REINPLACE_CMD} -e "s|GCJH=3D gcjh|GCJH=3D gcjh${USE_GCC:S/.//}|" =
 ${WRKSRC}/itext-1.1/Makefile
 
 do-install:
  ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${PORTNAME} ${PREFIX}/bin
  ${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
 
 .include <bsd.port.mk>
 ------=_NextPart_000_0003_01C415D5.8B2B61F0
 Content-Type: text/html;
 	charset="big5"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
 <META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT size=3D2>The following is the Makefile for pdftk =
 0.94.</FONT></DIV>
 <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT size=3D2># Ports collection makefile for:&nbsp;pdftk<BR># =
 Date=20
 created:&nbsp;&nbsp;&nbsp;18 March, 2004<BR>#=20
 Whom:&nbsp;&nbsp;&nbsp;&nbsp;Patrick Dung (<A=20
 href=3D"mailto:patrick_dkt@yahoo.com.hk">patrick_dkt@yahoo.com.hk</A>)<BR=
 >#<BR>#=20
 $FreeBSD$<BR>#</FONT></DIV>
 <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
 <DIV><FONT=20
 size=3D2>PORTNAME=3D&nbsp;pdftk<BR>PORTVERSION=3D&nbsp;0.94<BR>CATEGORIES=
 =3D&nbsp;print<BR>MASTER_SITES=3D&nbsp;<A=20
 href=3D"http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/<=
 /A></FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT size=3D2>MAINTAINER=3D&nbsp;<A=20
 href=3D"mailto:patrick_dkt@yahoo.com.hk">patrick_dkt@yahoo.com.hk</A><BR>=
 COMMENT=3D&nbsp;A=20
 simple tool for doing everyday things with PDF documents</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT=20
 size=3D2>BUILD_DEPENDS=3D&nbsp;${LOCALBASE}/bin/gcc33:${PORTSDIR}/lang/gc=
 c33<BR>RUN_DEPENDS=3D&nbsp;${LOCALBASE}/lib/libiconv.so.3:${PORTSDIR}/con=
 verters/libiconv</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT size=3D2>USE_GCC=3D&nbsp;3.3</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT=20
 size=3D2>USE_GMAKE=3D&nbsp;yes<BR>USE_ICONV=3D&nbsp;yes<BR>USE_REINPLACE=3D=
 &nbsp;yes</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT=20
 size=3D2>BUILD_WRKSRC=3D&nbsp;${WRKSRC}/${PORTNAME}<BR>INSTALL_WRKSRC=3D&=
 nbsp;${WRKSRC}/${PORTNAME}</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT size=3D2>MAKEFILE=3D&nbsp;Makefile.Generic</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT size=3D2>MAN1=3D&nbsp;${PORTNAME}.1</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT size=3D2>post-extract:</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT size=3D2>&nbsp;@${REINPLACE_CMD} -e \<BR>&nbsp;"s|CC_OPTS =
 \+\=3D|CC_OPTS=20
 \+\=3D ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz |g"=20
 \<BR>&nbsp;${WRKSRC}/${PORTNAME}/Makefile.Base</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT size=3D2>&nbsp;@${REINPLACE_CMD} -e "s|g\+\+|${CXX}|g"=20
 ${WRKSRC}/${PORTNAME}/Makefile.Generic</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT size=3D2>&nbsp;@${REINPLACE_CMD} -e "s|GCJ=3D gcj|GCJ=3D=20
 gcj${USE_GCC:S/.//}|" =
 ${WRKSRC}/itext-1.1/Makefile<BR>&nbsp;@${REINPLACE_CMD} -e=20
 "s|GCJH=3D gcjh|GCJH=3D gcjh${USE_GCC:S/.//}|"=20
 ${WRKSRC}/itext-1.1/Makefile</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT size=3D2>do-install:<BR>&nbsp;${INSTALL_PROGRAM}=20
 ${WRKSRC}/${PORTNAME}/${PORTNAME} ${PREFIX}/bin<BR>&nbsp;${INSTALL_MAN}=20
 ${WRKSRC}/debian/${PORTNAME}.1 ${MAN1PREFIX}/man/man1</FONT></DIV>
 <DIV>&nbsp;</DIV>
 <DIV><FONT size=3D2>.include =
 &lt;bsd.port.mk&gt;</FONT></DIV></BODY></HTML>
 
 ------=_NextPart_000_0003_01C415D5.8B2B61F0--
 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Thu Apr 1 17:48:37 PST 2004 
State-Changed-Why:  
New port added, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64555 
>Unformatted:
