public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-java/jmc/
@ 2023-10-24 13:18 Miroslav Šulc
  0 siblings, 0 replies; 2+ messages in thread
From: Miroslav Šulc @ 2023-10-24 13:18 UTC (permalink / raw
  To: gentoo-commits

commit:     b0be7322474d68b66121ea2d81b65a282615fd18
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Mon Oct 23 10:54:57 2023 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Tue Oct 24 13:01:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0be7322

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 <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/33465
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/jmc/Manifest         |  1 +
 dev-java/jmc/jmc-8.3.0.ebuild | 74 +++++++++++++++++++++++++++++++++++++++++++
 dev-java/jmc/metadata.xml     | 10 ++++++
 3 files changed, 85 insertions(+)

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>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-java/jmc/
@ 2023-11-23 16:08 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2023-11-23 16:08 UTC (permalink / raw
  To: gentoo-commits

commit:     bc5ec7b62451dc7e7a02c6a42761ed977167d101
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 23 16:06:32 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 23 16:08:04 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc5ec7b6

dev-java/jmc: Stabilize 8.3.0 amd64, #917794

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-java/jmc/jmc-8.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-java/jmc/jmc-8.3.0.ebuild b/dev-java/jmc/jmc-8.3.0.ebuild
index 9db8fbfc2388..49b64d2ec06b 100644
--- a/dev-java/jmc/jmc-8.3.0.ebuild
+++ b/dev-java/jmc/jmc-8.3.0.ebuild
@@ -18,7 +18,7 @@ S="${WORKDIR}/${P}-ga"
 
 LICENSE="UPL-1.0"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="amd64"
 
 DEPEND="
 	dev-java/lz4-java:0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-23 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-23 16:08 [gentoo-commits] repo/gentoo:master commit in: dev-java/jmc/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2023-10-24 13:18 Miroslav Šulc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox