mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-03 16:47:21 -08:00
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1229 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=9
|
|
|
|
JAVA_PKG_IUSE="doc source test"
|
|
JAVA_TESTING_FRAMEWORKS="junit-4"
|
|
|
|
inherit java-pkg-2 java-pkg-simple
|
|
|
|
DESCRIPTION="XMLUnit for Java Hamcrest Matchers"
|
|
HOMEPAGE="https://www.xmlunit.org/"
|
|
SRC_URI="https://github.com/xmlunit/xmlunit/releases/download/v${PV}/xmlunit-${PV}-src.tar.gz"
|
|
S="${WORKDIR}/xmlunit-${PV}-src/xmlunit-matchers"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~ppc64"
|
|
|
|
DEPEND="
|
|
>=virtual/jdk-1.8:*
|
|
>=dev-java/hamcrest-core-1.3-r3:1.3
|
|
~dev-java/xmlunit-core-${PV}:0
|
|
test? (
|
|
>=dev-java/asm-9.9.1:0
|
|
>=dev-java/byte-buddy-1.18.4:0
|
|
>=dev-java/hamcrest-3.0:0
|
|
dev-java/mockito:0
|
|
)
|
|
"
|
|
|
|
RDEPEND=">=virtual/jre-1.8:*"
|
|
|
|
DOCS=( ../{CONTRIBUTING,HELP_WANTED,README,RELEASE_NOTES}.md )
|
|
PATCHES=( "${FILESDIR}"/xmlunit-matchers-2.13.0-skipFailingTest.patch )
|
|
|
|
JAVA_AUTOMATIC_MODULE_NAME="org.xmlunit.matchers"
|
|
JAVA_CLASSPATH_EXTRA="hamcrest-core-1.3 xmlunit-core"
|
|
JAVA_SRC_DIR="src/main/java"
|
|
JAVA_TEST_EXCLUDES="org.xmlunit.TestResources"
|
|
JAVA_TEST_GENTOO_CLASSPATH="asm byte-buddy hamcrest junit-4 mockito xmlunit-core"
|
|
JAVA_TEST_SRC_DIR="src/test/java"
|
|
|
|
src_prepare() {
|
|
java-pkg-2_src_prepare
|
|
cp {../xmlunit-core/,}src/test/java/org/xmlunit/TestResources.java || die
|
|
}
|