1 |
commit: 0cf90df33d15d53cc0e926e2b1418e9234de8aff |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Sat Jan 29 17:20:08 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 30 08:59:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cf90df3 |
7 |
|
8 |
dev-java/ant-core: Remove obsolete |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/23996 |
13 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
14 |
|
15 |
dev-java/ant-core/ant-core-1.10.9-r1.ebuild | 161 ---------------------------- |
16 |
1 file changed, 161 deletions(-) |
17 |
|
18 |
diff --git a/dev-java/ant-core/ant-core-1.10.9-r1.ebuild b/dev-java/ant-core/ant-core-1.10.9-r1.ebuild |
19 |
deleted file mode 100644 |
20 |
index 9c38f6a612b8..000000000000 |
21 |
--- a/dev-java/ant-core/ant-core-1.10.9-r1.ebuild |
22 |
+++ /dev/null |
23 |
@@ -1,161 +0,0 @@ |
24 |
-# Copyright 1999-2022 Gentoo Authors |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
- |
27 |
-EAPI=8 |
28 |
- |
29 |
-# Don't depend on itself. |
30 |
-JAVA_ANT_DISABLE_ANT_CORE_DEP="true" |
31 |
- |
32 |
-# Rewriting build.xml files for the testcases has no use at the moment. |
33 |
-JAVA_PKG_BSFIX_ALL="no" |
34 |
-JAVA_PKG_IUSE="doc source" |
35 |
- |
36 |
-inherit java-pkg-2 java-ant-2 prefix |
37 |
- |
38 |
-MY_P="apache-ant-${PV}" |
39 |
- |
40 |
-DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files" |
41 |
-HOMEPAGE="https://ant.apache.org/" |
42 |
-SRC_URI="https://archive.apache.org/dist/ant/source/${MY_P}-src.tar.bz2 |
43 |
- https://dev.gentoo.org/~fordfrog/distfiles/ant-${PV}-gentoo.tar.bz2" |
44 |
- |
45 |
-LICENSE="Apache-2.0" |
46 |
-SLOT="0" |
47 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
48 |
- |
49 |
-# Some dependencies for building Javadoc are unavailable on these architectures |
50 |
-REQUIRED_USE="doc? ( !arm !arm64 )" |
51 |
- |
52 |
-CDEPEND=">=virtual/jdk-1.8:*" |
53 |
-DEPEND="${CDEPEND} |
54 |
- doc? ( !arm? ( !arm64? ( |
55 |
- dev-java/bcel:0 |
56 |
- dev-java/bsf:2.3 |
57 |
- dev-java/commons-logging:0 |
58 |
- dev-java/commons-net:0 |
59 |
- dev-java/jakarta-activation-api:1 |
60 |
- dev-java/jakarta-regexp:1.4 |
61 |
- dev-java/jakarta-oro:2.0 |
62 |
- dev-java/jdepend:0 |
63 |
- dev-java/jsch:0 |
64 |
- dev-java/log4j:0 |
65 |
- dev-java/oracle-javamail:0 |
66 |
- dev-java/sun-jai-bin:0 |
67 |
- dev-java/xalan:0 |
68 |
- dev-java/xml-commons-resolver:0 |
69 |
- dev-java/xz-java:0 |
70 |
- ) ) )" |
71 |
-RDEPEND="${CDEPEND}" |
72 |
- |
73 |
-S="${WORKDIR}/${MY_P}" |
74 |
- |
75 |
-RESTRICT="test" |
76 |
- |
77 |
-PATCHES=( |
78 |
- "${WORKDIR}/${PV}-build.patch" |
79 |
- "${WORKDIR}/${PV}-launch.patch" |
80 |
-) |
81 |
- |
82 |
-src_prepare() { |
83 |
- default |
84 |
- |
85 |
- eprefixify "${S}/src/script/ant" |
86 |
- |
87 |
- # Fixes bug 556008. |
88 |
- java-ant_xml-rewrite -f build.xml \ |
89 |
- -c -e javadoc \ |
90 |
- -a failonerror \ |
91 |
- -v "false" |
92 |
- |
93 |
- # See bug #196080 for more details. |
94 |
- java-ant_bsfix_one build.xml |
95 |
- java-pkg-2_src_prepare |
96 |
- |
97 |
- # Remove JDK9+ stuff |
98 |
- einfo "Removing JDK9+ classes (Jmod and Link)" |
99 |
- rm "${S}"/src/main/org/apache/tools/ant/taskdefs/modules/{Jmod,Link}.java |
100 |
-} |
101 |
- |
102 |
-src_compile() { |
103 |
- export ANT_HOME="" |
104 |
- # Avoid error message that package ant-core was not found |
105 |
- export ANT_TASKS="none" |
106 |
- |
107 |
- local bsyscp |
108 |
- |
109 |
- # This ensures that when building ant with bootstrapped ant, |
110 |
- # only the source is used for resolving references, and not |
111 |
- # the classes in bootstrapped ant but jikes in kaffe has issues with this... |
112 |
- if ! java-pkg_current-vm-matches kaffe; then |
113 |
- bsyscp="-Dbuild.sysclasspath=ignore" |
114 |
- fi |
115 |
- |
116 |
- CLASSPATH="$(java-config -t)" ./build.sh ${bsyscp} jars dist-internal || |
117 |
- die "build failed" |
118 |
- |
119 |
- if use doc; then |
120 |
- # All Java packages imported by the source files need to present in |
121 |
- # the classpath, otherwise it would be https://bugs.gentoo.org/780531 |
122 |
- local doc_deps=( |
123 |
- bcel |
124 |
- bsf-2.3 |
125 |
- commons-logging |
126 |
- commons-net |
127 |
- jakarta-activation-api-1 |
128 |
- jakarta-oro-2.0 |
129 |
- jakarta-regexp-1.4 |
130 |
- jdepend |
131 |
- jsch |
132 |
- log4j |
133 |
- oracle-javamail |
134 |
- sun-jai-bin |
135 |
- xalan |
136 |
- xml-commons-resolver |
137 |
- xz-java |
138 |
- ) |
139 |
- for dep in "${doc_deps[@]}"; do |
140 |
- java-pkg_jar-from --build-only --into lib/optional/ "${dep}" |
141 |
- done |
142 |
- # This file imports netrexx.lang.Rexx, which is not available |
143 |
- # from ::gentoo. Fortunately, there is not a dev-java/ant-* |
144 |
- # package for it, so even if we could generate documentation |
145 |
- # for it, it would be irrelevant |
146 |
- rm src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java || |
147 |
- die "Failed to remove Java source file blocking Javadoc generation" |
148 |
- ./build.sh ${bsyscp} javadocs || die "Javadoc build failed" |
149 |
- fi |
150 |
-} |
151 |
- |
152 |
-src_install() { |
153 |
- dodir /usr/share/ant/lib |
154 |
- |
155 |
- for jar in ant.jar ant-bootstrap.jar ant-launcher.jar ; do |
156 |
- java-pkg_dojar build/lib/${jar} |
157 |
- dosym ../../${PN}/lib/${jar} /usr/share/ant/lib/${jar} |
158 |
- done |
159 |
- |
160 |
- dobin src/script/ant |
161 |
- |
162 |
- dodir /usr/share/${PN}/bin |
163 |
- for each in antRun antRun.pl runant.pl runant.py ; do |
164 |
- dobin "${S}/src/script/${each}" |
165 |
- dosym ../../../bin/${each} /usr/share/${PN}/bin/${each} |
166 |
- done |
167 |
- dosym ../${PN}/bin /usr/share/ant/bin |
168 |
- |
169 |
- insinto /usr/share/${PN} |
170 |
- doins -r dist/etc |
171 |
- dosym ../${PN}/etc /usr/share/ant/etc |
172 |
- |
173 |
- echo "ANT_HOME=\"${EPREFIX}/usr/share/ant\"" > "${T}/20ant" |
174 |
- doenvd "${T}/20ant" |
175 |
- |
176 |
- dodoc NOTICE README WHATSNEW KEYS |
177 |
- |
178 |
- if use doc; then |
179 |
- dodoc -r manual/* |
180 |
- java-pkg_dojavadoc --symlink manual/api build/javadocs |
181 |
- fi |
182 |
- |
183 |
- use source && java-pkg_dosrc src/main/* |
184 |
-} |