diff options
author | Jan Brinkmann <luckyduck@gentoo.org> | 2005-01-03 23:09:04 +0000 |
---|---|---|
committer | Jan Brinkmann <luckyduck@gentoo.org> | 2005-01-03 23:09:04 +0000 |
commit | b57e3da4ef6fb35d126b43725716d8a1bf0dbf0c (patch) | |
tree | fcf1fc1e383ebc28a3ad7fa424fa460a34e4879d /dev-java/commons-cli | |
parent | Stable on hppa. (Manifest recommit) (diff) | |
download | gentoo-2-b57e3da4ef6fb35d126b43725716d8a1bf0dbf0c.tar.gz gentoo-2-b57e3da4ef6fb35d126b43725716d8a1bf0dbf0c.tar.bz2 gentoo-2-b57e3da4ef6fb35d126b43725716d8a1bf0dbf0c.zip |
junit dependency now optional. fixes #75661.
Diffstat (limited to 'dev-java/commons-cli')
-rw-r--r-- | dev-java/commons-cli/ChangeLog | 6 | ||||
-rw-r--r-- | dev-java/commons-cli/commons-cli-1.0-r4.ebuild | 31 |
2 files changed, 27 insertions, 10 deletions
diff --git a/dev-java/commons-cli/ChangeLog b/dev-java/commons-cli/ChangeLog index 53fcdec3a23d..a913b3eeab08 100644 --- a/dev-java/commons-cli/ChangeLog +++ b/dev-java/commons-cli/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-java/commons-cli # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-cli/ChangeLog,v 1.16 2005/01/01 18:14:39 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-cli/ChangeLog,v 1.17 2005/01/03 23:09:04 luckyduck Exp $ + + 04 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> commons-cli-1.0-r4.ebuild: + junit dependency is now optional, controlled by the junit useflag. fixes + #75661. 18 Dec 2004; Markus Rothe <corsair@gentoo.org> commons-cli-1.0-r4.ebuild: added ~ppc64 to KEYWORDS diff --git a/dev-java/commons-cli/commons-cli-1.0-r4.ebuild b/dev-java/commons-cli/commons-cli-1.0-r4.ebuild index a2112358f011..5ce6c1d23e6b 100644 --- a/dev-java/commons-cli/commons-cli-1.0-r4.ebuild +++ b/dev-java/commons-cli/commons-cli-1.0-r4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-cli/commons-cli-1.0-r4.ebuild,v 1.6 2005/01/01 18:14:39 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-cli/commons-cli-1.0-r4.ebuild,v 1.7 2005/01/03 23:09:04 luckyduck Exp $ inherit java-pkg eutils @@ -8,11 +8,12 @@ DESCRIPTION="The CLI library provides a simple and easy to use API for working w HOMEPAGE="http://jakarta.apache.org/commons/cli/" SRC_URI="mirror://apache/jakarta/commons/cli/source/cli-${PV}-src.tar.gz" DEPEND=">=virtual/jdk-1.3 - >=dev-java/ant-1.4 + junit? ( >=dev-java/junit-3.7 ) + jikes? ( >=dev-java/jikes-1.21 ) + >=dev-java/ant-1.6.2" +RDEPEND=">=virtual/jre-1.3 >=dev-java/commons-logging-1.0 - >=dev-java/junit-3.7 >=dev-java/commons-lang-1.0" -RDEPEND=">=virtual/jdk-1.3" LICENSE="Apache-1.1" SLOT="1" KEYWORDS="x86 sparc ppc amd64 ~ppc64" @@ -21,24 +22,36 @@ IUSE="doc jikes junit" src_unpack() { unpack ${A} cd ${S} + epatch ${FILESDIR}/${PN}-${PV}-gentoo.diff || die "patch failed" echo "commons-logging.jar=`java-config -p commons-logging`" >> build.properties echo "commons-lang.jar=`java-config -p commons-lang`" >> build.properties - use junit && echo "junit.jar=`java-config -p junit`" >> build.properties + if use junit; then + echo "junit.jar=`java-config -p junit`" >> build.properties + fi } src_compile() { local antflags="jar" - use jikes && antflags="${antflags} -Dbuild.compiler=jikes" - use doc && antflags="${antflags} javadoc" - use junit && antflags="${antflags} test" + if use doc; then + antflags="${antflags} javadoc" + fi + if use junit; then + antflags="${antflags} test" + fi + if use jikes; then + antflags="${antflags} -Dbuild.compiler=jikes" + fi ant ${antflags} || die "compilation failed" } src_install() { mv ${S}/target/${P}.jar ${S}/target/${PN}.jar java-pkg_dojar target/${PN}.jar - use doc && java-pkg_dohtml -r target/docs/ + dodoc README.txt + if use doc; then + java-pkg_dohtml -r target/docs/ + fi } |