mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-java/javaparser-core: add 3.26.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: d0ca5828bf
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
parent
3943ff0af6
commit
0aa8e0982b
@ -1 +1,2 @@
|
||||
DIST javaparser-3.13.10.tar.gz 7043664 BLAKE2B 5d2e35cfa22dbcb425365e2e7806c46b989b92a84472fbd80d42716fbb2a5ddcad2daec6214be689b1dcc6541890527e422953c083e713e9f1d22ce5b3035e90 SHA512 b90a6b7b2fbb6a13cc36cdd17acd09a22adb9e62311862c2a67a9ea339b98e245c93ba371645e3c695e76966b21e3bc01accf040482e30b2b6882a5569db5806
|
||||
DIST javaparser-3.26.3.tar.gz 18493336 BLAKE2B a3a01239caf9f215bb470c060eff82b8db607fab6cffa637b06937f4e80f1fd530f1991e750aa5c91b9b0b5a173e77eb84c104a14d1353b7de233a56cd8284dc SHA512 8e109eec868e5aeceb2c91e09f04286f4e9944601359febe80bc29074b6eb306fd058a93e41cf7824ce88a392026321cca637a8cf601e6100b74b06a4fe39b80
|
||||
|
||||
59
dev-java/javaparser-core/javaparser-core-3.26.3.ebuild
Normal file
59
dev-java/javaparser-core/javaparser-core-3.26.3.ebuild
Normal file
@ -0,0 +1,59 @@
|
||||
# Copyright 2023-2025 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:${PV}"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Java 1-21 Parser and Abstract Syntax Tree for Java"
|
||||
HOMEPAGE="https://javaparser.org/"
|
||||
SRC_URI="https://github.com/javaparser/javaparser/archive/${P/core/parent}.tar.gz -> javaparser-${PV}.tar.gz"
|
||||
S="${WORKDIR}/javaparser-${P/core/parent}"
|
||||
|
||||
LICENSE="Apache-2.0 LGPL-3"
|
||||
# dev-java/bnd-7.1.0 seems not to like this version.
|
||||
# biz.aQute.bnd.reporter/src/biz/aQute/bnd/reporter/codesnippet/JavaSnippetReader.java:20: error: cannot find symbol
|
||||
# import com.github.javaparser.printer.PrettyPrinterConfiguration;
|
||||
# ^
|
||||
# symbol: class PrettyPrinterConfiguration
|
||||
# location: package com.github.javaparser.printer
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
JAVACC_SLOT="7.0.13"
|
||||
BDEPEND="dev-java/javacc:${JAVACC_SLOT}"
|
||||
|
||||
# Does not compile with >=jdk:21 (not even with 'mvn clean compile'):
|
||||
# javaparser-core/src/main/java/com/github/javaparser/ast/NodeList.java:243:
|
||||
# error: getLast() in NodeList cannot implement getLast() in List
|
||||
# public Optional<N> getLast() {
|
||||
# ^
|
||||
# return type Optional<N> is not compatible with N
|
||||
# where N,E are type-variables:
|
||||
# N extends Node declared in class NodeList
|
||||
# E extends Object declared in interface List
|
||||
DEPEND="<virtual/jdk-21:*"
|
||||
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"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user