Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-java
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Gentoo Java <gentoo-java@g.o>
From: Petteri R├Ąty <betelgeuse@g.o>
Subject: WANT_ANT_TASKS accepts full atoms now
Date: Thu, 10 Jul 2008 00:16:13 +0300
Now you can do like this:
WANT_ANT_TASKS="dev-java/batik:1.6"

Regards,
Petteri
Index: java-utils-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v
retrieving revision 1.109
diff -u -r1.109 java-utils-2.eclass
--- java-utils-2.eclass	7 Jul 2008 16:48:45 -0000	1.109
+++ java-utils-2.eclass	9 Jul 2008 21:14:47 -0000
@@ -1745,11 +1745,14 @@
 		local DEP=""
 		for i in ${WANT_ANT_TASKS}
 		do
-			if [[ ${i} != ant-* ]]; then
+			if [[ ${i} = ant-* ]]; then
+				DEP="${DEP}dev-java/${i} "
+			elif [[ ${i} = */*:* ]]; then
+				DEP="${DEP}${i} "
+			else
 				echo "Invalid atom in WANT_ANT_TASKS: ${i}"
 				return 1
 			fi
-			DEP="${DEP}dev-java/${i} "
 		done
 		echo ${DEP}
 		return 0
@@ -1890,8 +1893,19 @@
 		fi
 	done
 
+	# parse WANT_ANT_TASKS for atoms
+	local want_ant_tasks
+	for i in ${WANT_ANT_TASKS}; do
+		if [[ ${i} = */*:* ]]; then
+			i=${i#*/}
+			i=${i%:0}
+			want_ant_tasks+="${i/:/-} "
+		else
+			want_ant_tasks+="${i} "
+		fi
+	done
 	# default ANT_TASKS to WANT_ANT_TASKS, if ANT_TASKS is not set explicitly
-	ANT_TASKS="${ANT_TASKS:-${WANT_ANT_TASKS}}"
+	ANT_TASKS="${ANT_TASKS:-${want_ant_tasks% }}"
 
 	# override ANT_TASKS with JAVA_PKG_FORCE_ANT_TASKS if it's set
 	ANT_TASKS="${JAVA_PKG_FORCE_ANT_TASKS:-${ANT_TASKS}}"
Attachment:
signature.asc (OpenPGP digital signature)
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[Fwd: DLJ bundles for 5.0u16 and 6u7 have been posted on jdk-distros.dev.java.net]
Next by thread:
[no subject]
Previous by date:
[Fwd: DLJ bundles for 5.0u16 and 6u7 have been posted on jdk-distros.dev.java.net]
Next by date:
[no subject]


Updated Jun 17, 2009

Summary: Archive of the gentoo-java mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.