From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-text/pdftk/Manifest | 5 ++++ app-text/pdftk/files/pdftk-2.02-flags.patch | 43 +++++++++++++++++++++++++++++ app-text/pdftk/metadata.xml | 12 ++++++++ app-text/pdftk/pdftk-2.02.ebuild | 43 +++++++++++++++++++++++++++++ app-text/pdftk/pdftk-9999.ebuild | 34 +++++++++++++++++++++++ 5 files changed, 137 insertions(+) create mode 100644 app-text/pdftk/Manifest create mode 100644 app-text/pdftk/files/pdftk-2.02-flags.patch create mode 100644 app-text/pdftk/metadata.xml create mode 100644 app-text/pdftk/pdftk-2.02.ebuild create mode 100644 app-text/pdftk/pdftk-9999.ebuild (limited to 'app-text/pdftk') diff --git a/app-text/pdftk/Manifest b/app-text/pdftk/Manifest new file mode 100644 index 000000000000..245a3873ba30 --- /dev/null +++ b/app-text/pdftk/Manifest @@ -0,0 +1,5 @@ +AUX pdftk-2.02-flags.patch 1922 BLAKE2B fc8be4321b7f39d3814a4da73986d4d81fd9d0eb52941e77f2ebcf85443c418b618584a5d9632979b3c6ed121e2fb4a42d7d694832119ee215a97454139e3d51 SHA512 96d2aceda2c98704ee70e55f84bd831ee131153d21a2b6f094ec111a1475cdc5da01434566d1c9aff2de403e55a81b0ae6baeb5d3017cb979662de895ebbf768 +DIST pdftk-2.02-src.zip 2239008 BLAKE2B 9bb55fb687b85de2ee0f9bec4ff16772646613b1519afb6d432985ad452cd09d04636788cb2deedb9924833cc10a802057c0e8ff146789da29cd4969cd614c39 SHA512 5c73ab3b7b12cfc24a17c2737d224fdde2ae684e1712031a968b83f5b8d91c521d477e932fc47f8b4a8c0ff0ba183678aaa13a1e7b29107c5c47ded8d960ef54 +EBUILD pdftk-2.02.ebuild 958 BLAKE2B b67ae137dcd28f2bfef9ca0fb5b2b718fd14a8d51628995f24090e3c5cf5db69155ffa75f8788137f46669f0d625e544e9fc1f9188ac21589048ac51c55039ce SHA512 25565e5ea0c59b9af269419acab47d7a4d452800494697238a1e9b48d11617a4f46024357a91bf3b25c080a22960177b4249275f571d2bf38d9a492d70d650eb +EBUILD pdftk-9999.ebuild 665 BLAKE2B 23c444ed411e75e8a8c00f080ef67533d7a75fce5553705f386dc13ae457976383e5601566f81991c29b1a0a27b07be32f7ad848bff52d50d29d5f6a16eaf263 SHA512 44edc70c6b6948a240a131d4b58c439dc7f68809f3f0d74bd082d172084bd4be6526b75c1074f823e0d4cfa1b222fcdd7e1dd65fa3194b2c248a9bd576a86686 +MISC metadata.xml 348 BLAKE2B ef51c768c6964646b5e264d379b5c259134b37df3c9d4368b92c44855ee21fa40005fcf1514e95fba43fb683fbf49c35dc251521d1b63f91449c73ecb527a749 SHA512 f7031388d3d15f091e5e477bbcc7291b1e2362cc41fb485875e8a4ec81c9b86ee4a8b9ee640eeffe7e2bc17cc90ab417945bd6aca52cf13c85d979774e8a3572 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 @@ + + + + + printing@gentoo.org + Gentoo Printing Project + + + java@gentoo.org + Java + + diff --git a/app-text/pdftk/pdftk-2.02.ebuild b/app-text/pdftk/pdftk-2.02.ebuild new file mode 100644 index 000000000000..cd88040b5245 --- /dev/null +++ b/app-text/pdftk/pdftk-2.02.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 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="https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/" +SRC_URI="https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/${P}-src.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux" + +RDEPEND="sys-devel/gcc:5.4.0[gcj]" +DEPEND="${RDEPEND} + sys-devel/gcc-config +" + +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 + + # We need gcc-5 because of Java + export PATH="$(gcc-config -B 5.4.0):${PATH}" + + # 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 +} diff --git a/app-text/pdftk/pdftk-9999.ebuild b/app-text/pdftk/pdftk-9999.ebuild new file mode 100644 index 000000000000..38734756ceba --- /dev/null +++ b/app-text/pdftk/pdftk-9999.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit git-r3 java-pkg-2 java-ant-2 + +DESCRIPTION="gcj-free version of pdftk written in Java" +HOMEPAGE="https://gitlab.com/marcvinyals/pdftk" +EGIT_REPO_URI="https://gitlab.com/marcvinyals/pdftk/" + +LICENSE="GPL-2" +SLOT="0" + +JAVA_PKG_STRICT="yes" +EANT_GENTOO_CLASSPATH="bcprov,commons-lang-3.6" +JAVA_ANT_REWRITE_CLASSPATH="true" + +CDEPEND=" + dev-java/bcprov:0 + dev-java/commons-lang:3.6" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.7" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.7" + +src_install() { + java-pkg_newjar "build/jar/pdftk.jar" + java-pkg_dolauncher +} -- cgit v1.2.3