blob: 1a50af5658979718ed167e93a17d5b919bfe32e3 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JAVA_PKG_IUSE="doc source test"
MAVEN_PROVIDES="
net.minidev:accessors-smart:${PV}
net.minidev:json-smart:${PV}
"
JAVA_TESTING_FRAMEWORKS="junit-4"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="JSON Small and Fast Parser"
HOMEPAGE="https://urielch.github.io"
SRC_URI="https://github.com/netplex/json-smart-v2/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-v2-${PV}"
LICENSE="Apache-2.0"
SLOT="2"
KEYWORDS="amd64 ~arm64 x86"
RESTRICT="test" #839681
DEPEND="
dev-java/asm:9
>=virtual/jdk-1.8:*
"
RDEPEND=">=virtual/jre-1.8:*"
src_compile() {
einfo "Compiling accessors-smart.jar"
JAVA_CLASSPATH_EXTRA="asm-9"
JAVA_JAR_FILENAME="accessors-smart.jar"
JAVA_SRC_DIR="accessors-smart/src/main/java"
java-pkg-simple_src_compile
JAVA_GENTOO_CLASSPATH_EXTRA+=":accessors-smart.jar"
rm -r target || die
einfo "Compiling json-smart.jar"
JAVA_JAR_FILENAME="json-smart.jar"
JAVA_SRC_DIR="json-smart/src/main/java"
java-pkg-simple_src_compile
JAVA_GENTOO_CLASSPATH_EXTRA+=":json-smart.jar"
rm -r target || die
if use doc; then
einfo "Compiling javadocs"
JAVA_SRC_DIR=(
accessors-smart/src/main/java
json-smart/src/main/java
)
JAVA_JAR_FILENAME="ignoreme.jar"
java-pkg-simple_src_compile
fi
}
src_install() {
einstalldocs
java-pkg_dojar "accessors-smart.jar"
java-pkg_dojar "json-smart.jar"
if use doc; then
java-pkg_dojavadoc target/api
fi
if use source; then
java-pkg_dosrc "accessors-smart/src/main/java/*"
java-pkg_dosrc "json-smart/src/main/java/*"
fi
}
|