rubygem.cygclass

Cygport Reference Manual

### TABLE OF CONTENTS

- rubygem.cygclass

- RUBYGEM_NAME
- CATEGORY (rubygem)
- SUMMARY (rubygem)
- HOMEPAGE (rubygem)
- SRC_URI (rubygem)
- RUBYGEM_DIR
- RUBYGEM_INSTDIR
- RUBYGEM_SPEC
- RUBYGEM_DOCDIR
- RUBYGEM_EXTDIR
- rubygem_compile
- rubygem_install
- RUBYGEM_CONFIGURE_ARGS
- src_compile (rubygem)
- src_install (rubygem)

## rubygem.cygclass

[ Top ] [ Cygclasses ] [ Cygclasses ]

SYNOPSIS

      inherit rubygem

DESCRIPTION

RubyGems is a Ruby extension hosting service, much like CPAN is for Perl. Packages are distributed in the .gem format and have a unique installation scheme which allows for multiple versions of any package to be installed. Since Ruby 1.9, RubyGems is fully integrated into Ruby, and has become the preferred way to distribute Ruby extensions.

This cygclass provides a framework for building RubyGems packages for Cygwin.

INHERITS

ruby.cygclass

## RUBYGEM_NAME

[ Top ] [ rubygem.cygclass ] [ Overloads ]

DESCRIPTION

The original package name of the package as listed on RubyGems. The default value is NAME without the leading "ruby-", which covers most RubyGems packages. ORIG_PN is also supported for backwards compatibility.

## CATEGORY (rubygem)

[ Top ] [ rubygem.cygclass ] [ Overloads ]

DEFINITION

    CATEGORY="Ruby"

## SUMMARY (rubygem)

[ Top ] [ rubygem.cygclass ] [ Overloads ]

DEFINITION

    SUMMARY="Ruby ${NAME#ruby-} module"

## HOMEPAGE (rubygem)

[ Top ] [ rubygem.cygclass ] [ Overloads ]

DESCRIPTION

Default homepage of the Ruby module on RubyGems.

## SRC_URI (rubygem)

[ Top ] [ rubygem.cygclass ] [ Overloads ]

DESCRIPTION

Default download location of the Ruby module on RubyGems.

## RUBYGEM_DIR

[ Top ] [ rubygem.cygclass ] [ Definitions ]

DESCRIPTION

The RubyGems system root directory, namely /usr/share/gems.

## RUBYGEM_INSTDIR

[ Top ] [ rubygem.cygclass ] [ Definitions ]

DESCRIPTION

The directory containing the original runtime content of this particular Gem.

## RUBYGEM_SPEC

[ Top ] [ rubygem.cygclass ] [ Definitions ]

DESCRIPTION

The RubyGems specification file for this particular Gem.

## RUBYGEM_DOCDIR

[ Top ] [ rubygem.cygclass ] [ Definitions ]

DESCRIPTION

The directory containing the generated documentation of this particular Gem.

## RUBYGEM_EXTDIR

[ Top ] [ rubygem.cygclass ] [ Definitions ]

DESCRIPTION

The directory containing any native compiled extensions of this particular Gem.

## rubygem_compile

[ Top ] [ rubygem.cygclass ] [ Compile Functions ]

SYNOPSIS

      rubygem_compile

DESCRIPTION

Rebuilds the source gem (including any patches made to files in $S) and prepares it for installation.

## rubygem_install

[ Top ] [ rubygem.cygclass ] [ Install Functions ]

SYNOPSIS

      rubygem_install [CONFIGURE_FLAGS]

DESCRIPTION

Installs the gem contents into $D. Any arguments are passed to extconf.rb as configure flags.

SEE ALSO

RUBYGEM_CONFIGURE_ARGS

## RUBYGEM_CONFIGURE_ARGS

[ Top ] [ rubygem.cygclass ] [ Variables ]

DESCRIPTION

Configure flags to be passed to extconf.rb when compiling Gems with C extensions.

## src_compile (rubygem)

[ Top ] [ rubygem.cygclass ] [ Overloads ]

DEFINITION

    src_compile() {
            cd ${S}
            rubygem_compile
    }

## src_install (rubygem)

[ Top ] [ rubygem.cygclass ] [ Overloads ]

DEFINITION

    src_install() {
            cd ${S}
            rubygem_install
    }