aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-08-05 19:09:46 +0200
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-08-05 19:10:58 +0200
commit39eceea06e0858d598728ba5f31d0dd8b635ef5f (patch)
treec92a3c9321ec2abea1be17e37c1b5e81ff37a259 /eclass
parent[dev-java/swt] Drop old (diff)
downloadjava-39eceea06e0858d598728ba5f31d0dd8b635ef5f.tar.gz
java-39eceea06e0858d598728ba5f31d0dd8b635ef5f.tar.bz2
java-39eceea06e0858d598728ba5f31d0dd8b635ef5f.zip
[eclass] Fix IUSE.missing caused by java-maven-2.eclass
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-maven-2.eclass17
1 files changed, 14 insertions, 3 deletions
diff --git a/eclass/java-maven-2.eclass b/eclass/java-maven-2.eclass
index e9fadf33..b4b93097 100644
--- a/eclass/java-maven-2.eclass
+++ b/eclass/java-maven-2.eclass
@@ -1,13 +1,24 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit base java-pkg-2 java-ant-2
+# @ECLASS-VARIABLE: JAVA_MAVEN_USE_SOURCE
+# @DESCRIPTION:
+# If set to "false", do nothing.
+# If set to "true", add a conditional dependency on app-arch/zip
+: ${JAVA_MAVEN_USE_SOURCE:=true}
+
+if [[ ${JAVA_MAVEN_USE_SOURCE} = true ]] ; then
+ DEPEND="source? ( app-arch/zip )"
+fi
+
JAVA_MAVEN_COMMON_DEPS=">=dev-java/javatoolkit-0.3.0-r2"
-DEPEND="source? ( app-arch/zip )
- ${JAVA_MAVEN_COMMON_DEPS}"
+DEPEND="${DEPEND}
+ ${JAVA_MAVEN_COMMON_DEPS}
+"
RDEPEND="${JAVA_MAVEN_COMMON_DEPS}"