diff options
Diffstat (limited to 'dev-java/logback-core')
-rw-r--r-- | dev-java/logback-core/Manifest | 3 | ||||
-rw-r--r-- | dev-java/logback-core/logback-core-1.2.11.ebuild | 107 | ||||
-rw-r--r-- | dev-java/logback-core/metadata.xml | 12 |
3 files changed, 122 insertions, 0 deletions
diff --git a/dev-java/logback-core/Manifest b/dev-java/logback-core/Manifest new file mode 100644 index 000000000000..4d3f1429e7d9 --- /dev/null +++ b/dev-java/logback-core/Manifest @@ -0,0 +1,3 @@ +DIST logback-1.2.11.tar.gz 4133000 BLAKE2B 09ef74fb92c5a3f10a9ed401b0cc687f9dbc05daf17646f96fa216aefef1a150434b7ba4ca25b6ed751c01dab906c56be5c65908ca9baf6e29cc1a9f55e14773 SHA512 2482f7af5696034e9b412fb3d37be7f0bc7c8a2549808f88b0ae693c0be4f95c41acd82649f76a4572ea5c0bb9f8d7a78b9a64d7af6dd76a0b1b926d7419c084 +EBUILD logback-core-1.2.11.ebuild 3116 BLAKE2B 029c555827492da6f91ae7635f3b0328855574fd86f819098c3fce75766fbc6dd376f2b3462714816acfdddf91ad97c45f463384e84cda3e2a1ac9e1afcbd7e7 SHA512 2c403ae7ad23f7c249ff91893fff4045ede86a2fc02abc26f53cbf9f0a95788e5689f54fa2007ea2e7038da72be8d8cf4985bac05b64688efc69679ad35c6c7a +MISC metadata.xml 413 BLAKE2B 3ae8c9f27dadfe978d070866e0c0368b89b8532f2aa6fbd3e3fab9e057320e1c6b5c2bc7367cc191e189acaa88384a0b86741d674d1cd711d4dd5ee8a29c9662 SHA512 7c2739ff8e878766487804fabcb39cda969c81e47af7fd51ffebfcb85dbdec10b7eef85b1d9c873561456e1592f6cdb8f82fbb4233abee1f43f323a1c10f9ba2 diff --git a/dev-java/logback-core/logback-core-1.2.11.ebuild b/dev-java/logback-core/logback-core-1.2.11.ebuild new file mode 100644 index 000000000000..82dafb0fa274 --- /dev/null +++ b/dev-java/logback-core/logback-core-1.2.11.ebuild @@ -0,0 +1,107 @@ +# 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/logback/archive/v_1.2.11.tar.gz --slot 0 --keywords "~amd64" --ebuild logback-core-1.2.11.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="ch.qos.logback:logback-core:1.2.11" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="logback-core module" +HOMEPAGE="https://logback.qos.ch" +SRC_URI="https://github.com/qos-ch/logback/archive/v_${PV}.tar.gz -> logback-${PV}.tar.gz" + +LICENSE="EPL-1.0 LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64" + +# Common dependencies +# POM: pom.xml +# javax.mail:mail:1.4 -> !!!groupId-not-found!!! +# javax.servlet:javax.servlet-api:3.1.0 -> !!!groupId-not-found!!! +# org.codehaus.janino:janino:3.0.6 -> >=dev-java/janino-3.1.6:0 +# org.fusesource.jansi:jansi:1.9 -> >=dev-java/jansi-1.13:0 + +CP_DEPEND=" + dev-java/javax-mail:0 + dev-java/janino:0 + dev-java/jansi:0 + java-virtuals/servlet-api:3.1 +" + +# Compile dependencies +# POM: pom.xml +# test? joda-time:joda-time:2.9.2 -> >=dev-java/joda-time-2.10.10:0 +# test? junit:junit:4.10 -> >=dev-java/junit-4.13.2:4 +# test? org.assertj:assertj-core:1.7.1 -> >=dev-java/assertj-core-2.3.0:2 +# test? org.mockito:mockito-core:2.7.9 -> >=dev-java/mockito-4.4.0:4 + +DEPEND=" + >=virtual/jdk-1.8:* + ${CP_DEPEND} + test? ( + dev-java/assertj-core:2 + dev-java/joda-time:0 + dev-java/mockito:4 + ) +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND}" + +DOCS=( ../README.md ) + +S="${WORKDIR}/logback-v_${PV}/logback-core" + +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH="joda-time,junit-4,assertj-core-2,mockito-4" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +src_prepare() { + default + sed \ + -e 's:org.mockito.Matchers:org.mockito.ArgumentMatchers:' \ + -i 'src/test/java/ch/qos/logback/core/net/AbstractSocketAppenderIntegrationTest.java' || die +} + +src_test() { + # 67,73 logback-core/pom.xml + # <excludes> + # <exclude>**/All*Test.java</exclude> + # <exclude>**/PackageTest.java</exclude> + # <!-- ConsoleAppenderTest redirects System.out which is not well tolerated by Maven --> + # <exclude>**/ConsoleAppenderTest.java</exclude> + # <!--<exclude>**/TimeBasedRollingTest.java</exclude>--> + # </excludes> + pushd src/test/java || die + local JAVA_TEST_RUN_ONLY=$(find * \ + -name "*Test.java" \ + ! -name "**/All*Test.java" \ + ! -name "**/PackageTest.java" \ + ! -name "AbstractAppenderTest.java" \ + ! -name "AbstractPatternLayoutBaseTest.java" \ + ) + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" + popd + + # accessible: module java.base does not "opens java.lang" to unnamed module @42bb2aee + local vm_version="$(java-config -g PROVIDES_VERSION)" + if [[ "${vm_version}" -ge "17" ]] ; then + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.lang=ALL-UNNAMED ) + fi + java-pkg-simple_src_test +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} diff --git a/dev-java/logback-core/metadata.xml b/dev-java/logback-core/metadata.xml new file mode 100644 index 000000000000..36093b7d6d6d --- /dev/null +++ b/dev-java/logback-core/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + </maintainer> + <upstream> + <bugs-to>https://logback.qos.ch/bugreport.html</bugs-to> + <changelog>https://logback.qos.ch/news.html</changelog> + <remote-id type="github">qos-ch/logback</remote-id> + </upstream> +</pkgmetadata> |