1 |
flameeyes 10/07/27 11:02:47 |
2 |
|
3 |
Modified: ruby-fakegem.eclass |
4 |
Log: |
5 |
If RUBY_FAKEGEM_DOCDIR is set, the ebuild should have the doc USE flag. |
6 |
|
7 |
Revision Changes Path |
8 |
1.21 eclass/ruby-fakegem.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ruby-fakegem.eclass?rev=1.21&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ruby-fakegem.eclass?rev=1.21&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ruby-fakegem.eclass?r1=1.20&r2=1.21 |
13 |
|
14 |
Index: ruby-fakegem.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v |
17 |
retrieving revision 1.20 |
18 |
retrieving revision 1.21 |
19 |
diff -u -r1.20 -r1.21 |
20 |
--- ruby-fakegem.eclass 21 Jul 2010 10:43:57 -0000 1.20 |
21 |
+++ ruby-fakegem.eclass 27 Jul 2010 11:02:47 -0000 1.21 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2009 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.20 2010/07/21 10:43:57 flameeyes Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.21 2010/07/27 11:02:47 flameeyes Exp $ |
27 |
# |
28 |
# @ECLASS: ruby-fakegem.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -73,6 +73,10 @@ |
31 |
ruby_add_bdepend "doc? ( dev-ruby/rake )" |
32 |
fi |
33 |
|
34 |
+if [[ -n ${RUBY_FAKEGEM_DOCDIR} ]]; then |
35 |
+ IUSE="$IUSE doc" |
36 |
+fi |
37 |
+ |
38 |
if [[ ${RUBY_FAKEGEM_TASK_TEST} != "" ]]; then |
39 |
IUSE="$IUSE test" |
40 |
ruby_add_bdepend "test? ( dev-ruby/rake )" |
41 |
@@ -148,7 +152,7 @@ |
42 |
# so better taking this into consideration. |
43 |
local quoted_description=${DESCRIPTION//\"/\\\"} |
44 |
cat - > "${T}"/${RUBY_FAKEGEM_NAME}-${_ruby_implementation} <<EOF |
45 |
-# generated by ruby-fakegem.eclass $Revision: 1.20 $ |
46 |
+# generated by ruby-fakegem.eclass $Revision: 1.21 $ |
47 |
Gem::Specification.new do |s| |
48 |
s.name = "${RUBY_FAKEGEM_NAME}" |
49 |
s.version = "${RUBY_FAKEGEM_VERSION}" |
50 |
@@ -202,7 +206,7 @@ |
51 |
#!${rubycmd} |
52 |
# This is a simplified version of the RubyGems wrapper |
53 |
# |
54 |
-# Generated by ruby-fakegem.eclass $Revision: 1.20 $ |
55 |
+# Generated by ruby-fakegem.eclass $Revision: 1.21 $ |
56 |
|
57 |
require 'rubygems' |