diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-19 12:34:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-19 12:34:34 +0000 |
commit | 1d300fd75dc60cab2ca6e0bb0016b09a4fb7c67a (patch) | |
tree | 5dff362f093f67da764ce10a380ad9d14646b46e /dev-java/commons-logging | |
parent | 78634f348a30a55cc55606ee1ecde032241ceaeb (diff) |
gentoo auto-resync : 19:03:2023 - 12:34:33
Diffstat (limited to 'dev-java/commons-logging')
-rw-r--r-- | dev-java/commons-logging/Manifest | 4 | ||||
-rw-r--r-- | dev-java/commons-logging/commons-logging-1.3.0_pre20230317.ebuild | 102 | ||||
-rw-r--r-- | dev-java/commons-logging/metadata.xml | 27 |
3 files changed, 122 insertions, 11 deletions
diff --git a/dev-java/commons-logging/Manifest b/dev-java/commons-logging/Manifest index 5eb2a08d2e48..7c9ef05e8190 100644 --- a/dev-java/commons-logging/Manifest +++ b/dev-java/commons-logging/Manifest @@ -1,5 +1,7 @@ AUX commons-logging-1.2-gentoo.patch 825 BLAKE2B 154927ebbda77a76007fe9b448fc2801404717fa933002a69916b9a0558af82b0172039ef294ba01b4cb98bcc93bf40b54681d4c2343e4a404e58772e8a8585d SHA512 1886a28bbccf0f8aa42a147628aeac444a672cb3dc006604088a67d536c376a03781b22394770c580d80c5616569b751e63c91d86cbff6f5caa47100897cd027 AUX commons-logging-1.2-servletapi.patch 1783 BLAKE2B 5f8bc256542335b5d955d998ef2ee49d8becca46b367ba0ac1152f68ea4fccc226afcd2475331cf292c3f0f11471052e6917c9508a6737c6482c556c2ec87363 SHA512 bf2f0aca771b7278f2d80ae3c149492040c137c1ab190513fd9894fad315f75e4b0423f65a5ffaff04faed3f7256728b5f474cfbe0aefc2a53d60337a6344d39 DIST commons-logging-1.2-src.tar.gz 188536 BLAKE2B 80613b78619f7b3429f60df4fb9b66dd4836e8b89fcf93a3a1bcd5cb7e410d474be010da16b325143e028a40ff4dd971753962c9d9145f85b1738f5dda13ba99 SHA512 9f3761184950f2f13e85d8bc447709ab8be631dfd231b4f053f8147468db1bf71fb116ddba95e39f4afc4cf28c742e07d40c7a637f28004a60dc13935f9609f9 +DIST commons-logging-1.3.0_pre20230317.tar.gz 184981 BLAKE2B 00d171a8345907dc2686d1eff1130b7fd1ef653c8f2a7c6b5e45e6522f3d195ba695d93371add97a2d459451e3757ef9ec21f483f0cd37a6bcbb98e76e1b446f SHA512 737058214bfa86c11c2d7b450132a15824652c80ffae6208c3a8fc2386e7b2c7c61b39fd2b75008373f611e4bbed26e851f98f910d3e6f33df4f85f35c0a5462 EBUILD commons-logging-1.2-r6.ebuild 4146 BLAKE2B 3d9d1e7121406deb2cfbb50ce274df70a0c165d99870f77a69068447e68588bd43b259b076bd5dc2e853a4d79e2df80844caaebd4d4dfe095701f3c4799a98c6 SHA512 7bee2954d057db0c3bbfd3b8bba6b7c9e1cc2f708b5d85070defde51fb6c9d2f8f10b1be122fcfadabfaffc612d2b63ef355818cc6a14253a9de05b79c0c0dde -MISC metadata.xml 552 BLAKE2B ec2efc6f1e5e694ae68d977b40387ecdf6bff5fd184a4a5cd7c65830108d82522e5951a9b9868f4e94b08ec00c1901f43cd027f328b49cffc90ca971fb041026 SHA512 89c4f003ea15a5201ba713ca1819b9ea35d65c27e4106e6bc8e3806f1667f95b3e96c7b76c77b8545ded8abbb3955f6cf96dea11eeaea7740696bb01a933e077 +EBUILD commons-logging-1.3.0_pre20230317.ebuild 3369 BLAKE2B c298a74acae56b87096bdf3a4e8303d87af4c0fd8c8da164665cc98d7be8455477a2dbd9a80c3a8cc4ebe36f63299c47aa74cea8ab7d8a6eddb17733012d359c SHA512 61a211ff82b065ae989d6805f6195bc6c7b90c48af6abbf39e5f1046df7f05159eeabf2e0d6144d3850a3a9e9af353c9b8a12ef3426c4cb915a1e11726569543 +MISC metadata.xml 851 BLAKE2B ecaefca5760abab3e9f77eee62efc54ca66a8cf8ea104171d2c33a2aca794ac45ab40b1f6f6c8baf8b738c46fe74eab5922277d139e4c4bfe4ff9d04c76ae98c SHA512 3310b33d391e19e8ade51e7abd76fcbf5874888d7d93a4ce8bd431dca97e20c13b64535da41b9aa55963b65696b588e5f30f4ca7a5f60a4c30e44b9dc485461a diff --git a/dev-java/commons-logging/commons-logging-1.3.0_pre20230317.ebuild b/dev-java/commons-logging/commons-logging-1.3.0_pre20230317.ebuild new file mode 100644 index 000000000000..3fb433092d18 --- /dev/null +++ b/dev-java/commons-logging/commons-logging-1.3.0_pre20230317.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="commons-logging:commons-logging:1.3.0" +# Not yet supported, see https://bugs.gentoo.org/839681 +# JAVA_TESTING_FRAMEWORKS="junit-vintage" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Thin adapter allowing configurable bridging to other well known logging systems" +HOMEPAGE="https://commons.apache.org/proper/commons-logging/" +MY_COMMIT="058cf5ee350cd83d1ab28b000ad6be903ca160c5" +SRC_URI="https://github.com/apache/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_COMMIT}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="log4j" + +CDEPEND=" + log4j? ( + dev-java/log4j-12-api:2 + dev-java/log4j-api:2 + dev-java/log4j-core:2 + ) +" + +DEPEND="${CDEPEND} + dev-java/javax-servlet-api:2.5 + >=virtual/jdk-1.8:* +" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.8:*" + +DOCS=( README.md src/changes/changes.xml ) + +JAVA_AUTOMATIC_MODULE_NAME="org.apache.commons.logging" +JAVA_ENCODING="iso-8859-1" +JAVA_CLASSPATH_EXTRA="javax-servlet-api-2.5" +JAVA_SRC_DIR="src/main/java" + +src_prepare() { + java-pkg-2_src_prepare + # https://avalon.apache.org/closed.html Apache Avalon has closed. + rm src/main/java/org/apache/commons/logging/impl/{Avalon,LogKit}Logger.java || die + rm src/test/java/org/apache/commons/logging/{avalon/AvalonLogger,logkit/Standard}TestCase.java || die + + if use !log4j; then + rm src/main/java/org/apache/commons/logging/impl/Log4JLogger.java || die + rm -r src/test/java/org/apache/commons/logging/log4j || die + fi +} + +src_compile() { + if use log4j; then + JAVA_GENTOO_CLASSPATH="log4j-12-api-2,log4j-api-2,log4j-core-2" + fi + java-pkg-simple_src_compile + + pushd target/classes > /dev/null || die + + # Need Automatic-Module-Name also for the other JAR files + jar xvf ../../commons-logging.jar META-INF/MANIFEST.MF || die + + # https://github.com/apache/commons-logging/blob/058cf5ee350cd83d1ab28b000ad6be903ca160c5/pom.xml#L215-L236 + jar -cvfm ../../commons-logging-api.jar META-INF/MANIFEST.MF \ + $(find . -type f -name '*.class' \ + ! -name 'Jdk13LumberjackLogger.class' \ + ! -name 'ServletContextCleaner.class' \ + ) || die + + # https://github.com/apache/commons-logging/blob/058cf5ee350cd83d1ab28b000ad6be903ca160c5/pom.xml#L240-L257 + jar -cvfm ../../commons-logging-adapters.jar META-INF/MANIFEST.MF \ + $(find . -type f -path './org/apache/commons/logging/impl/**.class' \ + ! -name 'WeakHashtable*.class' \ + ! -name 'LogFactoryImpl*.class' \ + ) || die + + popd > /dev/null || die +} + +# https://github.com/apache/commons-logging/blob/058cf5ee350cd83d1ab28b000ad6be903ca160c5/pom.xml#L396-L407 +# src_test() { +# JAVA_TEST_EXTRA_ARGS=( +# -Dtestclasses="commons-logging-tests.jar" +# -Dcommons-logging="commons-logging.jar" +# -Dcommons-logging-api="commons-logging-api.jar" +# -Dcommons-logging-adapters="commons-logging-adapters.jar" +# ) +# JAVA_TEST_RESOURCE_DIRS="src/test/resources" +# JAVA_TEST_SRC_DIR="src/test/java" +# if use log4j; then +# JAVA_TEST_EXTRA_ARGS+=" -Dlog4j12=$(java-pkg_getjars log4j-12-api-2,log4j-core-2)" +# fi +# JAVA_TEST_EXTRA_ARGS+=" -Dservlet-api=$(java-pkg_getjars javax-servlet-api-2.5)" +# java-pkg-simple_src_test +# } diff --git a/dev-java/commons-logging/metadata.xml b/dev-java/commons-logging/metadata.xml index 929f4e61cf4e..c3b68538712d 100644 --- a/dev-java/commons-logging/metadata.xml +++ b/dev-java/commons-logging/metadata.xml @@ -1,14 +1,21 @@ <?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> - <name>Java</name> - </maintainer> - <use> - <flag name="avalon-framework">Add optional support for avalon-framework</flag> - <flag name="avalon-logkit">Add optional support for avalon-logkit</flag> - <flag name="log4j">Add optional support for log4j</flag> - <flag name="servletapi">Add optional support for servletapi</flag> - </use> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <bugs-to>https://issues.apache.org/jira/projects/LOGGING/issues/</bugs-to> + <remote-id type="github">apache/commons-logging</remote-id> + </upstream> + <use> + <flag name="avalon-framework">Add optional support for avalon-framework</flag> + <flag name="avalon-logkit">Add optional support for avalon-logkit</flag> + <flag name="log4j">Add optional support for log4j</flag> + <flag name="servletapi">Add optional support for servletapi</flag> + </use> + <longdescription> + Apache Commons Logging is a thin adapter allowing configurable bridging to other, well known logging systems. + </longdescription> </pkgmetadata> |