diff options
author | Hans de Graaff <hans@degraaff.org> | 2009-12-06 14:01:56 +0100 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2009-12-06 14:01:56 +0100 |
commit | 97f91d0844fa880561d28dcf339fe7c30d75993a (patch) | |
tree | 891ea6159384d1a22609b9c72a4d5338191464ec | |
parent | Moved to the main tree. (diff) | |
download | ruby-scripts-97f91d0844fa880561d28dcf339fe7c30d75993a.tar.gz ruby-scripts-97f91d0844fa880561d28dcf339fe7c30d75993a.tar.bz2 ruby-scripts-97f91d0844fa880561d28dcf339fe7c30d75993a.zip |
Add missing documentation.
-rw-r--r-- | ruby-ng-testbed/eclass/ruby-fakegem.eclass | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ruby-ng-testbed/eclass/ruby-fakegem.eclass b/ruby-ng-testbed/eclass/ruby-fakegem.eclass index eb8256e..4a247d8 100644 --- a/ruby-ng-testbed/eclass/ruby-fakegem.eclass +++ b/ruby-ng-testbed/eclass/ruby-fakegem.eclass @@ -156,12 +156,19 @@ EOF ) || die "Unable to create fakegem wrapper" } +# @FUNCTION: all_fakegem_compile +# @DESCRIPTION: +# Build documentation for the package if indicated by the doc USE flag +# and if there is a documetation task defined. all_fakegem_compile() { if [[ ${RUBY_FAKEGEM_TASK_DOC} != "" ]] && use doc; then rake ${RUBY_FAKEGEM_TASK_DOC} || die "failed to (re)build documentation" fi } +# @FUNCTION: all_ruby_unpack +# @DESCRIPTION: +# Unpack the source archive, including support for unpacking gems. all_ruby_unpack() { # Special support for extracting .gem files; the file need to be # extracted twice and the mtime from the archive _has_ to be @@ -186,10 +193,16 @@ all_ruby_unpack() { fi } +# @FUNCTION: all_ruby_compile +# @DESCRIPTION: +# Compile the package. all_ruby_compile() { all_fakegem_compile } +# @FUNCTION: each_fakegem_test +# @DESCRIPTION: +# Run tests for the package for each ruby target if the test task is defined. each_fakegem_test() { local rubyflags= @@ -200,10 +213,16 @@ each_fakegem_test() { fi } +# @FUNCTION: each_ruby_test +# @DESCRIPTION: +# Run the tests for this package. each_ruby_test() { each_fakegem_test } +# @FUNCTION: each_fakegem_install +# @DESCRIPTION: +# Install the package for each ruby target. each_fakegem_install() { ruby_fakegem_genspec @@ -215,10 +234,16 @@ each_fakegem_install() { ruby_fakegem_doins -r ${_gemlibdirs} } +# @FUNCTION: each_ruby_install +# @DESCRIPTION: +# Install the package for each target. each_ruby_install() { each_fakegem_install } +# @FUNCTION: all_fakegem_install +# @DESCRIPTION: +# Install files common to all ruby targets. all_fakegem_install() { if [[ -n ${RUBY_FAKEGEM_DOCDIR} ]] && use doc; then pushd ${RUBY_FAKEGEM_DOCDIR} @@ -231,6 +256,9 @@ all_fakegem_install() { fi } +# @FUNCTION: all_ruby_install +# @DESCRIPTION: +# Install files common to all ruby targets. all_ruby_install() { all_fakegem_install } |