| 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/ruby-ng.eclass,v 1.31 2011/04/25 06:27:22 graaff Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.32 2011/04/25 08:37:26 graaff Exp $ |
| 4 | # |
4 | # |
| 5 | # @ECLASS: ruby-ng.eclass |
5 | # @ECLASS: ruby-ng.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Ruby herd <ruby@gentoo.org> |
7 | # Ruby herd <ruby@gentoo.org> |
| 8 | # |
8 | # |
| … | |
… | |
| 257 | |
257 | |
| 258 | _ruby_invoke_environment() { |
258 | _ruby_invoke_environment() { |
| 259 | old_S=${S} |
259 | old_S=${S} |
| 260 | case ${EAPI} in |
260 | case ${EAPI} in |
| 261 | 4) |
261 | 4) |
|
|
262 | if [ -z ${RUBY_S} ]; then |
|
|
263 | sub_S=${P} |
|
|
264 | else |
| 262 | sub_S=${RUBY_S} |
265 | sub_S=${RUBY_S} |
|
|
266 | fi |
| 263 | ;; |
267 | ;; |
| 264 | *) |
268 | *) |
| 265 | sub_S=${S#${WORKDIR}/} |
269 | sub_S=${S#${WORKDIR}/} |
| 266 | ;; |
270 | ;; |
| 267 | esac |
271 | esac |