diff options
author | Hans de Graaff <graaff@gentoo.org> | 2015-07-05 09:10:53 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2015-07-05 09:10:53 +0000 |
commit | 515f7d23b1283f6ba5304f8c6d156e16c12ff897 (patch) | |
tree | b354c87dffff0b00f96eb8404a95d9b9776933b9 /eclass | |
parent | Dropping myself from metadata. (diff) | |
download | gentoo-2-515f7d23b1283f6ba5304f8c6d156e16c12ff897.tar.gz gentoo-2-515f7d23b1283f6ba5304f8c6d156e16c12ff897.tar.bz2 gentoo-2-515f7d23b1283f6ba5304f8c6d156e16c12ff897.zip |
Document that some variables must be set before inheriting the eclass.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/ruby-fakegem.eclass | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index 34d7ff842112..ac705db74c6e 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1699 2015/07/04 15:26:17 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1700 2015/07/05 09:10:53 graaff Exp $ + + 05 Jul 2015; Hans de Graaff <graaff@gentoo.org> ruby-fakegem.eclass: + Document that some variables must be set before inheriting the eclass. 04 Jul 2015; Mike Gilbert <floppym@gentoo.org> distutils-r1.eclass, python-any-r1.eclass, python-r1.eclass, python-single-r1.eclass, diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass index 2d362a727134..931aa1502b9d 100644 --- a/eclass/ruby-fakegem.eclass +++ b/eclass/ruby-fakegem.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.44 2014/12/28 10:13:18 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.45 2015/07/05 09:10:53 graaff Exp $ # @ECLASS: ruby-fakegem.eclass # @MAINTAINER: @@ -18,11 +18,13 @@ inherit ruby-ng # @ECLASS-VARIABLE: RUBY_FAKEGEM_NAME # @DESCRIPTION: # Sets the Gem name for the generated fake gemspec. +# This variable MUST be set before inheriting the eclass. # RUBY_FAKEGEM_NAME="${PN}" # @ECLASS-VARIABLE: RUBY_FAKEGEM_VERSION # @DESCRIPTION: # Sets the Gem version for the generated fake gemspec. +# This variable MUST be set before inheriting the eclass. # RUBY_FAKEGEM_VERSION="${PV}" # @ECLASS-VARIABLE: RUBY_FAKEGEM_TASK_DOC @@ -294,7 +296,7 @@ ruby_fakegem_genspec() { # so better taking this into consideration. local quoted_description=${DESCRIPTION//\"/\\\"} cat - > $1 <<EOF -# generated by ruby-fakegem.eclass $Revision: 1.44 $ +# generated by ruby-fakegem.eclass $Revision: 1.45 $ Gem::Specification.new do |s| s.name = "${RUBY_FAKEGEM_NAME}" s.version = "${RUBY_FAKEGEM_VERSION}" @@ -347,7 +349,7 @@ ruby_fakegem_binwrapper() { #!${rubycmd} # This is a simplified version of the RubyGems wrapper # -# Generated by ruby-fakegem.eclass $Revision: 1.44 $ +# Generated by ruby-fakegem.eclass $Revision: 1.45 $ require 'rubygems' |