gentoo-ebuilds/dev-java/hamcrest-core/hamcrest-core-1.1-r5.ebuild
Volkmar W. Pogatzki d30b631e5b
dev-java/hamcrest-core: fix typo #943307
Closes: https://bugs.gentoo.org/943307
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/39282/commits/55f843612cfbfa2e008c339fa31da019de633481
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-11-12 12:08:16 +01:00

40 lines
843 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-pkg-simple
MY_PN="hamcrest"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Library of matchers for building test expressions"
HOMEPAGE="https://hamcrest.org/JavaHamcrest/"
SRC_URI="https://github.com/${MY_PN}/JavaHamcrest/archive/${MY_PN}-java-${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/JavaHamcrest-${MY_PN}-java-${PV}"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 arm64 ppc64 ~amd64-linux ~x64-solaris"
DEPEND="
>=virtual/jdk-1.8:*
source? ( app-arch/zip )
"
RDEPEND=">=virtual/jre-1.8:*"
JAVA_SRC_DIR="${PN}/src"
PATCHES=(
# https://bugs.gentoo.org/751379
"${FILESDIR}"/hamcrest-core-1.1-java-11.patch
)
src_prepare() {
default #780585
java-pkg-2_src_prepare
java-pkg_clean
}