public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alistair Bush (ali_bush)" <ali_bush@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: java-utils-2.eclass
Date: Tue, 02 Jun 2009 07:02:01 +0000	[thread overview]
Message-ID: <E1MBO0X-00064u-MB@stork.gentoo.org> (raw)

ali_bush    09/06/02 07:02:01

  Modified:             java-utils-2.eclass
  Log:
  Remove obsolete JAVA_PKG_VNEED support.

Revision  Changes    Path
1.128                eclass/java-utils-2.eclass

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-utils-2.eclass?rev=1.128&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-utils-2.eclass?rev=1.128&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-utils-2.eclass?r1=1.127&r2=1.128

Index: java-utils-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -r1.127 -r1.128
--- java-utils-2.eclass	19 May 2009 21:23:32 -0000	1.127
+++ java-utils-2.eclass	2 Jun 2009 07:02:01 -0000	1.128
@@ -6,7 +6,7 @@
 #
 # Licensed under the GNU General Public License, v2
 #
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.127 2009/05/19 21:23:32 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.128 2009/06/02 07:02:01 ali_bush Exp $
 
 # -----------------------------------------------------------------------------
 # @eclass-begin
@@ -1310,83 +1310,6 @@
 # ------------------------------------------------------------------------------
 
 # ------------------------------------------------------------------------------
-# @ebuild-function java-pkg_need
-#
-# Adds virtual dependencies, which can optionally be controlled by a USE flag.
-# Currently supported virtuals are:
-#	javamail
-#	jdbc-stdext
-#	jaf
-#	jdbc-rowset
-#	jms
-#
-# @param $1 - Optionally indicate that the dependencies are controlled by
-#				a use flag by specifying '--use' Requires $2.
-# @param $2 - USE flag which will enable the dependencies.
-# @param $@ - virtual packages to add depenedencies for
-# ------------------------------------------------------------------------------
-# TODO rewrite to parse a line based declaration file instead -- karltk
-#java-pkg_need() {
-#	debug-print-function ${FUNCNAME} $*
-#	local useflag
-#	if [[ ${1} == "--use" ]]; then
-#		useflag="${2}"
-#		shift 2
-#	fi
-#
-#	if [[ -z ${1} ]]; then
-#		die "Must specify at least one virtual package."
-#	fi
-#
-#	local depstr newdepstr
-#
-#	for virtual in ${@}; do
-#		if has ${virtual} ${JAVA_PKG_VNEED}; then
-#			debug-print "Already registered virtual ${virtual}"
-#			continue
-#		fi
-#		case ${virtual} in
-#			javamail)
-#				debug-print "java-pkg_need: adding javamail dependencies"
-#				newdepstr="|| ( dev-java/gnu-javamail dev-java/sun-javamail-bin )"
-#				;;
-#			jdbc-stdext)
-#				debug-print "java-pkg_need: adding jdbc-stdext dependencies"
-#				newdepstr="|| ( >=virtual/jdk-1.4 dev-java/jdbc2-stdext )"
-#				;;
-#			jaf)
-#				debug-print "java-pkg_need: adding jaf dependencies"
-#				newdepstr="|| ( dev-java/gnu-jaf dev-java/sun-jaf-bin )"
-#				;;
-#			jdbc-rowset)
-#				debug-print "java-pkg_need: adding jdbc-rowset dependencies"
-#			 	newdepstr="|| ( >=virtual/jdk-1.5 dev-java/sun-jdbc-rowset )"
-#				;;
-#			jms)
-#				debug-print "java-pkg_need: adding jms dependencies"
-#				newdepstr="|| ( dev-java/sun-jms dev-java/openjms )"
-#				;;
-#			*)
-#				die "Invalid virtual: ${virtual}"
-#		esac
-#
-#		export JAVA_PKG_VNEED="${JAVA_PKG_VNEED} ${virtual}"
-#
-#		if [[ -n ${useflag} ]]; then
-#			depstr="${depstr} ${useflag}? ( ${newdepstr} )"
-#		else
-#			depstr="${depstr} ${newdepstr}"
-#		fi
-#	done
-#
-#	[[ -z ${JAVA_PKG_NV_DEPEND} ]] && export JAVA_PKG_NV_DEPEND="${DEPEND}"
-#	[[ -z ${JAVA_PKG_NV_RDEPEND} ]] && export JAVA_PKG_NV_RDEPEND="${RDEPEND}"
-#
-#	export DEPEND="${DEPEND} ${depstr}"
-#	export RDEPEND="${RDEPEND} ${depstr}"
-#}
-
-# ------------------------------------------------------------------------------
 # @ebuild-function java-pkg_find-normal-jars
 #
 # Find the files with suffix .jar file in the given directory or $WORKDIR
@@ -2541,16 +2464,11 @@
 			export GENTOO_VM="${JAVA_PKG_FORCE_VM}"
 		# if we're allowed to switch the vm...
 		elif [[ "${JAVA_PKG_ALLOW_VM_CHANGE}" == "yes" ]]; then
-			debug-print "depend-java-query:  NV_DEPEND:	${JAVA_PKG_NV_DEPEND:-${DEPEND}} VNEED: ${JAVA_PKG_VNEED}"
-			if [[ -n ${JAVA_PKG_VNEED} ]]; then
-				GENTOO_VM="$(depend-java-query --need-virtual "${JAVA_PKG_VNEED}" --get-vm "${JAVA_PKG_NV_DEPEND:-${DEPEND}}")"
-			else
-				GENTOO_VM="$(depend-java-query --get-vm "${JAVA_PKG_NV_DEPEND:-${DEPEND}}")"
-			fi
+			debug-print "depend-java-query:  NV_DEPEND:	${JAVA_PKG_NV_DEPEND:-${DEPEND}}"
+			GENTOO_VM="$(depend-java-query --get-vm "${JAVA_PKG_NV_DEPEND:-${DEPEND}}")"
 			if [[ -z "${GENTOO_VM}" || "${GENTOO_VM}" == "None" ]]; then
 				eerror "Unable to determine VM for building from dependencies:"
 				echo "NV_DEPEND: ${JAVA_PKG_NV_DEPEND:-${DEPEND}}"
-				echo "VNEED: ${JAVA_PKG_VNEED}"
 				die "Failed to determine VM for building."
 			else
 				export GENTOO_VM






             reply	other threads:[~2009-06-02  7:02 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-02  7:02 Alistair Bush (ali_bush) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-10-29 14:05 [gentoo-commits] gentoo-x86 commit in eclass: java-utils-2.eclass Vlastimil Babka (caster)
2011-10-29 13:17 Vlastimil Babka (caster)
2011-10-02  8:10 Serkan Kaba (serkan)
2011-10-02  7:38 Serkan Kaba (serkan)
2011-09-10 14:32 Serkan Kaba (serkan)
2011-04-07 18:05 Serkan Kaba (serkan)
2011-03-26  0:43 Serkan Kaba (serkan)
2011-03-23 19:32 Serkan Kaba (serkan)
2011-03-15 19:54 Serkan Kaba (serkan)
2011-03-15 19:53 Serkan Kaba (serkan)
2010-04-28 19:40 Vlastimil Babka (caster)
2010-04-01 22:29 Vlastimil Babka (caster)
2010-03-24 12:11 Petteri Raty (betelgeuse)
2010-01-17 12:53 Petteri Raty (betelgeuse)
2009-06-07  8:22 Alistair Bush (ali_bush)
2009-05-19 21:23 Vlastimil Babka (caster)
2009-03-31 19:19 Petteri Raty (betelgeuse)
2009-03-27 20:58 Petteri Raty (betelgeuse)
2009-03-27 19:40 Petteri Raty (betelgeuse)
2009-03-27 18:52 Petteri Raty (betelgeuse)
2008-12-29  0:16 Vlastimil Babka (caster)
2008-12-20 19:25 Petteri Raty (betelgeuse)
2008-11-09  0:12 Vlastimil Babka (caster)
2008-10-10 20:11 Petteri Raty (betelgeuse)
2008-07-22 21:27 Petteri Raty (betelgeuse)
2008-07-19  9:24 Torsten Veller (tove)
2008-07-09 21:16 Petteri Raty (betelgeuse)
2008-05-03 21:28 Petteri Raty (betelgeuse)
2008-05-03 21:28 Petteri Raty (betelgeuse)
2008-03-26 23:00 Alistair Bush (ali_bush)
2008-03-03 17:55 Petteri Raty (betelgeuse)
2008-01-12 15:04 Vlastimil Babka (caster)
2008-01-12 15:03 Vlastimil Babka (caster)
2007-11-28  2:03 Petteri Raty (betelgeuse)
2007-11-28  1:54 Petteri Raty (betelgeuse)
2007-11-26 21:00 Petteri Raty (betelgeuse)
2007-11-26 20:38 Petteri Raty (betelgeuse)
2007-11-25  7:51 Vlastimil Babka (caster)
2007-09-27 19:47 Petteri Raty (betelgeuse)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1MBO0X-00064u-MB@stork.gentoo.org \
    --to=ali_bush@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox