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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 56C111382C5 for ; Sun, 4 Apr 2021 21:49:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96FD7E0824; Sun, 4 Apr 2021 21:49:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7E95FE0824 for ; Sun, 4 Apr 2021 21:49:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0D8ED33BF51 for ; Sun, 4 Apr 2021 21:49:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 694DF4EE for ; Sun, 4 Apr 2021 21:49:40 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1617572970.7ef47ba2da5f2e99b3f4ced0266342338a6d8fd3.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-collections/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/commons-collections/commons-collections-4.1-r1.ebuild X-VCS-Directories: dev-java/commons-collections/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 7ef47ba2da5f2e99b3f4ced0266342338a6d8fd3 X-VCS-Branch: master Date: Sun, 4 Apr 2021 21:49:40 +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: 9ee1826b-4c85-464e-9431-9c89fce6ea59 X-Archives-Hash: a1d5c66c3ac99729660a16922134fe74 commit: 7ef47ba2da5f2e99b3f4ced0266342338a6d8fd3 Author: Patrice Clement gentoo org> AuthorDate: Sun Apr 4 20:05:42 2021 +0000 Commit: Patrice Clement gentoo org> CommitDate: Sun Apr 4 21:49:30 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ef47ba2 dev-java/commons-collections: 4.1 -> EAPI 7 bump. Closes: https://bugs.gentoo.org/779490 Signed-off-by: Patrice Clement gentoo.org> .../commons-collections-4.1-r1.ebuild | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/dev-java/commons-collections/commons-collections-4.1-r1.ebuild b/dev-java/commons-collections/commons-collections-4.1-r1.ebuild new file mode 100644 index 00000000000..b2156aa863c --- /dev/null +++ b/dev-java/commons-collections/commons-collections-4.1-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +SLOT="4" +MY_P="${PN}${SLOT}-${PV}" + +DESCRIPTION="Extends the JCF classes with new interfaces, implementations and utilities" +HOMEPAGE="https://commons.apache.org/collections/" +SRC_URI="mirror://apache/${PN/-//}/source/${MY_P}-src.tar.gz" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~ppc64 x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + >=virtual/jdk-1.8 + test? ( + dev-java/easymock:3.2 + dev-java/junit:4 + )" + +RDEPEND=" + >=virtual/jre-1.8" + +S="${WORKDIR}/${MY_P}-src" + +JAVA_SRC_DIR="src/main/java" + +src_install() { + java-pkg-simple_src_install + dodoc RELEASE-NOTES.txt + docinto html + dodoc {DEVELOPERS-GUIDE,PROPOSAL}.html +} + +src_test() { + local DIR=src/test/java + local CP="${DIR}:${DIR}/../resources:${PN}.jar:$(java-pkg_getjars easymock-3.2,junit-4)" + local TESTS=$(find ${DIR} -name "*Test.java" ! -name "Abstract*" ! -name "BulkTest.*") + TESTS="${TESTS//src\/test\/java\/}" + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d ${DIR} $(find ${DIR} -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +}