diff options
author | Yuan Liao <liaoyuan@gmail.com> | 2022-02-08 11:56:01 -0800 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-02-17 09:40:26 +0100 |
commit | 1b3542498d54254fd5435dd102f67d8d2557d267 (patch) | |
tree | ff646e60dd6fde2a9f61c1d6a4f190108ac5adc9 /dev-java | |
parent | dev-java/avalon-logkit: Switch to log4j-12-api:2 (diff) | |
download | gentoo-1b3542498d54254fd5435dd102f67d8d2557d267.tar.gz gentoo-1b3542498d54254fd5435dd102f67d8d2557d267.tar.bz2 gentoo-1b3542498d54254fd5435dd102f67d8d2557d267.zip |
dev-java/avalon-framework: Switch to log4j-12-api:2 and java-pkg-simple
Switch to java-pkg-simple.eclass because the previous revision of this
package uses a Gentoo custom build.xml, which is the deprecated approach
of making Java packages with no/unsupported build system. Tests can
also be enabled easily thanks to the switch.
Closes: https://bugs.gentoo.org/831717
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24134
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/avalon-framework/avalon-framework-4.2.0-r4.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-java/avalon-framework/avalon-framework-4.2.0-r4.ebuild b/dev-java/avalon-framework/avalon-framework-4.2.0-r4.ebuild new file mode 100644 index 000000000000..27fbd1ae42ef --- /dev/null +++ b/dev-java/avalon-framework/avalon-framework-4.2.0-r4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +# The tests themselves are JUnit 3 tests, but using +# junit-4 here causes 61 additional tests to be run +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Avalon Framework" +HOMEPAGE="https://avalon.apache.org/" +SRC_URI="mirror://apache/avalon/avalon-framework/source/${P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="4.2" +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" + +CP_DEPEND=" + dev-java/avalon-logkit:2.0 + dev-java/log4j-12-api:2 +" + +DEPEND=" + >=virtual/jdk-1.8:* + ${CP_DEPEND} + test? ( + dev-java/junit:0 + ) +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND} +" + +S="${WORKDIR}/${PN}" + +PATCHES=( "${FILESDIR}/4.2.0-enum.patch" ) +DOCS=( NOTICE.TXT ) + +JAVA_SRC_DIR=( {api,impl}/src/java ) + +JAVA_TEST_GENTOO_CLASSPATH="junit" +JAVA_TEST_SRC_DIR=( {api,impl}/src/test ) + +src_prepare() { + default # https://bugs.gentoo.org/780585 +} + +src_install() { + java-pkg-simple_src_install + einstalldocs # https://bugs.gentoo.org/789582 +} |