public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-java/javaparser-core/
@ 2024-03-17  8:45 Miroslav Šulc
  0 siblings, 0 replies; 3+ messages in thread
From: Miroslav Šulc @ 2024-03-17  8:45 UTC (permalink / raw
  To: gentoo-commits

commit:     4be4e3b0d3b6dff8770054ef5b2739852c8856fe
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sat May 27 18:13:23 2023 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sun Mar 17 08:44:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4be4e3b0

dev-java/javaparser-core: new package, add 3.13.10

This exact version is needed by dev-java/bnd-7.0.0 according to
https://github.com/bndtools/bnd/blob/7.0.0/biz.aQute.bnd/bnd.bnd#L118

Restricted to <=virtual/jdk-17:* due to compilation error with jdk:21
(even the presently latest version 3.25.8 would fail with jdk:21)

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/35320/commits/6fee502ad7d9857a6e8a0b8d43ecf2011308388b
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/javaparser-core/Manifest                  |  1 +
 .../javaparser-core/javaparser-core-3.13.10.ebuild | 45 ++++++++++++++++++++++
 dev-java/javaparser-core/metadata.xml              | 10 +++++
 3 files changed, 56 insertions(+)

diff --git a/dev-java/javaparser-core/Manifest b/dev-java/javaparser-core/Manifest
new file mode 100644
index 000000000000..44d5620a8988
--- /dev/null
+++ b/dev-java/javaparser-core/Manifest
@@ -0,0 +1 @@
+DIST javaparser-3.13.10.tar.gz 7043664 BLAKE2B 5d2e35cfa22dbcb425365e2e7806c46b989b92a84472fbd80d42716fbb2a5ddcad2daec6214be689b1dcc6541890527e422953c083e713e9f1d22ce5b3035e90 SHA512 b90a6b7b2fbb6a13cc36cdd17acd09a22adb9e62311862c2a67a9ea339b98e245c93ba371645e3c695e76966b21e3bc01accf040482e30b2b6882a5569db5806

diff --git a/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild b/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild
new file mode 100644
index 000000000000..a1b31fd5fcca
--- /dev/null
+++ b/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+MAVEN_ID="com.github.javaparser:javaparser-core:3.13.10"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Java 1-17 Parser and Abstract Syntax Tree for Java"
+HOMEPAGE="https://javaparser.org/"
+SRC_URI="https://github.com/javaparser/javaparser/archive/v${PV}.tar.gz -> javaparser-${PV}.tar.gz"
+S="${WORKDIR}/javaparser-${PV}"
+
+LICENSE="Apache-2.0 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+JAVACC_SLOT="7.0.4"
+
+BDEPEND="dev-java/javacc:7.0.4"
+# Does not compile with Java 21
+DEPEND="<=virtual/jdk-17:*"
+RDEPEND=">=virtual/jre-1.8:*"
+
+DOCS=( CONTRIBUTING.md changelog.md readme.md )
+
+JAVA_AUTOMATIC_MODULE_NAME="com.github.javaparser.core"
+JAVA_SRC_DIR=(
+	"${PN}/src/main/java"
+	"${PN}/src/main/java-templates"
+	"${PN}/src/main/javacc-support"
+)
+
+src_prepare() {
+	java-pkg-2_src_prepare
+
+	mkdir -p "${PN}/src/main/java/com/github/javaparser"
+	javacc-${JAVACC_SLOT} -GRAMMAR_ENCODING=UTF-8 \
+		-JDK_VERSION=1.8 \
+		-OUTPUT_DIRECTORY="${PN}/src/main/java/com/github/javaparser" \
+		"javaparser-core/src/main/javacc/java.jj" \
+		|| die "Code generation with java.jj failed"
+}

diff --git a/dev-java/javaparser-core/metadata.xml b/dev-java/javaparser-core/metadata.xml
new file mode 100644
index 000000000000..297067f408d2
--- /dev/null
+++ b/dev-java/javaparser-core/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">javaparser/javaparser</remote-id>
+	</upstream>
+</pkgmetadata>


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

* [gentoo-commits] repo/gentoo:master commit in: dev-java/javaparser-core/
@ 2024-04-21 12:34 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-04-21 12:34 UTC (permalink / raw
  To: gentoo-commits

commit:     385da0ae346fa0b505afd64cc59b52c0afee24db
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 21 12:33:38 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 21 12:33:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=385da0ae

dev-java/javaparser-core: Stabilize 3.13.10 amd64, #930353

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-java/javaparser-core/javaparser-core-3.13.10.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild b/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild
index aeef1b1b9b05..edcef0c4b6dd 100644
--- a/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild
+++ b/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild
@@ -15,7 +15,7 @@ S="${WORKDIR}/javaparser-${PV}"
 
 LICENSE="Apache-2.0 LGPL-3"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64"
+KEYWORDS="amd64 ~arm ~arm64"
 
 JAVACC_SLOT="7.0.4"
 


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

* [gentoo-commits] repo/gentoo:master commit in: dev-java/javaparser-core/
@ 2024-05-06  1:51 Ionen Wolkens
  0 siblings, 0 replies; 3+ messages in thread
From: Ionen Wolkens @ 2024-05-06  1:51 UTC (permalink / raw
  To: gentoo-commits

commit:     238906b49c40e25240e9abbb4e531514613aa16f
Author:     Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Thu May  2 17:28:47 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon May  6 01:50:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=238906b4

dev-java/javaparser-core: Keyword 3.13.10 x86, #927348

Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk>
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-java/javaparser-core/javaparser-core-3.13.10.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild b/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild
index edcef0c4b6dd..3f8887785b01 100644
--- a/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild
+++ b/dev-java/javaparser-core/javaparser-core-3.13.10.ebuild
@@ -15,7 +15,7 @@ S="${WORKDIR}/javaparser-${PV}"
 
 LICENSE="Apache-2.0 LGPL-3"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64"
+KEYWORDS="amd64 ~arm ~arm64 ~x86"
 
 JAVACC_SLOT="7.0.4"
 


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

end of thread, other threads:[~2024-05-06  1:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-17  8:45 [gentoo-commits] repo/gentoo:master commit in: dev-java/javaparser-core/ Miroslav Šulc
  -- strict thread matches above, loose matches on Subject: below --
2024-04-21 12:34 Sam James
2024-05-06  1:51 Ionen Wolkens

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