From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C263E15849D for ; Sun, 2 Jun 2024 11:15:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E7A6E29FB; Sun, 2 Jun 2024 11:15:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EA4C7E29FB for ; Sun, 2 Jun 2024 11:15:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1FF1F335D77 for ; Sun, 2 Jun 2024 11:15:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 061771B43 for ; Sun, 2 Jun 2024 11:15:40 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1717326920.154e9224cf297219ed0a5baf3cbc1e5eb5c42456.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/pdftk/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/pdftk/Manifest app-text/pdftk/pdftk-3.3.3_p20231025.ebuild X-VCS-Directories: app-text/pdftk/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 154e9224cf297219ed0a5baf3cbc1e5eb5c42456 X-VCS-Branch: master Date: Sun, 2 Jun 2024 11:15:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: af24a255-061c-4938-b485-48fe7824130d X-Archives-Hash: 4b9006802892b0fc492c5b4e8bebfd45 commit: 154e9224cf297219ed0a5baf3cbc1e5eb5c42456 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Thu May 30 08:58:24 2024 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Sun Jun 2 11:15:20 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=154e9224 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 pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/36898 Signed-off-by: Florian Schmaus gentoo.org> app-text/pdftk/Manifest | 1 + app-text/pdftk/pdftk-3.3.3_p20231025.ebuild | 80 +++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) 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" +}