/[gentoo-x86]/eclass/gems.eclass
Gentoo

Diff of /eclass/gems.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.25 Revision 1.26
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.25 2009/03/17 19:39:51 a3li Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.26 2009/05/23 12:22:06 flameeyes 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#
24 24
25IUSE="doc" 25IUSE="doc"
26 26
27DEPEND=" 27DEPEND="
28 || ( >=dev-ruby/rubygems-0.9.4 =dev-lang/ruby-1.9* ) 28 || ( >=dev-ruby/rubygems-0.9.4 =dev-lang/ruby-1.9* )
29 !dev-ruby/rdoc 29 !<dev-ruby/rdoc-2
30" 30"
31RDEPEND="${DEPEND}" 31RDEPEND="${DEPEND}"
32 32
33# @FUNCTION: gems_location 33# @FUNCTION: gems_location
34# @USAGE: [Ruby binary] 34# @USAGE: [Ruby binary]
58gems_src_compile() { 58gems_src_compile() {
59 true 59 true
60} 60}
61 61
62# @FUNCTION: gems_src_install 62# @FUNCTION: gems_src_install
63# @DESCRIPTION: 63# @DESCRIPTION:
64# Installs the gem 64# Installs the gem
65gems_src_install() { 65gems_src_install() {
66 local myconf 66 local myconf
67 if use doc; then 67 if use doc; then
68 myconf="--rdoc --ri" 68 myconf="--rdoc --ri"
75 # against 1.8 can explode under 1.9. 75 # against 1.8 can explode under 1.9.
76 if [[ -z "${USE_RUBY}" ]]; then 76 if [[ -z "${USE_RUBY}" ]]; then
77 einfo "QA notice" 77 einfo "QA notice"
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 83 ewarn
84 ewarn "DEPRECATION NOTICE" 84 ewarn "DEPRECATION NOTICE"
85 ewarn "USE_RUBY=\"any\" is deprecated. Please use explicit versions instead." 85 ewarn "USE_RUBY=\"any\" is deprecated. Please use explicit versions instead."

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20