diff options
author | 2009-11-30 20:53:49 +0100 | |
---|---|---|
committer | 2009-11-30 20:53:49 +0100 | |
commit | c5099eea68dda5c60fad5deb96569137ea80c058 (patch) | |
tree | d144c08136de908e1afc0f6b34099569110c12ab | |
parent | Avoid running rake when there is no test task. (diff) | |
download | ruby-scripts-c5099eea68dda5c60fad5deb96569137ea80c058.tar.gz ruby-scripts-c5099eea68dda5c60fad5deb96569137ea80c058.tar.bz2 ruby-scripts-c5099eea68dda5c60fad5deb96569137ea80c058.zip |
Documentation updates.
-rw-r--r-- | ruby-ng-testbed/eclass/ruby-fakegem.eclass | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ruby-ng-testbed/eclass/ruby-fakegem.eclass b/ruby-ng-testbed/eclass/ruby-fakegem.eclass index 2b3b04c..eb8256e 100644 --- a/ruby-ng-testbed/eclass/ruby-fakegem.eclass +++ b/ruby-ng-testbed/eclass/ruby-fakegem.eclass @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.75 2009/03/03 15:51:54 a3li Exp $ # -# @ECLASS: ruby-ng.eclass +# @ECLASS: ruby-fakegem.eclass # @MAINTAINER: # Ruby herd <ruby@gentoo.org> # @@ -58,6 +58,9 @@ ruby_add_rdepend virtual/rubygems # @FUNCTION: ruby_fakegem_gemsdir # @RETURN: Returns the gem data directory +# @DESCRIPTION: +# This function returns the gems data directory for the ruby +# implementation in question. ruby_fakegem_gemsdir() { local _gemsitedir=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]' | sed -e 's:site_ruby:gems:') @@ -69,6 +72,10 @@ ruby_fakegem_gemsdir() { echo "${_gemsitedir}" } +# @FUNCTION: ruby_fakegem_doins +# @USAGE: file [file...] +# @DESCRIPTION: +# Installs the specified file(s) into the gems directory. ruby_fakegem_doins() { ( insinto $(ruby_fakegem_gemsdir)/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION} @@ -76,6 +83,10 @@ ruby_fakegem_doins() { ) || die "failed $0 $@" } +# @FUNCTION: ruby_fakegem_newsins() +# @USAGE: file filename +# @DESCRIPTION: +# Installs the specified file into the gems directory using the provided filename. ruby_fakegem_newins() { ( # Since newins does not accept full paths but just basenames @@ -132,7 +143,7 @@ ruby_fakegem_binwrapper() { #!/usr/bin/env ruby # This is a simplified version of the RubyGems wrapper # -# Geneated by ruby-ng.eclass +# Generated by ruby-fakegem.eclass require 'rubygems' |