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