summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-06-04 20:59:32 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-06-04 20:59:32 +0000
commitd2e37776684fec8e20cf2902b7a9efd6ba5d71ef (patch)
tree432680197db24a735905a521c9b70acb23fae5d4 /dev-java/commons-digester/commons-digester-1.6-r1.ebuild
parentOnly one inherit line. (diff)
downloadgentoo-2-d2e37776684fec8e20cf2902b7a9efd6ba5d71ef.tar.gz
gentoo-2-d2e37776684fec8e20cf2902b7a9efd6ba5d71ef.tar.bz2
gentoo-2-d2e37776684fec8e20cf2902b7a9efd6ba5d71ef.zip
Introduced support for the source useflag, fixes #95057.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-java/commons-digester/commons-digester-1.6-r1.ebuild')
-rw-r--r--dev-java/commons-digester/commons-digester-1.6-r1.ebuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/dev-java/commons-digester/commons-digester-1.6-r1.ebuild b/dev-java/commons-digester/commons-digester-1.6-r1.ebuild
index 9e7d04d0a3fb..7553dcd29fb7 100644
--- a/dev-java/commons-digester/commons-digester-1.6-r1.ebuild
+++ b/dev-java/commons-digester/commons-digester-1.6-r1.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-digester/commons-digester-1.6-r1.ebuild,v 1.2 2005/05/29 15:44:53 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-digester/commons-digester-1.6-r1.ebuild,v 1.3 2005/06/04 20:59:32 luckyduck Exp $
inherit java-pkg
@@ -11,12 +11,13 @@ SRC_URI="mirror://apache/jakarta/commons/digester/source/${P}-src.tar.gz"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86"
-IUSE="doc jikes junit"
+IUSE="doc jikes junit source"
DEPEND=">=virtual/jdk-1.3
>=dev-java/ant-1.4
junit? ( >=dev-java/junit-3.7 )
- jikes? ( dev-java/jikes )"
+ jikes? ( dev-java/jikes )
+ source? ( app-arch/zip )"
RDEPEND=">=virtual/jdk-1.3
=dev-java/commons-beanutils-1.6*
>=dev-java/commons-collections-2.1
@@ -29,9 +30,9 @@ src_compile() {
use junit && antflags="${antflags} test"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
- use junit && antflags="${antflags} -Djunit.jar=`java-config --classpath=junit`"
- antflags="${antflags} -Dcommons-beanutils.jar=`java-config --classpath=commons-beanutils-1.6 | sed s/:.*//`"
- antflags="${antflags} -Dcommons-collections.jar=`java-config --classpath=commons-collections`"
+ use junit && antflags="${antflags} -Djunit.jar=$(java-config -p junit)"
+ antflags="${antflags} -Dcommons-beanutils.jar=$(java-config -p commons-beanutils-1.6 | sed s/:.*//)"
+ antflags="${antflags} -Dcommons-collections.jar=$(java-config -p commons-collections)"
antflags="${antflags} -Dcommons-logging.jar=/usr/share/commons-logging/lib/commons-logging.jar"
ant ${antflags} || die "compilation failed"
}
@@ -39,4 +40,5 @@ src_compile() {
src_install() {
java-pkg_dojar dist/${PN}.jar
use doc && java-pkg_dohtml -r dist/docs/api/*
+ use source && java-pkg_dosrc src/java/*
}