Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 528402 | Differences between
and this patch

Collapse All | Expand All

(-)jfreechart-1.0.14.ebuild (-18 / +24 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2015 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/jfreechart-1.0.14.ebuild,v 1.1 2013/05/22 13:10:16 tomwij Exp $
3
# $Header: $
4
4
5
EAPI="5"
5
EAPI=5
6
6
7
JAVA_PKG_IUSE="doc source"
7
JAVA_PKG_IUSE="doc source"
8
8
Lines 10-45 Link Here
10
10
11
DESCRIPTION="JFreeChart is a free Java class library for generating charts"
11
DESCRIPTION="JFreeChart is a free Java class library for generating charts"
12
HOMEPAGE="http://www.jfree.org/jfreechart"
12
HOMEPAGE="http://www.jfree.org/jfreechart"
13
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
14
14
15
LICENSE="LGPL-2.1"
15
LICENSE="LGPL-2.1"
16
SLOT="1.0"
16
SLOT="1.0"
17
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
17
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
18
19
IUSE="+servlet test"
18
IUSE="+servlet test"
20
19
21
COMMON_DEPEND="
20
COMMON_DEPEND="
22
	>=dev-java/itext-2.1.5:0
21
	>=dev-java/jcommon-1.0.23:1.0
23
	>=dev-java/jcommon-1.0.17:1.0
22
	>=dev-java/jfreesvg-2.0
24
	servlet? ( java-virtuals/servlet-api:2.3 )"
23
	servlet? ( java-virtuals/servlet-api:2.3 )"
25
24
26
DEPEND=">=virtual/jdk-1.4
25
DEPEND="${COMMON_DEPEND}
27
	${COMMON_DEPEND}
26
	app-arch/unzip
28
	test? ( dev-java/ant-junit:0 )"
27
	>=virtual/jdk-1.6
28
	test? (
29
		dev-java/ant-junit:0
30
		dev-java/junit:4
31
	)"
29
32
30
RDEPEND=">=virtual/jdk-1.4
33
RDEPEND="${COMMON_DEPEND}
31
	${COMMON_DEPEND}"
34
	>=virtual/jre-1.6"
32
35
33
JAVA_PKG_FILTER_COMPILER="jikes"
36
JAVA_PKG_FILTER_COMPILER="jikes"
34
37
35
src_prepare() {
38
src_prepare() {
36
	epatch "${FILESDIR}/${P}-build.xml.patch"
39
	epatch "${FILESDIR}/${PN}-1.0.19-build.xml.patch"
37
40
38
	# Fix test failure, obtained from
41
	# Fix test failure, obtained from
39
	# http://sourceforge.net/p/jfreechart/bugs/1100/
42
	# http://sourceforge.net/p/jfreechart/bugs/1100/
40
	epatch "${FILESDIR}/${P}-fix-TimeSeriesCollectionTests.patch"
43
	epatch "${FILESDIR}/${PN}-1.0.19-fix-TimeSeriesCollectionTest.patch"
44
45
	rm -v lib/*.jar || die
41
46
42
	rm -v *.jar lib/*.jar || die
47
	# links to orsonpdf which is only available for purchase under a commercial license
48
	rm -v "${P}-demo.jar" || die
43
49
44
	if ! use servlet; then
50
	if ! use servlet; then
45
		rm -rf source/org/jfree/chart/servlet || die
51
		rm -rf source/org/jfree/chart/servlet || die
Lines 71-84 Link Here
71
77
72
get_jars() {
78
get_jars() {
73
	local antflags="
79
	local antflags="
74
		-Ditext.jar=$(java-pkg_getjar itext iText.jar) \
80
		-Djcommon.jar=$(java-pkg_getjar jcommon-1.0 jcommon.jar) \
75
		-Djcommon.jar=$(java-pkg_getjar jcommon-1.0 jcommon.jar)"
81
		-Djfreesvg.jar=$(java-pkg_getjar jfreesvg-2.0 jfreesvg.jar)"
76
82
77
	use servlet && antflags="${antflags} \
83
	use servlet && antflags="${antflags} \
78
		-Dservlet.jar=$(java-pkg_getjars servlet-api-2.3)"
84
		-Dservlet.jar=$(java-pkg_getjars servlet-api-2.3)"
79
85
80
	use test && antflags="${antflags} \
86
	use test && antflags="${antflags} \
81
		-Djunit.jar=$(java-pkg_getjars --build-only junit)"
87
		-Djunit.jar=$(java-pkg_getjars --build-only junit-4)"
82
88
83
	echo "${antflags}"
89
	echo "${antflags}"
84
}
90
}

Return to bug 528402