commit: e7a9aaf8a2d19bf5a60dedc419982eade2562ac8 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> AuthorDate: Wed Sep 7 14:43:18 2022 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Mon Oct 10 07:41:46 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7a9aaf8
dev-java/reload4j: new package, add 1.2.22 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> dev-java/reload4j/Manifest | 1 + dev-java/reload4j/metadata.xml | 7 ++ dev-java/reload4j/reload4j-1.2.22.ebuild | 113 +++++++++++++++++++++++++++++++ 3 files changed, 121 insertions(+) diff --git a/dev-java/reload4j/Manifest b/dev-java/reload4j/Manifest new file mode 100644 index 000000000000..20e9649701b7 --- /dev/null +++ b/dev-java/reload4j/Manifest @@ -0,0 +1 @@ +DIST reload4j-1.2.22.tar.gz 574985 BLAKE2B f3dc5c360665de8eacf49ab34e684becbe80882db3675045a2bd971f03c32352a958e0ca4d5b5c92d18835320409832dcc14fc49c6f67eef487dfb9ee2ff4dfe SHA512 542e935cf55c0008a2d49c20e8a30f072090999168f5bcc056e67e306e2ddf87bf864fbb1fe9c3e03f436e8dcc6a0f22135f82d9a33706282bd9f3caace0f1f5 diff --git a/dev-java/reload4j/metadata.xml b/dev-java/reload4j/metadata.xml new file mode 100644 index 000000000000..75321cfb5598 --- /dev/null +++ b/dev-java/reload4j/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>j...@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-java/reload4j/reload4j-1.2.22.ebuild b/dev-java/reload4j/reload4j-1.2.22.ebuild new file mode 100644 index 000000000000..95cb44cfc007 --- /dev/null +++ b/dev-java/reload4j/reload4j-1.2.22.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/qos-ch/reload4j/archive/v_1.2.22.tar.gz --slot 0 --keywords "~amd64" --ebuild reload4j-1.2.22..ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="ch.qos.reload4j:reload4j:1.2.22" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Reload4j revives EOLed log4j 1.x" +HOMEPAGE="https://reload4j.qos.ch" +SRC_URI="https://github.com/qos-ch/reload4j/archive/v_${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +# There are unresolved test failures +RESTRICT="test" + +# Common dependencies +# POM: pom.xml +# javax.mail:mail:1.4.7 -> !!!groupId-not-found!!! +# org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.0 -> !!!groupId-not-found!!! + +CP_DEPEND=" + dev-java/javax-mail:0 + dev-java/jboss-jms-api:1.1 +" + +# Compile dependencies +# POM: pom.xml +# test? com.h2database:h2:2.1.210 -> !!!groupId-not-found!!! +# test? junit:junit:4.13.1 -> >=dev-java/junit-4.13.2:4 + +DEPEND=" + >=virtual/jdk-1.8:* + ${CP_DEPEND}" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND}" + +DOCS=( NOTICE {README,SECURITY}.md ) + +S="${WORKDIR}/reload4j-v_${PV}" + +JAVA_SRC_DIR="src/main/java" +JAVA_RESOURCE_DIRS="src/main/resources" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +JAVA_TEST_EXCLUDES=( + #java.sql.SQLException: No suitable driver found for jdbc:h2:mem:test_db + # com.h2database:h2 is not packaged + org.apache.log4j.jdbc.JdbcAppenderTest + # No runnable methods + org.apache.log4j.TestConstants + + # following tests prefer to fail if not run separately: + org.apache.log4j.MinimumTestCase + org.apache.log4j.net.SMTPAppenderTest + org.apache.log4j.net.SocketAppenderTest + org.apache.log4j.net.SocketServerTestCase + org.apache.log4j.net.SyslogAppenderTest + org.apache.log4j.net.TelnetAppenderTest + org.apache.log4j.varia.ERFATestCase + org.apache.log4j.varia.ErrorHandlerTestCase + org.apache.log4j.xml.CustomLevelTestCase + org.apache.log4j.xml.DOMTestCase +) + +src_test() { + einfo "Running tests" + java-pkg-simple_src_test + + JAVA_TEST_RUN_ONLY="org.apache.log4j.MinimumTestCase" + java-pkg-simple_src_test + + JAVA_TEST_RUN_ONLY="org.apache.log4j.net.SMTPAppenderTest" + java-pkg-simple_src_test + + JAVA_TEST_RUN_ONLY="org.apache.log4j.net.SocketAppenderTest" + java-pkg-simple_src_test + + JAVA_TEST_RUN_ONLY="org.apache.log4j.net.SocketServerTestCase" + java-pkg-simple_src_test + + JAVA_TEST_RUN_ONLY="org.apache.log4j.net.SyslogAppenderTest" + java-pkg-simple_src_test + + JAVA_TEST_RUN_ONLY="org.apache.log4j.net.TelnetAppenderTest" + java-pkg-simple_src_test + + JAVA_TEST_RUN_ONLY="org.apache.log4j.varia.ERFATestCase" + java-pkg-simple_src_test + + JAVA_TEST_RUN_ONLY="org.apache.log4j.varia.ErrorHandlerTestCase" + java-pkg-simple_src_test + + JAVA_TEST_RUN_ONLY="org.apache.log4j.xml.CustomLevelTestCase" + java-pkg-simple_src_test + + JAVA_TEST_RUN_ONLY="org.apache.log4j.xml.DOMTestCase" + java-pkg-simple_src_test +}