summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-05-30 10:58:24 +0200
committerFlorian Schmaus <flow@gentoo.org>2024-06-02 13:15:20 +0200
commit154e9224cf297219ed0a5baf3cbc1e5eb5c42456 (patch)
tree93eb970f6fab627427c7924bf9729425f805451f /app-text/pdftk
parentapp-text/pdftk: update 9999 (diff)
downloadgentoo-154e9224cf297219ed0a5baf3cbc1e5eb5c42456.tar.gz
gentoo-154e9224cf297219ed0a5baf3cbc1e5eb5c42456.tar.bz2
gentoo-154e9224cf297219ed0a5baf3cbc1e5eb5c42456.zip
app-text/pdftk: add 3.3.3_p20231025
Should allow dropping old dev-java/bcprov:1.74 Bug: https://bugs.gentoo.org/923598 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/36898 Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'app-text/pdftk')
-rw-r--r--app-text/pdftk/Manifest1
-rw-r--r--app-text/pdftk/pdftk-3.3.3_p20231025.ebuild80
2 files changed, 81 insertions, 0 deletions
diff --git a/app-text/pdftk/Manifest b/app-text/pdftk/Manifest
index 028f6a4638e8..45b3d4201b76 100644
--- a/app-text/pdftk/Manifest
+++ b/app-text/pdftk/Manifest
@@ -1 +1,2 @@
+DIST pdftk-3.3.3_p20231025.tar.bz2 2246135 BLAKE2B 641a8947d7be2a219b1deb4619f8ea201b8c0616ca50cc1cc1b4363050d16a7b622437f2b75236373f27ed2539f975c081f4f95a09163656d0e130969a5f4b7e SHA512 7745a161e788af2538a1e45e49c3342b8d1496cfec1079b51d4efed66440ce07a27657623ffb59d3078aa9ee964e77cbe3f8258d7d699938c59e9c6a2980f51b
DIST pdftk-v3.3.3.tar.bz2 2205902 BLAKE2B 7802554cef4389670392ca2fda3dc4c041943ad21ecf47cfcd333dc1f0899796fabf9538388586f4e64a8a1fa5d7278a93f9e88c19a1ec510b24b85027888ad4 SHA512 48173d0c4698bc984221b56dff3e6434df7cf144dddfdbf684f8fa28b9eacfd0ebf9ebca0b87df3f9534a1ed13caa4c0866bd3e7a8cd06a21b46dfaedda9ea21
diff --git a/app-text/pdftk/pdftk-3.3.3_p20231025.ebuild b/app-text/pdftk/pdftk-3.3.3_p20231025.ebuild
new file mode 100644
index 000000000000..03d5de31a055
--- /dev/null
+++ b/app-text/pdftk/pdftk-3.3.3_p20231025.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="com.gitlab.pdftk-java:pdftk-java:3.3.3"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A port of pdftk into java"
+HOMEPAGE="https://gitlab.com/pdftk-java/pdftk"
+MY_COMMIT="3f1918c831c919d0a8fcf18c36cf40118398b995"
+SRC_URI="https://gitlab.com/pdftk-java/pdftk/-/archive/${MY_COMMIT}.tar.bz2 -> ${P}.tar.bz2"
+S="${WORKDIR}/pdftk-${MY_COMMIT}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+CP_DEPEND="
+ dev-java/bcprov:0
+ dev-java/commons-lang:3.6
+"
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ ${CP_DEPEND}
+ test? (
+ app-text/poppler[cairo]
+ dev-java/system-rules:0
+ )
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CP_DEPEND}"
+
+DOCS=( CHANGELOG.md README.md )
+
+JAVA_MAIN_CLASS="com.gitlab.pdftk_java.pdftk"
+JAVA_RESOURCE_DIRS="resources/java"
+JAVA_SRC_DIR="java"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit-4,system-rules"
+JAVA_TEST_SRC_DIR="test"
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ mkdir resources || die
+ cp -r {,resources/}java || die
+ find resources/java -type f \( -name '*.java' -o -name '*.sh' \) -exec rm -rf {} + || die
+}
+
+src_test() {
+ # some tests seem to need special treatment
+ einfo "Runnig first test"
+ JAVA_TEST_RUN_ONLY=(
+ com.gitlab.pdftk_java.CatTest
+ com.gitlab.pdftk_java.DataTest
+ com.gitlab.pdftk_java.FormTest
+ com.gitlab.pdftk_java.MultipleTest
+ )
+ java-pkg-simple_src_test
+ einfo "Running second test"
+ JAVA_TEST_RUN_ONLY=()
+ JAVA_TEST_EXCLUDES=(
+ com.gitlab.pdftk_java.CatTest
+ com.gitlab.pdftk_java.DataTest
+ com.gitlab.pdftk_java.FormTest
+ com.gitlab.pdftk_java.MultipleTest
+ )
+ java-pkg-simple_src_test
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ doman "${PN}.1"
+}