Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 733957 Details for
Bug 767136
dev-java/ant-core-1.10.9: Is it possible to depend on either jdk 8 or jdk 11 ?
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
hacky ebuild to build on JDK 11 for amd64
ant-core-1.10.11.ebuild (text/plain), 2.58 KB, created by
onkobu
on 2021-08-18 19:40:49 UTC
(
hide
)
Description:
hacky ebuild to build on JDK 11 for amd64
Filename:
MIME Type:
Creator:
onkobu
Created:
2021-08-18 19:40:49 UTC
Size:
2.58 KB
patch
obsolete
># Copyright 1999-2021 Gentoo Authors ># Distributed under the terms of the GNU General Public License v2 > >EAPI=7 > ># Don't depend on itself. >JAVA_ANT_DISABLE_ANT_CORE_DEP="true" > ># Rewriting build.xml files for the testcases has no use at the moment. >JAVA_PKG_BSFIX_ALL="no" >JAVA_PKG_IUSE="doc source" > >inherit java-pkg-2 java-ant-2 prefix > >MY_P="apache-ant-${PV}" >OLD_PV="1.10.9" >DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files" >HOMEPAGE="https://ant.apache.org/" >SRC_URI="https://archive.apache.org/dist/ant/source/${MY_P}-src.tar.bz2 > https://dev.gentoo.org/~fordfrog/distfiles/ant-${OLD_PV}-gentoo.tar.bz2" > >LICENSE="Apache-2.0" >SLOT="0" >KEYWORDS="amd64" > >CDEPEND=">=virtual/jdk-11:*" >DEPEND="${CDEPEND}" >RDEPEND="${CDEPEND}" > >S="${WORKDIR}/${MY_P}" > >RESTRICT="test" > >PATCHES=( > "${WORKDIR}/${OLD_PV}-build.patch" > "${WORKDIR}/${OLD_PV}-launch.patch" >) > >src_prepare() { > default > > eprefixify "${S}/src/script/ant" > > # Fixes bug 556008. > java-ant_xml-rewrite -f build.xml \ > -c -e javadoc \ > -a failonerror \ > -v "false" > > # See bug #196080 for more details. > java-ant_bsfix_one build.xml > java-pkg-2_src_prepare > > # Remove JDK9+ stuff ># einfo "Removing JDK9+ classes (Jmod and Link)" ># rm "${S}"/src/main/org/apache/tools/ant/taskdefs/modules/{Jmod,Link}.java >} > >src_compile() { > export ANT_HOME="" > # Avoid error message that package ant-core was not found > export ANT_TASKS="none" > > local bsyscp > > # This ensures that when building ant with bootstrapped ant, > # only the source is used for resolving references, and not > # the classes in bootstrapped ant but jikes in kaffe has issues with this... > if ! java-pkg_current-vm-matches kaffe; then > bsyscp="-Dbuild.sysclasspath=ignore" > fi > > CLASSPATH="$(java-config -t)" ./build.sh ${bsyscp} jars dist-internal \ > $(use_doc javadocs) || die "build failed" >} > >src_install() { > dodir /usr/share/ant/lib > > for jar in ant.jar ant-bootstrap.jar ant-launcher.jar ; do > java-pkg_dojar build/lib/${jar} > dosym ../../${PN}/lib/${jar} /usr/share/ant/lib/${jar} > done > > dobin src/script/ant > > dodir /usr/share/${PN}/bin > for each in antRun antRun.pl runant.pl runant.py ; do > dobin "${S}/src/script/${each}" > dosym ../../../bin/${each} /usr/share/${PN}/bin/${each} > done > dosym ../${PN}/bin /usr/share/ant/bin > > insinto /usr/share/${PN} > doins -r dist/etc > dosym ../${PN}/etc /usr/share/ant/etc > > echo "ANT_HOME=\"${EPREFIX}/usr/share/ant\"" > "${T}/20ant" > doenvd "${T}/20ant" > > dodoc NOTICE README WHATSNEW KEYS > > if use doc; then > dodoc -r manual/* > java-pkg_dojavadoc --symlink manual/api build/javadocs > fi > > use source && java-pkg_dosrc src/main/* >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 767136
: 733957