aboutsummaryrefslogtreecommitdiff
blob: 2312c2a897ac91e73b833f2c4c97c23a17495c1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit java-pkg-2 java-pkg-simple

DESCRIPTION="Java 1-15 Parser and Abstract Syntax Tree for Java."
HOMEPAGE="https://github.com/javaparser/javaparser"
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${PN}-parent-${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="|| ( Apache-2.0 LGPL-3 )"
SLOT="0"
KEYWORDS=""

CDEPEND="
	dev-java/javassist:3
"

DEPEND="${CDEPEND}
	>=virtual/jdk-1.8"

RDEPEND="${CDEPEND}
	>=virtual/jre-1.8"

S="${WORKDIR}/${PN}-${PN}-parent-${PV}"

JAVA_GENTOO_CLASSPATH="
	javassist-3
"

JAVA_SRC_DIR=(
	"${PN}-core"
	"${PN}-symbol-solver-core"
	"${PN}-core-serialization"
	"${PN}-core-metamodel-generator"
	"${PN}-core-generators"
)

# src_prepare() {
# 	# we need an additional unavailable dep for the tests
# 	rm -r */src/test || die
# 	default
# }

src_install() {
	einstalldocs
	java-pkg_dojar ${PN}.jar
}