summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-07-27 11:02:47 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-07-27 11:02:47 +0000
commit5496ef2d1cf786056a3766a869cd14a2d71a3dc8 (patch)
tree82bedb3fbdcf156db79c8ea79cb6d426b5e0cc9c /eclass/ruby-fakegem.eclass
parentx86 stable, bug 329703 (diff)
downloadhistorical-5496ef2d1cf786056a3766a869cd14a2d71a3dc8.tar.gz
historical-5496ef2d1cf786056a3766a869cd14a2d71a3dc8.tar.bz2
historical-5496ef2d1cf786056a3766a869cd14a2d71a3dc8.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.eclass10
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'