ports/64555: New port:print/pdftk, A tool to do everyday things with PDF
Patrick Dung
patrick_dkt at yahoo.com.hk
Mon Mar 22 03:10:13 UTC 2004
>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: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 21 19:10:12 PST 2004
>Closed-Date:
>Last-Modified:
>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 at 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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list