summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-06-26 00:52:02 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2022-07-03 09:46:39 +0200
commitb3702b18f502f88733cb382a777d26fc953fb4d7 (patch)
tree6869e9db8c92df07af334916942015abf2eca9e5 /dev-java/hamcrest/hamcrest-2.2.ebuild
parentdev-lang/rust-bin: update Manifest (diff)
downloadgentoo-b3702b18f502f88733cb382a777d26fc953fb4d7.tar.gz
gentoo-b3702b18f502f88733cb382a777d26fc953fb4d7.tar.bz2
gentoo-b3702b18f502f88733cb382a777d26fc953fb4d7.zip
dev-java/hamcrest: new package, add 2.2
Thanks to the patch provided by fordfrog it compiles with jdk-17 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26078 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/hamcrest/hamcrest-2.2.ebuild')
-rw-r--r--dev-java/hamcrest/hamcrest-2.2.ebuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-java/hamcrest/hamcrest-2.2.ebuild b/dev-java/hamcrest/hamcrest-2.2.ebuild
new file mode 100644
index 00000000000..6b0b18d4b6b
--- /dev/null
+++ b/dev-java/hamcrest/hamcrest-2.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom hamcrest-2.2.pom --download-uri https://github.com/hamcrest/JavaHamcrest/archive/v2.2.tar.gz --slot 0 --keywords "~amd64" --ebuild hamcrest-2.2.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="org.hamcrest:hamcrest:2.2"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Core API and libraries of hamcrest matcher framework."
+HOMEPAGE="http://hamcrest.org/JavaHamcrest/"
+SRC_URI="https://github.com/${PN}/JavaHamcrest/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+"
+
+PATCHES=( "${FILESDIR}"/hamcrest-2.2-java-11.patch )
+
+DOCS=( {CHANGES,README}.md )
+
+S="${WORKDIR}/JavaHamcrest-${PV}"
+
+JAVA_SRC_DIR="hamcrest/src/main/java"
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+JAVA_TEST_SRC_DIR="hamcrest/src/test/java"
+
+src_prepare() {
+ default
+ java-pkg-2_src_prepare
+}
+
+src_install() {
+ default # https://bugs.gentoo.org/789582
+ java-pkg-simple_src_install
+}