diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2008-01-07 16:45:12 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2008-01-07 16:45:12 +0000 |
commit | 1db7a29bcce6dc28c0417612ebb31f3d40eab2e6 (patch) | |
tree | 75508476fa0861ca25690a056a7298e98399b4b0 /dev-java/jfreechart/jfreechart-1.0.9.ebuild | |
parent | Fix javadoc generation. Reported in bug #204646. (diff) | |
download | historical-1db7a29bcce6dc28c0417612ebb31f3d40eab2e6.tar.gz historical-1db7a29bcce6dc28c0417612ebb31f3d40eab2e6.tar.bz2 historical-1db7a29bcce6dc28c0417612ebb31f3d40eab2e6.zip |
Version bump. Fixes regressions caused by 1.0.8 reported in bug #203193.
Package-Manager: portage-2.1.4_rc14
Diffstat (limited to 'dev-java/jfreechart/jfreechart-1.0.9.ebuild')
-rw-r--r-- | dev-java/jfreechart/jfreechart-1.0.9.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/dev-java/jfreechart/jfreechart-1.0.9.ebuild b/dev-java/jfreechart/jfreechart-1.0.9.ebuild new file mode 100644 index 000000000000..a7388904d3e5 --- /dev/null +++ b/dev-java/jfreechart/jfreechart-1.0.9.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/jfreechart-1.0.9.ebuild,v 1.1 2008/01/07 16:45:11 betelgeuse Exp $ + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="JFreeChart is a free Java class library for generating charts" +HOMEPAGE="http://www.jfree.org/jfreechart" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="LGPL-2.1" +SLOT="1.0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="test" +COMMON_DEPEND=" + >=dev-java/itext-1.4.6 + >=dev-java/jcommon-1.0.12 + =dev-java/servletapi-2.3*" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEPEND} + test? ( dev-java/ant-junit )" +RDEPEND=">=virtual/jdk-1.4 + ${COMMON_DEPEND}" + +src_unpack() { + unpack "${A}" + cd "${S}" + + # We do not fork junit tests because we need to disable X11 support for all tests + if use test; then + epatch "${FILESDIR}/${PN}-1.0.4-build.xml.patch" + fi + + rm -v *.jar lib/*.jar || die +} + +src_compile() { + # Note that compile-experimental depends on compile so it is sufficient to run + # just compile-experimental + eant -f ant/build.xml compile-experimental $(use_doc) $(get_jars) +} + +src_test() { + # X11 tests are disabled using java.awt.headless=true + ANT_TASKS="ant-junit" \ + ANT_OPTS="-Djava.awt.headless=true -Duser.timezone=UTC" \ + eant -f ant/build.xml test $(get_jars) +} + +src_install() { + java-pkg_newjar ${P}.jar ${PN}.jar + java-pkg_newjar ${P}-experimental.jar ${PN}-experimental.jar + dodoc README.txt ChangeLog NEWS || die + use doc && java-pkg_dojavadoc javadoc + use source && java-pkg_dosrc source/org +} + +get_jars() { + local antflags=" + -Ditext.jar=$(java-pkg_getjar itext iText.jar) \ + -Djcommon.jar=$(java-pkg_getjar jcommon-1.0 jcommon.jar) \ + -Dservlet.jar=$(java-pkg_getjars servletapi-2.3)" + use test && antflags="${antflags} \ + -Djunit.jar=$(java-pkg_getjars --build-only junit)" + echo "${antflags}" +} |