Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/pdftk/
Date: Fri, 24 Dec 2021 08:16:31
Message-Id: 1640333784.b3d9f518e7b9a2119835b9e08005127443b7219b.fordfrog@gentoo
1 commit: b3d9f518e7b9a2119835b9e08005127443b7219b
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 24 08:16:19 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 24 08:16:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3d9f518
7
8 app-text/pdftk: bump to 3.3.2
9
10 eapi7, min java to 1.8
11
12 Package-Manager: Portage-3.0.30, Repoman-3.0.3
13 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
14
15 app-text/pdftk/Manifest | 1 +
16 app-text/pdftk/pdftk-3.3.2.ebuild | 42 +++++++++++++++++++++++++++++++++++++++
17 2 files changed, 43 insertions(+)
18
19 diff --git a/app-text/pdftk/Manifest b/app-text/pdftk/Manifest
20 index 7842f625de51..57fe4d9c0c88 100644
21 --- a/app-text/pdftk/Manifest
22 +++ b/app-text/pdftk/Manifest
23 @@ -1 +1,2 @@
24 DIST pdftk-v3.2.2.tar.bz2 1245439 BLAKE2B ac1991e60ad06308cb7be1e74f9b3772c80416e490fe525e806efb6d30c6bbc9d310b98c255ef9e3eb3f814541d7388140210c4df2b694bd4a9ee325c27b3f24 SHA512 03220ac3036098768dd4250bbfeb6675561e9126697b99703ab5788b2cee7551256c301d9191745c5fdedf429056b46641351d1fb92631ef17673d7e740c5431
25 +DIST pdftk-v3.3.2.tar.bz2 2169492 BLAKE2B 53cb98fe3e3d1dbe8b01a45b5b11c6fbe57017ea8029efe35677914a48ffd446c5d67621443a89f512b15d0f7e77a81c945d4c220ccaf4fd658cc1726cc32059 SHA512 b02c713b67531205e760e8d8a240a82af47dbdc28e59aa683e03772d2fb27b504b98f8be1e8dc73bfc967cc9532f3dc1eccbd105abb21db396268855233051eb
26
27 diff --git a/app-text/pdftk/pdftk-3.3.2.ebuild b/app-text/pdftk/pdftk-3.3.2.ebuild
28 new file mode 100644
29 index 000000000000..01bda985c416
30 --- /dev/null
31 +++ b/app-text/pdftk/pdftk-3.3.2.ebuild
32 @@ -0,0 +1,42 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit java-pkg-2 java-ant-2
39 +
40 +DESCRIPTION="gcj-free version of pdftk written in Java"
41 +HOMEPAGE="https://gitlab.com/pdftk-java/pdftk"
42 +
43 +if [[ ${PV} == 9999 ]] ; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://gitlab.com/pdftk-java/pdftk/"
46 +else
47 + SRC_URI="https://gitlab.com/pdftk-java/pdftk/-/archive/v${PV}/pdftk-v${PV}.tar.bz2"
48 + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
49 + S="${WORKDIR}/pdftk-v${PV}"
50 +fi
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +
55 +JAVA_PKG_STRICT="yes"
56 +EANT_GENTOO_CLASSPATH="bcprov,commons-lang-3.6"
57 +JAVA_ANT_REWRITE_CLASSPATH="true"
58 +
59 +CDEPEND="
60 + dev-java/bcprov:0
61 + dev-java/commons-lang:3.6"
62 +
63 +RDEPEND="
64 + ${CDEPEND}
65 + >=virtual/jre-1.8:*"
66 +
67 +DEPEND="
68 + ${CDEPEND}
69 + >=virtual/jdk-1.8:*"
70 +
71 +src_install() {
72 + java-pkg_newjar "build/jar/pdftk.jar"
73 + java-pkg_dolauncher ${PN} --main com.gitlab.pdftk_java.pdftk
74 +}