1 |
commit: 1076fc86d3502d0f5d26fa95111aba9624de7615 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 1 18:04:07 2020 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 1 18:15:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1076fc86 |
7 |
|
8 |
dev-java/ant-core: bump to 1.10.9 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
dev-java/ant-core/Manifest | 2 + |
14 |
dev-java/ant-core/ant-core-1.10.9.ebuild | 109 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 111 insertions(+) |
16 |
|
17 |
diff --git a/dev-java/ant-core/Manifest b/dev-java/ant-core/Manifest |
18 |
index fbf293080e3..55cdb859de9 100644 |
19 |
--- a/dev-java/ant-core/Manifest |
20 |
+++ b/dev-java/ant-core/Manifest |
21 |
@@ -1,2 +1,4 @@ |
22 |
DIST ant-1.10.8-gentoo.tar.bz2 6674 BLAKE2B da52696eb20d74f6c3d36bd57c60927d9044b637ff9de175695d57596ae2e747db509cbde7ec862f9e99f2cee564803232e0edd0755f931dc070b150c4e38b21 SHA512 de14a55105888bc30921418c0e6ef5dac340d3d02bfab35ca7a62021505df94e71fc05eb864ffc276add5a2fce483338fe2cf02fcc04e693bb5b709c6b080490 |
23 |
+DIST ant-1.10.9-gentoo.tar.bz2 6685 BLAKE2B 2249c7e1628052a2a6896c6995e0c5dd14ea77671ab0ef4402ece9968f41266cdf4411cd669dbb73c4d7043d7c6c5f6e992bfc2705e74899ff1058f0d4942704 SHA512 aade4c5322c29d1b6b4f6b99b229a1a07ff64faed104bdbbff3a82bd482d9cab5596c019dac92eaf4cab875fa9e46e5067ba816f910c2d6c94890ab85c50605b |
24 |
DIST apache-ant-1.10.8-src.tar.bz2 4848256 BLAKE2B bd0668e5592c6d2e77233dcffbf2311f9b072f60e7a0c2d5b1a0a6567fc015e1fda46caf1c6c2a3a6730df561f87a8477e0df54a12eeab866cd8d4cb8b2d1f7e SHA512 15563c339298dc576ffb0fb59858bed5f6deabb519ad3f5237e465e6dffd5307bb86fc120f7d7893332936b9f767c47e522cdd1da809b599ceec0070dcb20338 |
25 |
+DIST apache-ant-1.10.9-src.tar.bz2 4593589 BLAKE2B afb73e592dbd4e0082f5890005ce70264ab9c59f1359a91cc83abcfb03938d98ed9d1eb797c9f72bd3d017a41c19635a6246e5b46ddcab660749a2530db1baaa SHA512 7a6c96131462dc0e1bcf41e2daa1b129a45d19302f4ee2915bb51c4cf347996fa5f8140f96653b21952decee16816476b8f258f8ad2c094a8305209cebcee4a4 |
26 |
|
27 |
diff --git a/dev-java/ant-core/ant-core-1.10.9.ebuild b/dev-java/ant-core/ant-core-1.10.9.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..b7a55bbe663 |
30 |
--- /dev/null |
31 |
+++ b/dev-java/ant-core/ant-core-1.10.9.ebuild |
32 |
@@ -0,0 +1,109 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+# Don't depend on itself. |
39 |
+JAVA_ANT_DISABLE_ANT_CORE_DEP="true" |
40 |
+ |
41 |
+# Rewriting build.xml files for the testcases has no use at the moment. |
42 |
+JAVA_PKG_BSFIX_ALL="no" |
43 |
+JAVA_PKG_IUSE="doc source" |
44 |
+ |
45 |
+inherit eutils java-pkg-2 java-ant-2 prefix |
46 |
+ |
47 |
+MY_P="apache-ant-${PV}" |
48 |
+ |
49 |
+DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files" |
50 |
+HOMEPAGE="https://ant.apache.org/" |
51 |
+SRC_URI="https://archive.apache.org/dist/ant/source/${MY_P}-src.tar.bz2 |
52 |
+ https://dev.gentoo.org/~fordfrog/distfiles/ant-${PV}-gentoo.tar.bz2" |
53 |
+ |
54 |
+LICENSE="Apache-2.0" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
57 |
+ |
58 |
+CDEPEND=">=virtual/jdk-1.8:*" |
59 |
+DEPEND="${CDEPEND}" |
60 |
+RDEPEND="${CDEPEND}" |
61 |
+ |
62 |
+S="${WORKDIR}/${MY_P}" |
63 |
+ |
64 |
+RESTRICT="test" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${WORKDIR}/${PV}-build.patch" |
68 |
+ "${WORKDIR}/${PV}-launch.patch" |
69 |
+) |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ |
74 |
+ eprefixify "${S}/src/script/ant" |
75 |
+ |
76 |
+ # Fixes bug 556008. |
77 |
+ java-ant_xml-rewrite -f build.xml \ |
78 |
+ -c -e javadoc \ |
79 |
+ -a failonerror \ |
80 |
+ -v "false" |
81 |
+ |
82 |
+ # See bug #196080 for more details. |
83 |
+ java-ant_bsfix_one build.xml |
84 |
+ java-pkg-2_src_prepare |
85 |
+ |
86 |
+ # Remove JDK9+ stuff |
87 |
+ einfo "Removing JDK9+ classes (Jmod and Link)" |
88 |
+ rm "${S}"/src/main/org/apache/tools/ant/taskdefs/modules/{Jmod,Link}.java |
89 |
+} |
90 |
+ |
91 |
+src_compile() { |
92 |
+ export ANT_HOME="" |
93 |
+ # Avoid error message that package ant-core was not found |
94 |
+ export ANT_TASKS="none" |
95 |
+ |
96 |
+ local bsyscp |
97 |
+ |
98 |
+ # This ensures that when building ant with bootstrapped ant, |
99 |
+ # only the source is used for resolving references, and not |
100 |
+ # the classes in bootstrapped ant but jikes in kaffe has issues with this... |
101 |
+ if ! java-pkg_current-vm-matches kaffe; then |
102 |
+ bsyscp="-Dbuild.sysclasspath=ignore" |
103 |
+ fi |
104 |
+ |
105 |
+ CLASSPATH="$(java-config -t)" ./build.sh ${bsyscp} jars dist-internal \ |
106 |
+ $(use_doc javadocs) || die "build failed" |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ dodir /usr/share/ant/lib |
111 |
+ |
112 |
+ for jar in ant.jar ant-bootstrap.jar ant-launcher.jar ; do |
113 |
+ java-pkg_dojar build/lib/${jar} |
114 |
+ dosym ../../${PN}/lib/${jar} /usr/share/ant/lib/${jar} |
115 |
+ done |
116 |
+ |
117 |
+ dobin src/script/ant |
118 |
+ |
119 |
+ dodir /usr/share/${PN}/bin |
120 |
+ for each in antRun antRun.pl runant.pl runant.py ; do |
121 |
+ dobin "${S}/src/script/${each}" |
122 |
+ dosym ../../../bin/${each} /usr/share/${PN}/bin/${each} |
123 |
+ done |
124 |
+ dosym ../${PN}/bin /usr/share/ant/bin |
125 |
+ |
126 |
+ insinto /usr/share/${PN} |
127 |
+ doins -r dist/etc |
128 |
+ dosym ../${PN}/etc /usr/share/ant/etc |
129 |
+ |
130 |
+ echo "ANT_HOME=\"${EPREFIX}/usr/share/ant\"" > "${T}/20ant" |
131 |
+ doenvd "${T}/20ant" |
132 |
+ |
133 |
+ dodoc NOTICE README WHATSNEW KEYS |
134 |
+ |
135 |
+ if use doc; then |
136 |
+ dodoc -r manual/* |
137 |
+ java-pkg_dojavadoc --symlink manual/api build/javadocs |
138 |
+ fi |
139 |
+ |
140 |
+ use source && java-pkg_dosrc src/main/* |
141 |
+} |