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

Collapse All | Expand All

(-)dev-java/jfreechart/jfreechart-1.0.13.ebuild (-8 / +17 lines)
Lines 2-8 Link Here
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.13.ebuild,v 1.5 2010/01/03 20:59:30 fauli Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/jfreechart-1.0.13.ebuild,v 1.5 2010/01/03 20:59:30 fauli Exp $
4
4
5
EAPI=2
5
EAPI=5
6
JAVA_PKG_IUSE="doc source"
6
JAVA_PKG_IUSE="doc source"
7
7
8
inherit java-pkg-2 java-ant-2
8
inherit java-pkg-2 java-ant-2
Lines 12-23 Link Here
12
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13
LICENSE="LGPL-2.1"
13
LICENSE="LGPL-2.1"
14
SLOT="1.0"
14
SLOT="1.0"
15
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
15
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
16
IUSE="test"
16
IUSE="+servlet test"
17
COMMON_DEPEND="
17
COMMON_DEPEND="
18
	>=dev-java/itext-1.4.6:0
18
	>=dev-java/itext-2.1.5:0
19
	dev-java/jcommon:1.0
19
	>=dev-java/jcommon-1.0.17:1.0
20
	java-virtuals/servlet-api:2.3"
20
	servlet? ( java-virtuals/servlet-api:2.3 )"
21
DEPEND=">=virtual/jdk-1.4
21
DEPEND=">=virtual/jdk-1.4
22
	${COMMON_DEPEND}
22
	${COMMON_DEPEND}
23
	test? ( dev-java/ant-junit:0 )"
23
	test? ( dev-java/ant-junit:0 )"
Lines 29-35 Link Here
29
src_prepare() {
29
src_prepare() {
30
	epatch "${FILESDIR}/${P}-build.xml.patch"
30
	epatch "${FILESDIR}/${P}-build.xml.patch"
31
31
32
	# Fix test failure, obtained from
33
	# http://sourceforge.net/p/jfreechart/bugs/1100/
34
	epatch "${FILESDIR}/${P}-fix-TimeSeriesCollectionTests.patch"
35
32
	rm -v *.jar lib/*.jar || die
36
	rm -v *.jar lib/*.jar || die
37
38
	if ! use servlet; then
39
		rm -rf source/org/jfree/chart/servlet || die
40
	fi
33
}
41
}
34
42
35
src_compile() {
43
src_compile() {
Lines 48-54 Link Here
48
src_install() {
56
src_install() {
49
	java-pkg_newjar lib/${P}.jar ${PN}.jar
57
	java-pkg_newjar lib/${P}.jar ${PN}.jar
50
	java-pkg_newjar lib/${P}-experimental.jar ${PN}-experimental.jar
58
	java-pkg_newjar lib/${P}-experimental.jar ${PN}-experimental.jar
51
	dodoc README.txt ChangeLog NEWS || die
59
	dodoc README.txt ChangeLog NEWS
52
	use doc && java-pkg_dojavadoc javadoc
60
	use doc && java-pkg_dojavadoc javadoc
53
	use source && java-pkg_dosrc source/org
61
	use source && java-pkg_dosrc source/org
54
}
62
}
Lines 56-62 Link Here
56
get_jars() {
64
get_jars() {
57
	local antflags="
65
	local antflags="
58
		-Ditext.jar=$(java-pkg_getjar itext iText.jar) \
66
		-Ditext.jar=$(java-pkg_getjar itext iText.jar) \
59
		-Djcommon.jar=$(java-pkg_getjar jcommon-1.0 jcommon.jar) \
67
		-Djcommon.jar=$(java-pkg_getjar jcommon-1.0 jcommon.jar)"
68
	use servlet && antflags="${antflags} \
60
		-Dservlet.jar=$(java-pkg_getjars servlet-api-2.3)"
69
		-Dservlet.jar=$(java-pkg_getjars servlet-api-2.3)"
61
	use test && antflags="${antflags} \
70
	use test && antflags="${antflags} \
62
		-Djunit.jar=$(java-pkg_getjars --build-only junit)"
71
		-Djunit.jar=$(java-pkg_getjars --build-only junit)"

Return to bug 460952