Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/joda-convert/
Date: Tue, 21 Dec 2021 08:04:18
Message-Id: 1640072943.9afc1027de4d1e167a141fef520aec977ea4e0c2.fordfrog@gentoo
1 commit: 9afc1027de4d1e167a141fef520aec977ea4e0c2
2 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
3 AuthorDate: Mon Dec 20 11:29:56 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 21 07:49:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9afc1027
7
8 dev-java/joda-convert: bump to 2.2.2
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
12 Closes: https://github.com/gentoo/gentoo/pull/23429
13 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
14
15 dev-java/joda-convert/Manifest | 1 +
16 dev-java/joda-convert/joda-convert-2.2.2.ebuild | 71 +++++++++++++++++++++++++
17 dev-java/joda-convert/metadata.xml | 3 +-
18 3 files changed, 74 insertions(+), 1 deletion(-)
19
20 diff --git a/dev-java/joda-convert/Manifest b/dev-java/joda-convert/Manifest
21 index c79515207e11..7e0f02a32075 100644
22 --- a/dev-java/joda-convert/Manifest
23 +++ b/dev-java/joda-convert/Manifest
24 @@ -1 +1,2 @@
25 DIST joda-convert-1.3.1-dist.tar.gz 131288 BLAKE2B 0b7b6cebb7e13e89d838ec10c4edd54b52bf3449b3003cd41ea2628719b8ea52bc00a8681a96fad0de79b4acd56fc4a8d4a31d558841fa268d9ffbeb97ca1ed0 SHA512 ee3f7264e9ee445dd8cf088c862809faceb012d317c4974d2312e1ce9b580193096259978a79cdefc2217818600ff38569348625986e19bdb753edb03ba58451
26 +DIST joda-convert-2.2.2.tar.gz 65476 BLAKE2B 9ef8e3b172d31f4e3b748ba5aae807b1d344c3b6bedeb0bf0b84b93009171495f271d03cd9f7b29147a256ddd1081b3fc9640c1df6b45425080ce1d44e2c0f37 SHA512 9660491373d5f7d415ab47cec7164922fc8901803e759bbf8cf7d0cc58040c2c8b245271f33d641a563ffb25b8e42f8197e297da7d1fe68a5c50ebb61536f3ae
27
28 diff --git a/dev-java/joda-convert/joda-convert-2.2.2.ebuild b/dev-java/joda-convert/joda-convert-2.2.2.ebuild
29 new file mode 100644
30 index 000000000000..6472c40d5e36
31 --- /dev/null
32 +++ b/dev-java/joda-convert/joda-convert-2.2.2.ebuild
33 @@ -0,0 +1,71 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +# Skeleton command:
38 +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/JodaOrg/joda-convert/archive/refs/tags/v2.2.2.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild joda-convert-2.2.2.ebuild
39 +
40 +EAPI=8
41 +
42 +JAVA_PKG_IUSE="doc source test"
43 +MAVEN_ID="org.joda:joda-convert:2.2.2"
44 +JAVA_TESTING_FRAMEWORKS="junit-4"
45 +
46 +inherit java-pkg-2 java-pkg-simple
47 +
48 +DESCRIPTION="Library to convert Objects to and from String"
49 +HOMEPAGE="https://www.joda.org/joda-convert/"
50 +SRC_URI="https://github.com/JodaOrg/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
51 +
52 +LICENSE="Apache-2.0"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
55 +
56 +# Compile dependencies
57 +# POM: pom.xml
58 +# test? com.google.guava:guava:31.0.1-jre -> !!!suitable-mavenVersion-not-found!!!
59 +# test? junit:junit:4.13.2 -> >=dev-java/junit-4.13.2:4
60 +
61 +DEPEND="
62 + >=virtual/jdk-1.8:*
63 + test? (
64 + dev-java/guava:20
65 + )
66 +"
67 +
68 +RDEPEND="
69 + >=virtual/jre-1.8:*
70 +"
71 +
72 +DOCS=( {LICENSE,NOTICE,RELEASE-NOTES}.txt README.md )
73 +
74 +S="${WORKDIR}/${P}"
75 +
76 +JAVA_SRC_DIR="src/main/java"
77 +# JAVA_RESOURCE_DIRS=""
78 +
79 +JAVA_TEST_GENTOO_CLASSPATH="guava-20,junit-4"
80 +JAVA_TEST_SRC_DIR="src/test/java"
81 +JAVA_TEST_RESOURCE_DIRS="src/test/resources"
82 +
83 +JAVA_TEST_EXCLUDES=(
84 + # Upstream: Tests run: 186, Failures: 0, Errors: 0, Skipped: 0
85 + # All following: No runnable methods
86 + org.joda.convert.test1.Test1Class
87 + org.joda.convert.test1.Test1Interface
88 + org.joda.convert.test2.Test2Class
89 + org.joda.convert.test2.Test2Factory
90 + org.joda.convert.test2.Test2Interface
91 + org.joda.convert.test3.Test3Class
92 + org.joda.convert.test3.Test3Factory
93 + org.joda.convert.test3.Test3Interface
94 + org.joda.convert.test3.Test3SuperClass
95 + org.joda.convert.test4.Test4Class
96 + org.joda.convert.test4.Test4Factory
97 + org.joda.convert.test4.Test4Interface
98 + org.joda.convert.TestRenameHandlerBadInit
99 +)
100 +
101 +src_install() {
102 + default # https://bugs.gentoo.org/789582
103 + java-pkg-simple_src_install
104 +}
105
106 diff --git a/dev-java/joda-convert/metadata.xml b/dev-java/joda-convert/metadata.xml
107 index e96bce731a65..9286c1123b77 100644
108 --- a/dev-java/joda-convert/metadata.xml
109 +++ b/dev-java/joda-convert/metadata.xml
110 @@ -6,6 +6,7 @@
111 <name>Java</name>
112 </maintainer>
113 <upstream>
114 - <remote-id type="sourceforge">joda-convert</remote-id>
115 + <remote-id type="github">JodaOrg/joda-convert</remote-id>
116 + <bugs-to>https://github.com/JodaOrg/joda-convert/issues</bugs-to>
117 </upstream>
118 </pkgmetadata>