aboutsummaryrefslogtreecommitdiff
blob: aec33a6b790f91966deca026b271733bd017db8a (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
# 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

MY_PV="${PV//_/.}"

DESCRIPTION="High Performance Primitive Collections for Java"
HOMEPAGE="https://github.com/carrotsearch/hppc"
SRC_URI="https://github.com/carrotsearch/hppc/archive/refs/tags/${MY_PV^^}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS=""

CDEPEND="
	dev-java/antlr:4
	dev-java/fastutil:0
	dev-java/javaparser:0
	dev-java/jcommander:0
	dev-java/jmh-core:0
	dev-java/koloboke:0
	dev-java/velocity:0
	dev-java/slf4j-simple:0
"

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

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

S="${WORKDIR}/${PN}-${MY_PV^^}"

JAVA_GENTOO_CLASSPATH="
	antlr:4
	fastutil
	javaparser
	jcommander
	jmh-core
	koloboke
	velocity
	slf4j-simple
"

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
}