summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-07-19 05:48:09 +0000
committerHans de Graaff <graaff@gentoo.org>2011-07-19 05:48:09 +0000
commit1e0ef98401a10641e7a32617fb31f9e7ef92d3d1 (patch)
tree5d31ac465f7f2fdbe5b7dae33d7e18b70916802b /eclass/ruby-ng.eclass
parentVersion bump. (diff)
downloadgentoo-2-1e0ef98401a10641e7a32617fb31f9e7ef92d3d1.tar.gz
gentoo-2-1e0ef98401a10641e7a32617fb31f9e7ef92d3d1.tar.bz2
gentoo-2-1e0ef98401a10641e7a32617fb31f9e7ef92d3d1.zip
Add QA warning for deprecated * expansion in S. Use RUBY_S and EAPI=4 instead.
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r--eclass/ruby-ng.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index 872b8bc8ea45..0d32217c118e 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.34 2011/07/16 09:50:05 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.35 2011/07/19 05:48:09 graaff Exp $
#
# @ECLASS: ruby-ng.eclass
# @MAINTAINER:
@@ -287,6 +287,13 @@ _ruby_invoke_environment() {
# we allow the star glob to just expand to whatever directory it's
# called.
if [[ ${sub_S} = *"*"* ]]; then
+ case ${EAPI} in
+ 2|3)
+ #The old method of setting S depends on undefined package
+ # manager behaviour, so encourage upgrading to EAPI=4.
+ eqawarn "Using * expansion of S is deprecated. Use EAPI and RUBY_S instead."
+ ;;
+ esac
pushd "${WORKDIR}"/all &>/dev/null
sub_S=$(eval ls -d ${sub_S} 2>/dev/null)
popd &>/dev/null