summaryrefslogtreecommitdiff
path: root/dev-java/jchart2d/jchart2d-3.2.2-r1.ebuild
blob: fe2e13524222bce5bbe705f9bb3acb1968f50491 (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

JAVA_PKG_IUSE="doc source"
MAVEN_ID="net.sf.jchart2d:jchart2d:3.2.2"
# JAVA_TESTING_FRAMEWORKS="junit-4"

inherit java-pkg-2 java-pkg-simple

DESCRIPTION="A minimalistic realtime charting library for Java"
HOMEPAGE="http://jchart2d.sourceforge.net"
SRC_URI="mirror://sourceforge/project/jchart2d/jchart2d/sources/jchart2d-eclipse-project-${PV}.zip"

LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

CP_DEPEND="dev-java/jide-oss:0
	dev-java/xmlgraphics-commons:2"

DEPEND=">=virtual/jdk-1.8:*
	${CP_DEPEND}"

RDEPEND=">=virtual/jre-1.8:*
	${CP_DEPEND}"

BDEPEND="
	app-arch/unzip"

S="${WORKDIR}/${PN}"

DOCS=( ../NOTICE-apache-xmlgraphics-commons )

JAVA_SRC_DIR="src"

# FAILURES!!!
# Tests run: 212,  Failures: 119
# JAVA_TEST_SRC_DIR="test"
# JAVA_TEST_GENTOO_CLASSPATH="junit-4"

src_prepare() {
	default
	java-pkg_clean

	# src/Bug3553696.java:3: error: package info.monitorenter.gui.chart.tracepoints does not exist
	# import info.monitorenter.gui.chart.tracepoints.TracePoint2D;
	#                                               ^
	rm src/Bug3553696.java || die
}

src_install() {
	default # https://bugs.gentoo.org/789582
	java-pkg-simple_src_install
}