| 1 | # Copyright 1999-2009 Gentoo Foundation |
1 | # Copyright 1999-2009 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.27 2009/07/05 16:46:05 graaff Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.28 2009/08/20 08:38:25 a3li Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: gems.eclass |
5 | # @ECLASS: gems.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # ruby@gentoo.org |
7 | # ruby@gentoo.org |
| 8 | # |
8 | # |
| … | |
… | |
| 78 | einfo "The ebuild doesn't set USE_RUBY explicitly. Defaulting to ruby18." |
78 | einfo "The ebuild doesn't set USE_RUBY explicitly. Defaulting to ruby18." |
| 79 | einfo "Please check compatibility and set USE_RUBY respectively." |
79 | einfo "Please check compatibility and set USE_RUBY respectively." |
| 80 | |
80 | |
| 81 | USE_RUBY="ruby18" |
81 | USE_RUBY="ruby18" |
| 82 | elif [[ "${USE_RUBY}" == "any" ]]; then |
82 | elif [[ "${USE_RUBY}" == "any" ]]; then |
| 83 | ewarn |
|
|
| 84 | ewarn "DEPRECATION NOTICE" |
|
|
| 85 | ewarn "USE_RUBY=\"any\" is deprecated. Please use explicit versions instead." |
83 | eerror "USE_RUBY=\"any\" is deprecated. Please use explicit versions instead." |
| 86 | ewarn "Support will be removed in April 2009." |
84 | die "USE_RUBY=\"any\" is deprecated." |
| 87 | ewarn "For questions, please contact ruby@gentoo.org." |
|
|
| 88 | ewarn |
|
|
| 89 | |
|
|
| 90 | # Get the installed versions. |
|
|
| 91 | USE_RUBY=`ls /usr/bin/ruby* | grep -E 'ruby1(8|9)' | sed -e 's@/usr/bin/@@g'` |
|
|
| 92 | fi |
85 | fi |
| 93 | |
86 | |
| 94 | local num_ruby_slots=$(echo "${USE_RUBY}" | wc -w) |
87 | local num_ruby_slots=$(echo "${USE_RUBY}" | wc -w) |
| 95 | |
88 | |
| 96 | for ruby_version in ${USE_RUBY} ; do |
89 | for ruby_version in ${USE_RUBY} ; do |