summaryrefslogtreecommitdiff
path: root/app-text/pdftk
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/pdftk
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/pdftk')
-rw-r--r--app-text/pdftk/Manifest6
-rw-r--r--app-text/pdftk/files/pdftk-2.02-flags.patch43
-rw-r--r--app-text/pdftk/metadata.xml12
-rw-r--r--app-text/pdftk/pdftk-2.02.ebuild38
4 files changed, 99 insertions, 0 deletions
diff --git a/app-text/pdftk/Manifest b/app-text/pdftk/Manifest
new file mode 100644
index 000000000000..4a45ea7f7a0a
--- /dev/null
+++ b/app-text/pdftk/Manifest
@@ -0,0 +1,6 @@
+AUX pdftk-2.02-flags.patch 1922 SHA256 6ba0d9943ac4c1b1dfe623db3eed9555661ffa66ff33446fd00642355cb3413a SHA512 96d2aceda2c98704ee70e55f84bd831ee131153d21a2b6f094ec111a1475cdc5da01434566d1c9aff2de403e55a81b0ae6baeb5d3017cb979662de895ebbf768 WHIRLPOOL ad58aea7d9bfb62d183de0a6747725f8589ba6e87ce6ebfaa4f7528e5514c477f31f517da4985c4eacf2d217821bd564dd9b683ad049fb67891f3a9d510d5920
+DIST pdftk-2.02-src.zip 2239008 SHA256 118f6a25fd3acaafb58824dce6f97cdc07e56050e666b90e4c4ef426ea37b8c1 SHA512 5c73ab3b7b12cfc24a17c2737d224fdde2ae684e1712031a968b83f5b8d91c521d477e932fc47f8b4a8c0ff0ba183678aaa13a1e7b29107c5c47ded8d960ef54 WHIRLPOOL 910ee5f755e7ea46043cece0bd9a6645dc8a503280fd7d86eb2f77d303af0031b5e428cc7222cee23995e6fe5aefd142a610c77ec9969142e841e0f18153e082
+EBUILD pdftk-2.02.ebuild 846 SHA256 81415174944ecf929c7e7ba124f9d5799c3b672dc9858ddc284f655a1a7423f3 SHA512 1727e99131a9cd5fb291fea47b05f94a771eee807f079f5edf894b7954deea5eb0a9539660d3fe78ade13f4b5e37e0920254e955f1c0ba8d2647b33e020273c0 WHIRLPOOL e6d6a266611bfd2f696c96a560a58641da59872e051af7bb80eb37338dc9338f5ad89c58680e8835898f6574d10c3b49fe459b1a28fbd9ec92cf22472ed1d55d
+MISC ChangeLog 2450 SHA256 d2187e5bc3e4e86dfaebd0b4780a2a9dc6c8344735eee97572c646b9b03d84a1 SHA512 bf66bc238ac2449191ab3ba922c7214e227af4ad0e55ee8f1bd8942f87b34ee284feecb647a313458e1044b3934768f93829399ffdf4fc895526d40e4c2fb034 WHIRLPOOL 6f2b4484e9c81b657e831dd2721777e6986794840bf13a2286c07f49bc02020355356cf3eae6c5279942d4ce24edb02e06c7413a820b94ea7c3a19b07cdacf9f
+MISC ChangeLog-2015 7251 SHA256 74e090f894a5181b997f6ae3fba7cf669af62f7155c20a9712ae6709481a858d SHA512 d860d393b3cab23e87544050222801b7440024eb2c437f4d6a704bba8a9d09a861da54cb82be59c8f4753c0adadf93eb1047fb26f5dcf09f9e13e423b6d7506a WHIRLPOOL f6cdf4fec2c6adc54ae61b4f3e47e1d52f811b68ea57876f1892e75207c4f1aed8062864cd78e3e988aa94c385ba5a7eca2ff7348d95d2e73a68d5ae616ac209
+MISC metadata.xml 348 SHA256 727e15437625bd28417595a85989c5629baffa5b48fa642ae2d6ccf469ff7ff5 SHA512 f7031388d3d15f091e5e477bbcc7291b1e2362cc41fb485875e8a4ec81c9b86ee4a8b9ee640eeffe7e2bc17cc90ab417945bd6aca52cf13c85d979774e8a3572 WHIRLPOOL b4445cfebbed931b71b6d390935f02fb0208ce192e5ce6efc477bae4db48968135a031611d3eef0c66f42b3d6d6ae949f8ad7ceadda1b78b9b6c457b1388a142
diff --git a/app-text/pdftk/files/pdftk-2.02-flags.patch b/app-text/pdftk/files/pdftk-2.02-flags.patch
new file mode 100644
index 000000000000..5b20c9701cc0
--- /dev/null
+++ b/app-text/pdftk/files/pdftk-2.02-flags.patch
@@ -0,0 +1,43 @@
+Based on Debian patch, see http://patch-tracker.debian.org/patch/series/view/pdftk/2.01-1/customise_build_parameters
+
+diff -ruN pdftk-2.01-dist/pdftk/Makefile.Base pdftk-2.01-dist/pdftk/Makefile.Base
+--- pdftk-2.01-dist/pdftk/Makefile.Base 2012-12-06 19:57:36.000000000 +0100
++++ pdftk-2.01-dist/pdftk/Makefile.Base 2013-03-24 18:32:52.669492230 +0100
+@@ -43,7 +43,7 @@
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(JAVALIBPATH) pdftk.cc -c
+
+ pdftk : pdftk.o attachments.o report.o passwords.o $(JAVALIB) $(LIBGCJ_SUPPLEMENT_FULL_O)
+- $(CXX) $(CXXFLAGS) attachments.o report.o passwords.o pdftk.o $(JAVALIB) $(LIBGCJ_SUPPLEMENT_FULL_O) $(LDLIBS) -o pdftk
++ $(CXX) $(LDFLAGS) $(CXXFLAGS) attachments.o report.o passwords.o pdftk.o $(JAVALIB) $(LIBGCJ_SUPPLEMENT_FULL_O) $(LDLIBS) -o pdftk
+
+ install:
+ /usr/bin/install pdftk /usr/local/bin
+diff -ruN pdftk-2.01-dist/pdftk/Makefile.Debian pdftk-2.01-dist/pdftk/Makefile.Debian
+--- pdftk-2.01-dist/pdftk/Makefile.Debian 2012-12-06 19:58:44.000000000 +0100
++++ pdftk-2.01-dist/pdftk/Makefile.Debian 2013-03-24 18:34:39.034540850 +0100
+@@ -21,7 +21,7 @@
+ # tools
+ # need direct path to libgcj for gcjh (starting in gcj 4.1.2 per Aurélien GÉRÔME)
+ TOOLPATH=
+-export VERSUFF=-4.6
++export VERSUFF=
+ export CPP= $(TOOLPATH)cpp$(VERSUFF)
+ export CXX= $(TOOLPATH)g++$(VERSUFF)
+ export GCJ= $(TOOLPATH)gcj$(VERSUFF)
+@@ -64,13 +64,12 @@
+ # only effects libraries following option on the command line
+ #
+ #
+-export CPPFLAGS= -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers
+-export CXXFLAGS= -Wall -Wextra -Weffc++ -O2
+-export GCJFLAGS= -fsource=1.3 -O2
+-export GCJHFLAGS= -force
++export CPPFLAGS+= -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers
++export GCJFLAGS+= -fsource=1.3
++export GCJHFLAGS+= -force
+ export LDLIBS= -lgcj
+
+ include Makefile.Base
+
+ # required packages (xubuntu 12.04)
+ # gcj-jdk, g++
diff --git a/app-text/pdftk/metadata.xml b/app-text/pdftk/metadata.xml
new file mode 100644
index 000000000000..03c3390d2bb3
--- /dev/null
+++ b/app-text/pdftk/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>printing@gentoo.org</email>
+ <name>Gentoo Printing Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-text/pdftk/pdftk-2.02.ebuild b/app-text/pdftk/pdftk-2.02.ebuild
new file mode 100644
index 000000000000..0aa09e4f2ac2
--- /dev/null
+++ b/app-text/pdftk/pdftk-2.02.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="A tool for manipulating PDF documents"
+HOMEPAGE="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/"
+SRC_URI="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/${P}-src.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux"
+
+DEPEND="sys-devel/gcc[gcj]"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${P}-dist/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-flags.patch
+}
+
+src_compile() {
+ # Settings by java-config break compilation by gcj.
+ unset CLASSPATH
+ unset JAVA_HOME
+
+ # Parallel make fails; confirmed, still not fixed in version 2.02.
+ emake -j1 -f "${S}"/Makefile.Debian || die "Compilation failed."
+}
+
+src_install() {
+ dobin pdftk
+ doman ../pdftk.1
+ dohtml ../pdftk.1.html
+}