diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-10-23 12:54:57 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-10-24 15:01:18 +0200 |
commit | b0be7322474d68b66121ea2d81b65a282615fd18 (patch) | |
tree | 829db9913e761a478f14371fec8e508f60d7fb89 /dev-java/jmc | |
parent | profiles/license_groups: UPL-1.0 to OSI-APPROVED-FREE and GPL-COMPATIBLE (diff) | |
download | gentoo-b0be7322474d68b66121ea2d81b65a282615fd18.tar.gz gentoo-b0be7322474d68b66121ea2d81b65a282615fd18.tar.bz2 gentoo-b0be7322474d68b66121ea2d81b65a282615fd18.zip |
dev-java/jmc: new package, add 8.3.0
dependency needed for dev-util/visualvm
Bug: https://bugs.gentoo.org/841632
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/33465
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jmc')
-rw-r--r-- | dev-java/jmc/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jmc/jmc-8.3.0.ebuild | 74 | ||||
-rw-r--r-- | dev-java/jmc/metadata.xml | 10 |
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-java/jmc/Manifest b/dev-java/jmc/Manifest new file mode 100644 index 000000000000..fdfb3ebf3c28 --- /dev/null +++ b/dev-java/jmc/Manifest @@ -0,0 +1 @@ +DIST jmc-8.3.0.ga.tar.gz 40714977 BLAKE2B 7ec59a23a62ede30844cee71bd1c859974ee3112bb5cc1b31b65f63f0bbf1b2689a94180d0fba687858353d05b3d1046a7b98688f01312606332bfd9d99ac9e8 SHA512 e4fb9fe8fa0ebfd3dd550dfa3412a4a7f88cb46eedaba329c4fd1a693047377b5c57db8ef8751f5966bce7621d6d2eff52a8d1921c089e7b1c3104684918fde9 diff --git a/dev-java/jmc/jmc-8.3.0.ebuild b/dev-java/jmc/jmc-8.3.0.ebuild new file mode 100644 index 000000000000..9db8fbfc2388 --- /dev/null +++ b/dev-java/jmc/jmc-8.3.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_PROVIDES=" + org.openjdk.jmc:common:${PV} + org.openjdk.jmc:flightrecorder:${PV} +" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="JDK Mission Control" +HOMEPAGE="https://openjdk.org/projects/jmc/" +SRC_URI="https://github.com/openjdk/jmc/archive/${PV}-ga.tar.gz -> ${P}.ga.tar.gz" +S="${WORKDIR}/${P}-ga" + +LICENSE="UPL-1.0" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + dev-java/lz4-java:0 + dev-java/owasp-java-encoder:0 + >=virtual/jdk-1.8:* +" +RDEPEND=">=virtual/jre-1.8:*" + +src_compile() { + einfo "Compiling jmc-common.jar" + JAVA_AUTOMATIC_MODULE_NAME="org.openjdk.jmc.common" + JAVA_CLASSPATH_EXTRA=" + lz4-java + owasp-java-encoder + " + JAVA_JAR_FILENAME="jmc-common.jar" + JAVA_RESOURCE_DIRS="core/org.openjdk.jmc.common/src/main/resources" + JAVA_SRC_DIR="core/org.openjdk.jmc.common/src/main/java" + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":jmc-common.jar" + rm -r target || die + + einfo "Compiling jmc-flightrecorder.jar" + JAVA_AUTOMATIC_MODULE_NAME="org.openjdk.jmc.flightrecorder" + JAVA_JAR_FILENAME="jmc-flightrecorder.jar" + JAVA_RESOURCE_DIRS="core/org.openjdk.jmc.flightrecorder/src/main/resources" + JAVA_SRC_DIR="core/org.openjdk.jmc.flightrecorder/src/main/java" + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":jmc-flightrecorder.jar" + rm -r target || die + + if use doc; then + JAVA_SRC_DIR=() + JAVA_SRC_DIR=( + "core/org.openjdk.jmc.common/src/main/java" + "core/org.openjdk.jmc.flightrecorder/src/main/java" + ) + JAVA_JAR_FILENAME="ignoreme.jar" + java-pkg-simple_src_compile + fi +} + +src_install() { + default + java-pkg_dojar jmc-common.jar jmc-flightrecorder.jar + if use doc; then + java-pkg_dojavadoc target/api + fi + if use source; then + java-pkg_dosrc "core/org.openjdk.jmc.common/src/main/java/*" + java-pkg_dosrc "core/org.openjdk.jmc.flightrecorder/src/main/java/*" + fi +} diff --git a/dev-java/jmc/metadata.xml b/dev-java/jmc/metadata.xml new file mode 100644 index 000000000000..13df86c0e8a8 --- /dev/null +++ b/dev-java/jmc/metadata.xml @@ -0,0 +1,10 @@ +<?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> + </maintainer> + <upstream> + <remote-id type="github">openjdk/jmc</remote-id> + </upstream> +</pkgmetadata> |