From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 44B9F15808B for ; Thu, 17 Feb 2022 08:47:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46D34E0903; Thu, 17 Feb 2022 08:47:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 32F2BE0903 for ; Thu, 17 Feb 2022 08:47:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 77690343119 for ; Thu, 17 Feb 2022 08:47:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CE7742D3 for ; Thu, 17 Feb 2022 08:47:45 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1645087226.1b3542498d54254fd5435dd102f67d8d2557d267.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/avalon-framework/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/avalon-framework/avalon-framework-4.2.0-r4.ebuild X-VCS-Directories: dev-java/avalon-framework/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 1b3542498d54254fd5435dd102f67d8d2557d267 X-VCS-Branch: master Date: Thu, 17 Feb 2022 08:47:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 14cc205d-4fd5-401c-8b34-c5b2326a01fd X-Archives-Hash: 7af01a3d4505b8a75b91355416bfbd20 commit: 1b3542498d54254fd5435dd102f67d8d2557d267 Author: Yuan Liao gmail com> AuthorDate: Tue Feb 8 19:56:01 2022 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Thu Feb 17 08:40:26 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b354249 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 gmail.com> Closes: https://github.com/gentoo/gentoo/pull/24134 Signed-off-by: Miroslav Šulc gentoo.org> .../avalon-framework-4.2.0-r4.ebuild | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) 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 +}