1 |
commit: c1585dc1cda6e1076ea4ae181949c0ff1583e5c5 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Thu Oct 28 11:04:50 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 29 16:23:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1585dc1 |
7 |
|
8 |
dev-java/avalon-framework: min java 1.8 + EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/784839 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/22739 |
14 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
15 |
|
16 |
.../avalon-framework-4.2.0-r3.ebuild | 43 ++++++++++++++++++++++ |
17 |
dev-java/avalon-framework/files/4.2.0-enum.patch | 23 ++++++++++++ |
18 |
2 files changed, 66 insertions(+) |
19 |
|
20 |
diff --git a/dev-java/avalon-framework/avalon-framework-4.2.0-r3.ebuild b/dev-java/avalon-framework/avalon-framework-4.2.0-r3.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..23b8c1a9113 |
23 |
--- /dev/null |
24 |
+++ b/dev-java/avalon-framework/avalon-framework-4.2.0-r3.ebuild |
25 |
@@ -0,0 +1,43 @@ |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+JAVA_PKG_IUSE="doc source" |
32 |
+ |
33 |
+inherit java-pkg-2 java-ant-2 |
34 |
+ |
35 |
+DESCRIPTION="Avalon Framework" |
36 |
+HOMEPAGE="https://avalon.apache.org/" |
37 |
+SRC_URI="mirror://apache/avalon/avalon-framework/source/${P}-src.tar.gz" |
38 |
+ |
39 |
+LICENSE="Apache-2.0" |
40 |
+SLOT="4.2" |
41 |
+KEYWORDS="amd64 arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
42 |
+ |
43 |
+CDEPEND="dev-java/avalon-logkit:2.0 |
44 |
+ dev-java/log4j:0" |
45 |
+ |
46 |
+RDEPEND=">=virtual/jre-1.8:* |
47 |
+ ${CDEPEND}" |
48 |
+DEPEND=">=virtual/jdk-1.8:* |
49 |
+ ${CDEPEND}" |
50 |
+ |
51 |
+S="${WORKDIR}/${PN}" |
52 |
+ |
53 |
+PATCHES=( "${FILESDIR}"/4.2.0-enum.patch ) |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ default |
57 |
+ cp "${FILESDIR}"/build.xml ./build.xml || die "couldn't copy build.xml" |
58 |
+ local libs="log4j,avalon-logkit-2.0" |
59 |
+ echo "classpath=$(java-pkg_getjars ${libs})" > build.properties |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ java-pkg_dojar "${S}"/dist/avalon-framework.jar |
64 |
+ |
65 |
+ dodoc NOTICE.TXT |
66 |
+ use doc && java-pkg_dojavadoc target/docs |
67 |
+ use source && java-pkg_dosrc impl/src/java/* |
68 |
+} |
69 |
|
70 |
diff --git a/dev-java/avalon-framework/files/4.2.0-enum.patch b/dev-java/avalon-framework/files/4.2.0-enum.patch |
71 |
new file mode 100644 |
72 |
index 00000000000..d4f4d2fcf69 |
73 |
--- /dev/null |
74 |
+++ b/dev-java/avalon-framework/files/4.2.0-enum.patch |
75 |
@@ -0,0 +1,23 @@ |
76 |
+diff --git a/api/src/java/org/apache/avalon/framework/.Enum.java.swp b/api/src/java/org/apache/avalon/framework/.Enum.java.swp |
77 |
+deleted file mode 100644 |
78 |
+index 1eb30e7..0000000 |
79 |
+Binary files a/api/src/java/org/apache/avalon/framework/.Enum.java.swp and /dev/null differ |
80 |
+diff --git a/api/src/java/org/apache/avalon/framework/Enum.java b/api/src/java/org/apache/avalon/framework/Enum.java |
81 |
+index 6ceba68..37c2aec 100644 |
82 |
+--- a/api/src/java/org/apache/avalon/framework/Enum.java |
83 |
++++ b/api/src/java/org/apache/avalon/framework/Enum.java |
84 |
+@@ -126,11 +126,11 @@ public abstract class Enum |
85 |
+ if( !(o instanceof Enum) ) |
86 |
+ return false; |
87 |
+ |
88 |
+- final Enum enum = (Enum)o; |
89 |
++ final Enum enum_ = (Enum)o; |
90 |
+ |
91 |
+- if( !getClass().equals( enum.getClass() ) ) |
92 |
++ if( !getClass().equals( enum_.getClass() ) ) |
93 |
+ return false; |
94 |
+- if( m_name != null ? !m_name.equals( enum.m_name ) : enum.m_name != null ) |
95 |
++ if( m_name != null ? !m_name.equals( enum_.m_name ) : enum_.m_name != null ) |
96 |
+ return false; |
97 |
+ |
98 |
+ return true; |