dev-java/commons-imaging: patch failing javadoc

Closes: https://bugs.gentoo.org/861767
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2023-12-07 13:51:13 +01:00
committed by Miroslav Šulc
parent 75b5edfa4b
commit 24107635af
2 changed files with 20 additions and 3 deletions
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Skeleton command:
@@ -14,6 +14,7 @@ inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Apache Commons Imaging (previously Sanselan) is a pure-Java image library."
HOMEPAGE="https://commons.apache.org/proper/commons-imaging/"
SRC_URI="mirror://apache/commons/imaging/source/commons-imaging-${PV/_/-}-src.tar.gz"
S="${WORKDIR}/${P/_/-}-src"
LICENSE="Apache-2.0"
SLOT="0"
@@ -29,9 +30,13 @@ DEPEND=">=virtual/jdk-1.8:*"
RDEPEND=">=virtual/jre-1.8:*"
DOCS=( {LICENSE,NOTICE,RELEASE-NOTES}.txt README.md )
S="${WORKDIR}/${P/_/-}-src"
PATCHES=( "${FILESDIR}/commons-imaging-1.0_alpha3-PngChunk.javadoc.patch" )
JAVA_SRC_DIR="src/main/java"
JAVA_RESOURCE_DIRS="src/main/resources"
JAVA_AUTOMATIC_MODULE_NAME="org.apache.commons.imaging"
src_prepare() {
default #780585
java-pkg-2_src_prepare
}
@@ -0,0 +1,12 @@
https://bugs.gentoo.org/861767
--- a/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunk.java
+++ b/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunk.java
@@ -24,7 +24,7 @@ import org.apache.commons.imaging.common.BinaryFileParser;
* A PNG image is composed of several chunks. This is the base class for the chunks,
* used by the parser.
*
- * @see <a href="https://en.wikipedia.org/wiki/Portable_Network_Graphics#%22Chunks%22_within_the_file>Portable_Network_Graphics</a>
+ * @see <a href="https://en.wikipedia.org/wiki/Portable_Network_Graphics#%22Chunks%22_within_the_file">Portable_Network_Graphics</a>
*/
public class PngChunk extends BinaryFileParser {
public final int length;