diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-07-27 11:02:47 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-07-27 11:02:47 +0000 |
commit | 80af02e4b1f4ed4063cf3a4a2dc6ab6e90f33ce8 (patch) | |
tree | 85df4b6c280415e20e302dc8529fb160eb222a29 /eclass/ruby-fakegem.eclass | |
parent | x86 stable, bug 329703 (diff) | |
download | gentoo-2-80af02e4b1f4ed4063cf3a4a2dc6ab6e90f33ce8.tar.gz gentoo-2-80af02e4b1f4ed4063cf3a4a2dc6ab6e90f33ce8.tar.bz2 gentoo-2-80af02e4b1f4ed4063cf3a4a2dc6ab6e90f33ce8.zip |
If RUBY_FAKEGEM_DOCDIR is set, the ebuild should have the doc USE flag.
Diffstat (limited to 'eclass/ruby-fakegem.eclass')
-rw-r--r-- | eclass/ruby-fakegem.eclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass index 07abf0fb78ad..d5349c9220dd 100644 --- a/eclass/ruby-fakegem.eclass +++ b/eclass/ruby-fakegem.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-fakegem.eclass,v 1.20 2010/07/21 10:43:57 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.21 2010/07/27 11:02:47 flameeyes Exp $ # # @ECLASS: ruby-fakegem.eclass # @MAINTAINER: @@ -73,6 +73,10 @@ if [[ ${RUBY_FAKEGEM_TASK_DOC} != "" ]]; then ruby_add_bdepend "doc? ( dev-ruby/rake )" fi +if [[ -n ${RUBY_FAKEGEM_DOCDIR} ]]; then + IUSE="$IUSE doc" +fi + if [[ ${RUBY_FAKEGEM_TASK_TEST} != "" ]]; then IUSE="$IUSE test" ruby_add_bdepend "test? ( dev-ruby/rake )" @@ -148,7 +152,7 @@ ruby_fakegem_genspec() { # so better taking this into consideration. local quoted_description=${DESCRIPTION//\"/\\\"} cat - > "${T}"/${RUBY_FAKEGEM_NAME}-${_ruby_implementation} <<EOF -# generated by ruby-fakegem.eclass $Revision: 1.20 $ +# generated by ruby-fakegem.eclass $Revision: 1.21 $ Gem::Specification.new do |s| s.name = "${RUBY_FAKEGEM_NAME}" s.version = "${RUBY_FAKEGEM_VERSION}" @@ -202,7 +206,7 @@ ruby_fakegem_binwrapper() { #!${rubycmd} # This is a simplified version of the RubyGems wrapper # -# Generated by ruby-fakegem.eclass $Revision: 1.20 $ +# Generated by ruby-fakegem.eclass $Revision: 1.21 $ require 'rubygems' |