If PDF is electronic paper, then pdftk is an electronic staple-remover,
hole-punch, binder, secret-decoder-ring, and X-Ray-glasses.
Pdftk is a simple tool for doing everyday things with PDF documents.
Keep one in the top drawer of your desktop and use it to:
Merge PDF Documents
Split PDF Pages into a New Document
Decrypt Input as Necessary (Password Required)
Encrypt Output as Desired
Burst a PDF Document into Single Pages
Report on PDF Metrics, including Metadata and Bookmarks
Uncompress and Re-Compress Page Streams
Repair Corrupted PDF (Where Possible)
print/pdftk: Revert "print/pdftk: Use bouncycastle dependency from ports tree"
This reverts commit 5511c16caba4bba47d1d8f197b95144b29014d6f.
The latest bouncycastle update is incompatible with pdftk.
Pdftk is unmaintained upstream. Get pdftk working for now by having
the bouncycastle version embedded.
PR: 296549
Approved-by: Thierry Thomas <thierry@>
Mk/Uses/java.mk: Runtime fix with USES=java:ant
USES=java:ant does not imply USES=java:run so we need to add the run arg
seperately when we are using USES=java:ant. Not all ports require the
the argument so it is better to address the ports individually instead
of handling it automatically by implying run for ant.
Thanks to vvd for carefully going through this.
Reported by: vvd
Approved by: portmgr (blanket)
Mk/**java.mk: Convert bsd.java.mk to USES
The following features have been added or changed:
- Instead of USE_JAVA use USES=java. This defaults to
USES=java:build,run if NO_BUILD is undefined. Else it defaults to
USES=java:run
- Instead of USE_ANT=yes use USES=java:ant which also implies
USES=java:build
- Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or
extract
- Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply
build or run
- Instead of JAVA_RUN=yes use USES=java:run does not imply extract or
build
- Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version>
Approved by: mat (portmgr), glewis
Differential Revision: https://reviews.freebsd.org/D48201
bsd.sites.mk: Update all ports using USE_GITLAB
Replace GL_COMMIT by GL_TAGNAME in all ports. The new GL_TAGNAME is
backwards-compatible (accepting any commit hash as before), but also
understands an actual tag name. Moving to tag names where appropriate is
left to individual ports' maintainers.
Approved by: portmgr (tcberner, mentor)
Differential Revision: https://reviews.freebsd.org/D37077
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
print/pdftk: Use bouncycastle dependency from ports tree
pdftk fetched the bouncycastle depenency directly from some maven site and
packaged it with pdftk. Use the ports version instead.
PR: 260883
Reported by: andreas@bilke.org
Regenerate all distfiles using gitlab as source.
This regeneration is required as the new gitlab version changed
the address and the directory the source files can be downloaded.
This commit also applies some small fixes to make sure all ports using
gitlab are buildable.
Reviewed by: mat
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D29628
print/pdftk: Update to 3.0.8 of JDK-based fork
The fork is a pure Java implementation of pdftk and does not rely
on the obsolete GCJ. It is mostly compatible with the old version.
The old version was the last port still depending on lang/gcc6.
Changes: https://gitlab.com/pdftk-java/pdftk/blob/v3.0.8/CHANGELOG.md#308-2019-10-14
print/pdftk: unbreak port for 12+13 as gcj6 no longer segfaults
- testbuilds are fine on 12+13
PR: 235003
Submitted by: Samy Mahmoudi <samy.mahmoudi@gmail.com>
Fix a common grammar error: "can not" means the opposite of "cannot."
"Can not" means "it is possible not to," and "cannot" means "it is impossible
to."
Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
c++14-lang, c++0x, c11, or gcc-c++11-lib.
PR: 219275
Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using using Mk/bsd.octave.mk which in turn has USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
c++11-lang, c++0x, c11, or gcc-c++11-lib.
PR: 216707
The output of tools like awk, date, sort, tr,... depends on the current
locale set by the user. Add LANG=C and LC_ALL=C at the beginning of
bsd.port.mk and export them so all commands are executed with the C locale.
LC_ALL=C overrides all other LC_* variables. LANG is used by setlocale(3)
as default value for LC_* variables, so normally it isn't used when LC_ALL
is set, but there's code out there that looks at LANG directly so it's safer
to set it as well. The only commands not captured by this are !=
assignments before any inclusion of bsd.port.*mk.
Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to
CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a
different locale (e.g. USE_LOCALE=en_US.UTF-8).
PR: 215882
Exp-run by: antoine
Approved by: portmgr (antoine)
Remove libiconv.so.3 compatibility link that was added in r374303 to
prevent massive PORTREVISION bumps. Bump dependent ports that have not
been bumped since.
Update the default version of GCC in the Ports Collection from GCC 4.7.4
to GCC 4.8.3.
Part II, Bump PORTREVISIONs.
PR: 192025
Tested by: antoine (-exp runs)
Approved by: portmgr (implicit)
Update the default version of GCC used in the Ports Collection from
GCC 4.6.4 to GCC 4.7.3. This entails updating the lang/gcc port as
well as changing the default in Mk/bsd.default-versions.mk.
Part II, Bump PORTREVISIONs.
PR: 182136
Supported by: Christoph Moench-Tegeder <cmt@burggraben.net> (fixing many ports)
Tested by: bdrewery (two -exp runs)
If GCC wasn't built with java support the port couldn't build and BUILD_DEPENDS
only made gcc recompile without actually solving the problem. This patch
introduces pre-configure target to check for gcc java items and give a
meaningful explanation if none found.
Changed "-Wl,-rpath" to "LDFLAGS" in REINPLACE as suggested by Gerald Pfeifer
here
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=606002+0+archive/2013/svn-ports-head/20131208.svn-ports-head
PR: 186893
Submitted by: Kozlov Sergey
Sponsored by: Absolight
[Errno 11] Resource Temporarily Unavailable
Reassigning my ports back to the pool with the hope of freeing up
to do more FreeBSD work in the future.
Submitted by: glarkin
Updated port to pdftk-2.02
Changes:
- Removed LOCAL master site, no distfile there obviously
- Moved USE_ZIP after BUILD_DEPENDS due to portlint warning
- Added LICENSE due to portlint warning
- Added LIB_DEPENDS. Libraries provided by gcc required to run the binary, but
gcc is registered only as build dependency. Removing the gcc after installation
of pdftk is permitted but breaks pdftk
- The port doesn't install any shared libraries, so there's no point in
USE_LDCONFIG
- Changed PLIST_FILES and removed MAN1 to support staging
- Removed ancient comment (mentioned gcc and FreeBSD versions are deprecated
long ago)
- Prepended STAGEDIR before PREFIX to support staging
- Corrected patch-pdftk__Makefile.Base to support new version
- REMOVED FILE file/patch-pdftk__Makefile.FreeBSD (is now provided by upstream)
- REMOVED FILE file/patch-java__Makefile (patch included by upstream)
maintainer timeout.
PR: ports/183578
Submitted by: Kozlov Sergey
Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
- #14669: Fixed extraction of CC from gmp.h.
- Fixed case of intermediate zero real or imaginary part in mpc_fma,
found by hydra with GMP_CHECK_RANDOMIZE=1346362345.
This is on top of the following changes from version 1.0
- Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
invariant sections) for the documentation.
- 100% of all lines are covered by tests
- Renamed functions
. mpc_mul_2exp to mpc_mul_2ui
. mpc_div_2exp to mpc_div_2ui
(Only the first 15 lines of the commit message are shown above )
- Make ports use the libc provided iconv implementation on 10-CURRENT
after r254273
- Fix a bunch of ports to properly work after this
- Mark converters/libiconv as IGNORE for systems with iconv in libc
Reviewed by: bapt
Approved by: portmgr (bapt)
Discussed with: bapt, bsam (who both contributed ideas and code)
Replace USE_GCC=4.6+ and USE_GCC=4.4+ by USE_GCC=yes.
Right now this is a noop in the former case and a noop in the latter
case unless lang/gcc44 has been installed explicitly.
This puts a bit more emphasis on standardizing on a canonical version
"current" GCC and makes it easier to update that canonical version
by changing the default in Mk/bsd.gcc.mk and updating the lang/gcc port.
That is, USE_GCC=yes means "use a decent/modern version of GCC" without
having to worry about details.
Approved by: portmgr (bdrewery)
- Fixed build on 10-CURRENT where /usr/bin/cpp is supplied by clang. The
port now explicitly uses cpp46 which is supplied by the gcc dependency.
PR: ports/177275
PR: ports/177974
Submitted by: Beeblebrox <zaphod@berentweb.com>
Submitted by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>
Remove an explicit BUILD_DEPENDS on lang/gccXY since we are already
using USE_GCC=4.6+.
These two conflict now that Mk/bsd.gcc.mk prefers lang/gcc over
lang/gcc46 when USE_GCC=4.6+ is specified. Since the version of
GCC as a system compiler is 4.2, older than the minimum requested
by USE_GCC, and will not be updated, this BUILD_DEPENDS no longer
fulfills its original purpose.
This unbreaks this port.
Approved by: portmgr (beat)
- Rearranged the dependency order in the upstream Makefile to enable
building with MAKE_JOBS_SAFE=yes
PR: ports/152213
Submitted by: Matthias Andree <matthias dot andree at gmx dot de>
- Updated to 1.44 (http://www.pdflabs.com/docs/pdftk-version-history/)
- Removed a bunch of patches after upstream build system changes
- Added FreeBSD-specific Makefile (pushing to upstream)
Requested by: Sid Steward <sid dot steward at pdflabs dot com> (author)
Reviewed by: Alessandro de Manzano <demanzano at dqmicro dot it>
- Mark BROKEN on 6.x. gcjh45 core dumps on 6.x with no immediately obvious
fix. Will research and unbreak as soon as possible.
Reported by: pointyhat (via pav) and user reports
- Build pdftk with gcj45 instead of gcj42
- Add a bunch of patch files to work around the Java duplicate symbol
problem reported here (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42143)
until a real fix is committed to the upstream toolchain
- Bump PORTREVISION
- Restrict the gcc version to 4.2, not 4.2+, since 4.2 is the only
version that includes gcj42 at the moment.
PR: ports/143093
Submitted by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Feature safe: yes
Convert BUILD_DEPENDS on lang/gcc41 to a LIB_DEPENDS, since pdftk is dynamically
linked to a couple of its libraries.
PR: 97259
Submitted by: Stefan Thurner <thurners@nicsys.de>
Approved by: maintainer timeout (>6 weeks)
arved (mentor)
Add pdftk, a simple tool for doing everyday things with PDF documents.
Keep one in the top drawer of your desktop and use it to:
Merge PDF Documents
Split PDF Pages into a New Document
Decrypt Input as Necessary (Password Required)
Encrypt Output as Desired
Burst a PDF Document into Single Pages
Report on PDF Metrics, including Metadata and Bookmarks
Uncompress and Re-Compress Page Streams
Repair Corrupted PDF (Where Possible)
PR: ports/64555
Submitted by: Patrick Dung <patrick_dkt@yahoo.com.hk>