| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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.39 2011/08/22 04:46:32 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.40 2011/10/05 17:46:20 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 | # @AUTHOR: |
8 | # @AUTHOR: |
| … | |
… | |
| 66 | # is linked against libruby. There are cases were this is not the case |
66 | # is linked against libruby. There are cases were this is not the case |
| 67 | # and the shared object is generic code to be used in some other way |
67 | # and the shared object is generic code to be used in some other way |
| 68 | # (e.g. selenium's firefox driver extension). When set this argument is |
68 | # (e.g. selenium's firefox driver extension). When set this argument is |
| 69 | # passed to "grep -E" to remove reporting of these shared objects. |
69 | # passed to "grep -E" to remove reporting of these shared objects. |
| 70 | |
70 | |
| 71 | inherit eutils toolchain-funcs |
71 | inherit eutils java-utils-2 toolchain-funcs |
| 72 | |
72 | |
| 73 | EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_install pkg_setup |
73 | EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_install pkg_setup |
| 74 | |
74 | |
| 75 | case ${EAPI} in |
75 | case ${EAPI} in |
| 76 | 0|1) |
76 | 0|1) |
| … | |
… | |
| 392 | ruby-ng_pkg_setup() { |
392 | ruby-ng_pkg_setup() { |
| 393 | # This only checks that at least one implementation is present |
393 | # This only checks that at least one implementation is present |
| 394 | # before doing anything; by leaving the parameters empty we know |
394 | # before doing anything; by leaving the parameters empty we know |
| 395 | # it's a special case. |
395 | # it's a special case. |
| 396 | _ruby_each_implementation |
396 | _ruby_each_implementation |
|
|
397 | |
|
|
398 | use ruby_targets_jruby && java-pkg_setup-vm |
| 397 | } |
399 | } |
| 398 | |
400 | |
| 399 | # @FUNCTION: ruby-ng_src_unpack |
401 | # @FUNCTION: ruby-ng_src_unpack |
| 400 | # @DESCRIPTION: |
402 | # @DESCRIPTION: |
| 401 | # Unpack the source archive. |
403 | # Unpack the source archive. |