diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-27 20:10:49 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-27 20:10:49 +0000 |
commit | e44b9cf3e5b67eaf723e4a335faf39c87167abd3 (patch) | |
tree | 3e6660b30910e7eb33586a99c4e892b52380bad6 /dev-java | |
parent | 4429be000a778f363162554d59d903a725283d7d (diff) |
gentoo auto-resync : 27:12:2022 - 20:10:49
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/Manifest.gz | bin | 56479 -> 56483 bytes | |||
-rw-r--r-- | dev-java/log4j-12-api/Manifest | 2 | ||||
-rw-r--r-- | dev-java/log4j-12-api/log4j-12-api-2.19.0.ebuild | 88 | ||||
-rw-r--r-- | dev-java/log4j-api/Manifest | 3 | ||||
-rw-r--r-- | dev-java/log4j-api/log4j-api-2.19.0.ebuild | 76 | ||||
-rw-r--r-- | dev-java/log4j-core/Manifest | 2 | ||||
-rw-r--r-- | dev-java/log4j-core/log4j-core-2.19.0.ebuild | 179 |
7 files changed, 350 insertions, 0 deletions
diff --git a/dev-java/Manifest.gz b/dev-java/Manifest.gz Binary files differindex 3afdb4c69997..ca1cfee5ac51 100644 --- a/dev-java/Manifest.gz +++ b/dev-java/Manifest.gz diff --git a/dev-java/log4j-12-api/Manifest b/dev-java/log4j-12-api/Manifest index 4ad0681e5999..66e5014ba015 100644 --- a/dev-java/log4j-12-api/Manifest +++ b/dev-java/log4j-12-api/Manifest @@ -1,3 +1,5 @@ DIST apache-log4j-2.18.0-src.tar.gz 11748446 BLAKE2B c11a5c7cb5be77fd27504b93962c5493f92475e759a575c5536b674a7e8116d4f9840bd2eb3e95156c257ff046f0e3ec437960b0f5ca01f2ddceb509c49aac1f SHA512 104eb8dbd35d3166a0d49190b2e3fdf981b864d21ed47d84f16acd417b943a41fbafa445b2c38ae8cdc494da6af8746ecc3a0db4795f45ce427344659cffae7b +DIST apache-log4j-2.19.0-src.tar.gz 11764795 BLAKE2B 02ec7c5c825cabe9994a2f50d6761110f87a19ff46874c00d46986da7338c32148f3b6c3551c95721aaf94b71d1d5ce8bcea32462e11fa3fe0c3cbbc0cf5f887 SHA512 c72859c415e701921497bb4f02047fa022083f66b4d21b1dbae28361bd73498b2eae335b9a1ac2d7f796df734a6d54db2701ae5ebf999197597e9e2ad064c271 EBUILD log4j-12-api-2.18.0.ebuild 3316 BLAKE2B c675a6ad27275209484176ecdf25761ced841c600121f1175cd78f8c0649899df8e8de64e40863d69853289a47f51e3296ae455cbd0014dcd7d0bec7b3029e57 SHA512 f4f0bfe344ce508b2e3ebade246bbff3122f5701949e6e0fd11557cbe531c52ba6b688eeb3103f8838a69769a499c9b279a53bad2b857c794ca8a9013b3186c8 +EBUILD log4j-12-api-2.19.0.ebuild 3522 BLAKE2B 19089e0102081b91862693b5264485cabe7108c9db8b21e63f7b9f9f4d6bfc33c70e4224350b75f2a1987708a451cecf790b9ef06b7f6d6a9feef263089c7e84 SHA512 aa206074ce5205834100939727ab516daf2e036f3f5674843ee6d46449d95535bff584cdb6ced14badfedc8a579116084381d61d0fd8fbe594e0d3f48df641d7 MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6 diff --git a/dev-java/log4j-12-api/log4j-12-api-2.19.0.ebuild b/dev-java/log4j-12-api/log4j-12-api-2.19.0.ebuild new file mode 100644 index 000000000000..a4ef4006cd13 --- /dev/null +++ b/dev-java/log4j-12-api/log4j-12-api-2.19.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom log4j-1.2-api/pom.xml --download-uri mirror://apache/logging/log4j/2.19.0/apache-log4j-2.19.0-src.tar.gz --slot 2 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild log4j-12-api-2.19.0.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.logging.log4j:log4j-1.2-api:2.19.0" +JAVA_TESTING_FRAMEWORKS="junit-vintage junit-jupiter" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="The Apache Log4j 1.x Compatibility API" +HOMEPAGE="https://logging.apache.org/log4j/2.x/" +SRC_URI="mirror://apache/logging/log4j/${PV}/apache-log4j-${PV}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +# We don't have junit-vintage and junit-jupiter +RESTRICT="test" + +# Common dependencies +# POM: log4j-1.2-api/pom.xml +# org.apache.logging.log4j:log4j-api:2.19.0 -> >=dev-java/log4j-api-2.19.0:2 +# org.apache.logging.log4j:log4j-core:2.19.0 -> >=dev-java/log4j-core-2.19.0:2 + +CP_DEPEND=" + ~dev-java/log4j-api-${PV}:2 + ~dev-java/log4j-core-${PV}:2 +" + +# Compile dependencies +# POM: log4j-1.2-api/pom.xml +# javax.jms:javax.jms-api:2.0.1 -> !!!groupId-not-found!!! +# POM: log4j-1.2-api/pom.xml +# test? com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.4 -> >=dev-java/jackson-dataformat-xml-2.13.4:0 +# test? commons-io:commons-io:2.11.0 -> >=dev-java/commons-io-2.11.0:1 +# test? org.apache.commons:commons-lang3:3.12.0 -> >=dev-java/commons-lang-3.12.0:3.6 +# test? org.apache.felix:org.apache.felix.framework:7.0.5 -> >=dev-java/felix-framework-7.0.5:0 +# test? org.apache.logging.log4j:log4j-api:2.19.0 -> >=dev-java/log4j-api-2.19.0:2 +# test? org.apache.logging.log4j:log4j-core:2.19.0 -> >=dev-java/log4j-core-2.19.0:2 +# test? org.apache.velocity:velocity:1.7 -> !!!artifactId-not-found!!! +# test? org.eclipse.tycho:org.eclipse.osgi:3.13.0.v20180226-1711 -> !!!groupId-not-found!!! +# test? org.junit.jupiter:junit-jupiter-engine:5.9.0 -> !!!groupId-not-found!!! +# test? org.junit.jupiter:junit-jupiter-params:5.9.0 -> !!!groupId-not-found!!! +# test? org.junit.vintage:junit-vintage-engine:5.9.0 -> !!!groupId-not-found!!! +# test? org.mockito:mockito-core:4.4.0 -> >=dev-java/mockito-4.6.1:4 +# test? oro:oro:2.0.8 -> >=dev-java/jakarta-oro-2.0.8:2.0 + +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:* + dev-java/javax-jms-api:0" +# test? ( +# !!!artifactId-not-found!!! +# !!!groupId-not-found!!! +# >=dev-java/commons-io-2.11.0:1 +# >=dev-java/commons-lang-3.12.0:3.6 +# >=dev-java/felix-framework-7.0.5:0 +# >=dev-java/jackson-dataformat-xml-2.13.4:0 +# >=dev-java/jakarta-oro-2.0.8:2.0 +# >=dev-java/log4j-api-2.19.0:2 +# >=dev-java/log4j-core-2.19.0:2 +# >=dev-java/mockito-4.6.1:4 +# ) +#" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:* +" + +DOCS=( {CONTRIBUTING,README,RELEASE-NOTES,SECURITY}.md ) + +S="${WORKDIR}/apache-log4j-${PV}-src" + +JAVA_AUTOMATIC_MODULE_NAME="org.apache.log4j" +JAVA_CLASSPATH_EXTRA="javax-jms-api" +JAVA_RESOURCE_DIRS="log4j-1.2-api/src/main/resources" +JAVA_SRC_DIR="log4j-1.2-api/src/main/java" + +#JAVA_TEST_GENTOO_CLASSPATH="jackson-dataformat-xml,commons-io-1,commons-lang-3.6,!!!groupId-not-found!!!,log4j-api-2,log4j-core-2,!!!artifactId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,mockito-4,jakarta-oro-2.0" +#JAVA_TEST_SRC_DIR="log4j-1.2-api/src/test/java" +#JAVA_TEST_RESOURCE_DIRS=( +# "log4j-1.2-api/src/test/resources" +#) diff --git a/dev-java/log4j-api/Manifest b/dev-java/log4j-api/Manifest index f832659cc45f..1e8f0807e146 100644 --- a/dev-java/log4j-api/Manifest +++ b/dev-java/log4j-api/Manifest @@ -1,3 +1,6 @@ DIST apache-log4j-2.18.0-src.tar.gz 11748446 BLAKE2B c11a5c7cb5be77fd27504b93962c5493f92475e759a575c5536b674a7e8116d4f9840bd2eb3e95156c257ff046f0e3ec437960b0f5ca01f2ddceb509c49aac1f SHA512 104eb8dbd35d3166a0d49190b2e3fdf981b864d21ed47d84f16acd417b943a41fbafa445b2c38ae8cdc494da6af8746ecc3a0db4795f45ce427344659cffae7b +DIST apache-log4j-2.19.0-src.tar.gz 11764795 BLAKE2B 02ec7c5c825cabe9994a2f50d6761110f87a19ff46874c00d46986da7338c32148f3b6c3551c95721aaf94b71d1d5ce8bcea32462e11fa3fe0c3cbbc0cf5f887 SHA512 c72859c415e701921497bb4f02047fa022083f66b4d21b1dbae28361bd73498b2eae335b9a1ac2d7f796df734a6d54db2701ae5ebf999197597e9e2ad064c271 +DIST apache-log4j-2.19.0-src.tar.gz.asc 858 BLAKE2B 36cefcd5f016919d18a7d74121bbd913be65e32daa38cef312c167be5c4a0e722aac1c2c802f95792c7c7e8e455a755cd3c5a737b34c36ffa061c60eb6488775 SHA512 0de52ad15d593330631cd26feb4827f1dadc4858c16e33c33099efe27cddf854c5c4ed7f0cde4c6593bc74e573b6378e7f993477d02215295ec7992b81d0b338 EBUILD log4j-api-2.18.0.ebuild 3007 BLAKE2B 5a40542111a3afd18b3814622d370bcab1fa8eb908335b9464f9f4d8545e1080aa1ef43022bb06847b4f2ed0b10b08c8151278db08ee7002a2e3528b2916a787 SHA512 1b447d0637decee4783728d4e562def111869ef0e7990e09d0c1f3547247317a1dfea3934c4024428b42fc2c6ba524af14d79188001d2fa2c64db2d62776408c +EBUILD log4j-api-2.19.0.ebuild 3321 BLAKE2B 34c4966c869f33c29b355343beaacf7c335725ba5fdedc47f129a175094d063708b41d2149e9410a04d29487fbab35b57ae0dfc688b5b494903053c5e3428010 SHA512 95f69ae6ef5f401e008d3e098977e6af615c2312a1de6a42248d858ade9ba9120831dd1618e329ba734a17b6b9e20b03a79a76c0542a3fe6bfc7d7cd02a31164 MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6 diff --git a/dev-java/log4j-api/log4j-api-2.19.0.ebuild b/dev-java/log4j-api/log4j-api-2.19.0.ebuild new file mode 100644 index 000000000000..57eab31a5966 --- /dev/null +++ b/dev-java/log4j-api/log4j-api-2.19.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom log4j-api/pom.xml --download-uri mirror://apache/logging/log4j/2.19.0/apache-log4j-2.19.0-src.tar.gz --slot 2 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild log4j-api-2.19.0.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.logging.log4j:log4j-api:2.19.0" +JAVA_TESTING_FRAMEWORKS="junit-vintage junit-jupiter" + +inherit java-pkg-2 java-pkg-simple verify-sig + +DESCRIPTION="The Apache Log4j API" +HOMEPAGE="https://logging.apache.org/log4j/2.x/" +SRC_URI="mirror://apache/logging/log4j/${PV}/apache-log4j-${PV}-src.tar.gz + verify-sig? ( https://www.apache.org/dist/logging/log4j/${PV}/apache-log4j-${PV}-src.tar.gz.asc )" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +# junit-{jupiter,vintage} is not available in ::gentoo +RESTRICT="test" + +# Compile dependencies +# POM: ${PN}/pom.xml +# org.osgi:org.osgi.core:6.0.0 -> !!!suitable-mavenVersion-not-found!!! +# POM: ${PN}/pom.xml +# test? com.fasterxml.jackson.core:jackson-core:2.13.4 -> >=dev-java/jackson-core-2.13.4:0 +# test? com.fasterxml.jackson.core:jackson-databind:2.13.4 -> >=dev-java/jackson-databind-2.13.4:0 +# test? org.apache.commons:commons-lang3:3.12.0 -> >=dev-java/commons-lang-3.12.0:3.6 +# test? org.apache.felix:org.apache.felix.framework:7.0.5 -> >=dev-java/felix-framework-7.0.5:0 +# test? org.apache.maven:maven-core:3.8.5 -> !!!groupId-not-found!!! +# test? org.assertj:assertj-core:3.23.1 -> !!!suitable-mavenVersion-not-found!!! +# test? org.eclipse.tycho:org.eclipse.osgi:3.13.0.v20180226-1711 -> !!!groupId-not-found!!! +# test? org.junit-pioneer:junit-pioneer:1.6.2 -> !!!groupId-not-found!!! +# test? org.junit.jupiter:junit-jupiter-engine:5.9.0 -> !!!groupId-not-found!!! +# test? org.junit.jupiter:junit-jupiter-migrationsupport:5.9.0 -> !!!groupId-not-found!!! +# test? org.junit.jupiter:junit-jupiter-params:5.9.0 -> !!!groupId-not-found!!! +# test? org.junit.vintage:junit-vintage-engine:5.9.0 -> !!!groupId-not-found!!! +# test? uk.org.webcompere:system-stubs-jupiter:2.0.1 -> !!!groupId-not-found!!! + +DEPEND=" + >=virtual/jdk-1.8:* + dev-java/osgi-core:0" +# test? ( +# !!!groupId-not-found!!! +# !!!suitable-mavenVersion-not-found!!! +# >=dev-java/commons-lang-3.12.0:3.6 +# >=dev-java/felix-framework-7.0.5:0 +# >=dev-java/jackson-core-2.13.4:0 +# >=dev-java/jackson-databind-2.13.4:0 +# ) +#" + +RDEPEND=">=virtual/jre-1.8:*" +BDEPEND=" + verify-sig? ( sec-keys/openpgp-keys-apache-logging ) +" +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/logging.apache.org.asc" + +DOCS=( {CONTRIBUTING,README,RELEASE-NOTES,SECURITY}.md ) + +S="${WORKDIR}/apache-log4j-${PV}-src" + +JAVA_CLASSPATH_EXTRA="osgi-core" +JAVA_SRC_DIR="${PN}/src/main/java" +JAVA_RESOURCE_DIRS="${PN}/src/main/resources" + +# JAVA_TEST_GENTOO_CLASSPATH="jackson-core,jackson-databind,commons-lang-3.6,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!suitable-mavenVersion-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!" +# JAVA_TEST_SRC_DIR="${PN}/src/test/java" +# JAVA_TEST_RESOURCE_DIRS=( +# "${PN}/src/test/resources" +# ) diff --git a/dev-java/log4j-core/Manifest b/dev-java/log4j-core/Manifest index 2c4f4c85c3e4..768f209ed743 100644 --- a/dev-java/log4j-core/Manifest +++ b/dev-java/log4j-core/Manifest @@ -1,3 +1,5 @@ DIST apache-log4j-2.18.0-src.tar.gz 11748446 BLAKE2B c11a5c7cb5be77fd27504b93962c5493f92475e759a575c5536b674a7e8116d4f9840bd2eb3e95156c257ff046f0e3ec437960b0f5ca01f2ddceb509c49aac1f SHA512 104eb8dbd35d3166a0d49190b2e3fdf981b864d21ed47d84f16acd417b943a41fbafa445b2c38ae8cdc494da6af8746ecc3a0db4795f45ce427344659cffae7b +DIST apache-log4j-2.19.0-src.tar.gz 11764795 BLAKE2B 02ec7c5c825cabe9994a2f50d6761110f87a19ff46874c00d46986da7338c32148f3b6c3551c95721aaf94b71d1d5ce8bcea32462e11fa3fe0c3cbbc0cf5f887 SHA512 c72859c415e701921497bb4f02047fa022083f66b4d21b1dbae28361bd73498b2eae335b9a1ac2d7f796df734a6d54db2701ae5ebf999197597e9e2ad064c271 EBUILD log4j-core-2.18.0-r1.ebuild 8527 BLAKE2B af5aac4dc73b2b44b8c81b43b99b70ebba8b2893044516cffb97adcce4a98cfd314d0ee0ff0ddbc9276cc6c05c69f0fdefb89af4bdfc962ee8888002220079c7 SHA512 6ac65512701fb4a655257a9844f995bd0cdf91bb170e7a192f772b027662806edfd548c4174628c0c69ea82083b2d0d167533de5b90e71552c04747fd34b11c1 +EBUILD log4j-core-2.19.0.ebuild 8758 BLAKE2B 5fe046a7bf3232b37d12bff51fa5de9bd3a40ffef4b0ca5580a11ea87b166be9eda550d1e33e7b369c882f08b3d2f8eabd4de6624a4a60efa5f65075b6214626 SHA512 9199e9f3dec56d4e85e666f5fb13ce479aaa48244ab16af581639ad8f7880af2401bc836b6c6cded2d66ba704adadd6d446226c88b525e22f60966451515d797 MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6 diff --git a/dev-java/log4j-core/log4j-core-2.19.0.ebuild b/dev-java/log4j-core/log4j-core-2.19.0.ebuild new file mode 100644 index 000000000000..5c0b63067b1d --- /dev/null +++ b/dev-java/log4j-core/log4j-core-2.19.0.ebuild @@ -0,0 +1,179 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom log4j-core/pom.xml --download-uri mirror://apache/logging/log4j/2.19.0/apache-log4j-2.19.0-src.tar.gz --slot 2 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild log4j-core-2.19.0.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.logging.log4j:log4j-core:2.19.0" +# JAVA_TESTING_FRAMEWORKS="junit-vintage junit-jupiter" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="The Apache Log4j Implementation" +HOMEPAGE="https://logging.apache.org/log4j/2.x/" +SRC_URI="mirror://apache/logging/log4j/${PV}/apache-log4j-${PV}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +# We don't have junit-vintage and junit-jupiter +RESTRICT="test" + +# Common dependencies +# POM: ${PN}/pom.xml +# com.conversantmedia:disruptor:1.2.15 -> >=dev-java/conversant-disruptor-1.2.20:0 +# com.fasterxml.jackson.core:jackson-core:2.13.4 -> >=dev-java/jackson-core-2.13.4:0 +# com.fasterxml.jackson.core:jackson-databind:2.13.4 -> >=dev-java/jackson-databind-2.13.4:0 +# com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.4 -> >=dev-java/jackson-dataformat-xml-2.13.4:0 +# com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.4 -> >=dev-java/jackson-dataformat-yaml-2.13.4:0 +# com.fasterxml.woodstox:woodstox-core:6.3.1 -> >=dev-java/woodstox-core-6.3.1:0 +# com.lmax:disruptor:3.4.4 -> >=dev-java/lmax-disruptor-3.4.4:0 +# org.apache.commons:commons-compress:1.21 -> >=dev-java/commons-compress-1.21:0 +# org.apache.commons:commons-csv:1.9.0 -> >=dev-java/commons-csv-1.9.0:0 +# org.apache.kafka:kafka-clients:1.1.1 -> >=dev-java/kafka-clients-1.1.1:0 +# org.apache.logging.log4j:log4j-api:2.19.0 -> >=dev-java/log4j-api-2.19.0:2 +# org.fusesource.jansi:jansi:2.4.0 -> >=dev-java/jansi-2.4.0:2 +# org.jctools:jctools-core:3.3.0 -> >=dev-java/jctools-core-3.3.0:3 +# org.slf4j:slf4j-api:1.7.36 -> >=dev-java/slf4j-api-1.7.36:0 +# org.zeromq:jeromq:0.5.2 -> >=dev-java/jeromq-0.5.2:0 + +CP_DEPEND=" + dev-java/commons-compress:0 + dev-java/commons-csv:0 + dev-java/conversant-disruptor:0 + dev-java/jackson-core:0 + dev-java/jackson-databind:0 + dev-java/jackson-dataformat-xml:0 + dev-java/jackson-dataformat-yaml:0 + dev-java/jansi:2 + dev-java/javax-mail:0 + dev-java/jctools-core:3 + dev-java/jeromq:0 + dev-java/kafka-clients:0 + dev-java/lmax-disruptor:0 + ~dev-java/log4j-api-${PV}:2 + dev-java/slf4j-api:0 + dev-java/woodstox-core:0 +" + +# Compile dependencies +# POM: ${PN}/pom.xml +# javax.activation:javax.activation-api:1.2.0 -> !!!groupId-not-found!!! +# javax.jms:javax.jms-api:2.0.1 -> !!!groupId-not-found!!! +# javax.mail:javax.mail-api:1.6.2 -> !!!groupId-not-found!!! +# org.osgi:org.osgi.core:6.0.0 -> >=dev-java/osgi-core-8.0.0:0 +# POM: ${PN}/pom.xml +# test? ch.qos.logback:logback-classic:1.2.11 -> >=dev-java/logback-classic-1.2.11:0 +# test? ch.qos.logback:logback-core:1.2.11 -> >=dev-java/logback-core-1.2.11:0 +# test? com.github.tomakehurst:wiremock:2.26.3 -> !!!groupId-not-found!!! +# test? com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.0 -> !!!groupId-not-found!!! +# test? com.h2database:h2:2.1.214 -> !!!groupId-not-found!!! +# test? commons-codec:commons-codec:1.15 -> >=dev-java/commons-codec-1.15:0 +# test? commons-io:commons-io:2.11.0 -> >=dev-java/commons-io-2.11.0:1 +# test? commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0 +# test? net.javacrumbs.json-unit:json-unit:2.35.0 -> !!!groupId-not-found!!! +# test? org.apache-extras.beanshell:bsh:2.0b6 -> >=dev-java/bsh-2.0_beta6:0 +# test? org.apache.activemq:activemq-broker:5.17.1 -> !!!groupId-not-found!!! +# test? org.apache.commons:commons-lang3:3.12.0 -> >=dev-java/commons-lang-3.12.0:3.6 +# test? org.apache.felix:org.apache.felix.framework:7.0.5 -> >=dev-java/felix-framework-7.0.5:0 +# test? org.apache.logging.log4j:log4j-api:2.19.0 -> >=dev-java/log4j-api-2.19.0:2 +# test? org.apache.maven:maven-core:3.8.5 -> !!!groupId-not-found!!! +# test? org.assertj:assertj-core:3.23.1 -> !!!suitable-mavenVersion-not-found!!! +# test? org.awaitility:awaitility:4.2.0 -> !!!groupId-not-found!!! +# test? org.codehaus.groovy:groovy-dateutil:3.0.10 -> !!!groupId-not-found!!! +# test? org.codehaus.groovy:groovy-jsr223:3.0.10 -> !!!groupId-not-found!!! +# test? org.codehaus.plexus:plexus-utils:3.4.2 -> !!!artifactId-not-found!!! +# test? org.eclipse.tycho:org.eclipse.osgi:3.13.0.v20180226-1711 -> !!!groupId-not-found!!! +# test? org.hamcrest:hamcrest:2.2 -> >=dev-java/hamcrest-2.2:0 +# test? org.hsqldb:hsqldb:2.5.2 -> !!!groupId-not-found!!! +# test? org.jmdns:jmdns:3.5.8 -> !!!groupId-not-found!!! +# test? org.junit-pioneer:junit-pioneer:1.6.2 -> !!!groupId-not-found!!! +# test? org.junit.jupiter:junit-jupiter-engine:5.9.0 -> !!!groupId-not-found!!! +# test? org.junit.jupiter:junit-jupiter-params:5.9.0 -> !!!groupId-not-found!!! +# test? org.junit.platform:junit-platform-commons:1.9.0 -> !!!groupId-not-found!!! +# test? org.junit.vintage:junit-vintage-engine:5.9.0 -> !!!groupId-not-found!!! +# test? org.mockito:mockito-core:4.4.0 -> >=dev-java/mockito-4.6.1:4 +# test? org.mockito:mockito-junit-jupiter:4.4.0 -> !!!artifactId-not-found!!! +# test? org.slf4j:slf4j-ext:1.7.36 -> >=dev-java/slf4j-ext-1.7.36:0 +# test? org.springframework:spring-test:5.3.20 -> !!!groupId-not-found!!! +# test? org.tukaani:xz:1.9 -> >=dev-java/xz-java-1.9:0 +# test? org.xmlunit:xmlunit-core:2.9.0 -> !!!groupId-not-found!!! +# test? org.xmlunit:xmlunit-matchers:2.9.0 -> !!!groupId-not-found!!! +# test? org.zapodot:embedded-ldap-junit:0.8.1 -> !!!groupId-not-found!!! + +DEPEND="${CP_DEPEND} + dev-java/jakarta-activation-api:1 + dev-java/jakarta-mail-api:0 + dev-java/javax-jms-api:0 + dev-java/osgi-core:0 + >=virtual/jdk-1.8:*" +# test? ( +# !!!artifactId-not-found!!! +# !!!groupId-not-found!!! +# !!!suitable-mavenVersion-not-found!!! +# >=dev-java/bsh-2.0_beta6:0 +# >=dev-java/commons-codec-1.15:0 +# >=dev-java/commons-io-2.11.0:1 +# >=dev-java/commons-lang-3.12.0:3.6 +# >=dev-java/commons-logging-1.2:0 +# >=dev-java/felix-framework-7.0.5:0 +# >=dev-java/hamcrest-2.2:0 +# >=dev-java/log4j-api-2.19.0:2 +# >=dev-java/logback-classic-1.2.11:0 +# >=dev-java/logback-core-1.2.11:0 +# >=dev-java/mockito-4.6.1:4 +# >=dev-java/slf4j-ext-1.7.36:0 +# >=dev-java/xz-java-1.9:0 +# ) +#" + +# Runtime dependencies +# POM: ${PN}/pom.xml +# com.sun.mail:javax.mail:1.6.2 -> !!!artifactId-not-found!!! + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND}" + +DOCS=( {CONTRIBUTING,README,RELEASE-NOTES,SECURITY}.md ) + +S="${WORKDIR}/apache-log4j-${PV}-src" + +JAVA_AUTOMATIC_MODULE_NAME="org.apache.logging.log4j.core" +JAVA_CLASSPATH_EXTRA="jakarta-activation-api-1,jakarta-mail-api,javax-jms-api,osgi-core" +JAVA_RESOURCE_DIRS="${PN}/src/main/resources" +JAVA_SRC_DIR="${PN}/src/main/java" + +#JAVA_TEST_GENTOO_CLASSPATH="logback-classic,logback-core,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,commons-codec,commons-io-1,commons-logging,!!!groupId-not-found!!!,bsh,!!!groupId-not-found!!!,commons-lang-3.6,!!!groupId-not-found!!!,log4j-api-2,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,hamcrest,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!,mockito-4,!!!artifactId-not-found!!!,slf4j-ext,!!!groupId-not-found!!!,xz-java,!!!groupId-not-found!!!,!!!groupId-not-found!!!,!!!groupId-not-found!!!" +#JAVA_TEST_SRC_DIR="${PN}/src/test/java" +#JAVA_TEST_RESOURCE_DIRS=( +# "${PN}/src/test/resources" +#) + +src_compile() { + java-pkg-simple_src_compile + + # Process the @Plugin annotation used on Log4j 2 built-in plugins + # to generate a serialized plugin listing file + # https://logging.apache.org/log4j/2.x/manual/plugins.html + local processor="org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor" + local classes="target/classes" + local classpath="${JAVA_JAR_FILENAME}:$(\ + java-pkg_getjars --build-only --with-dependencies \ + "${JAVA_GENTOO_CLASSPATH},${JAVA_CLASSPATH_EXTRA}")" + # Just in case java-pkg-simple.eclass changes the path in the future + mkdir -p "${classes}" || die "Failed to create directory for classes" + local sources_list_file="${T}/sources.lst" + find "${JAVA_SRC_DIR}" -type f -name "*.java" > "${sources_list_file}" || die + ejavac -d "${classes}" -cp "${classpath}" \ + -proc:only -processor "${processor}" \ + @"${sources_list_file}" + # Update the JAR to include the serialized plugin listing file + local jar="$(java-config -j)" + "${jar}" -uf "${JAVA_JAR_FILENAME}" -C "${classes}" . || + die "Failed to update JAR" +} |