ruby-single.eclass
Description
An eclass for packages which don't support being installed for multiple Ruby implementations. This mostly includes ruby-based scripts. Set USE_RUBY to include all the ruby targets that have been verified to work and include the eclass. RUBY_DEPS is now available to pull in the dependency on the requested ruby targets.
USE_RUBY="ruby27 ruby30"
inherit ruby-single
RDEPEND="${RUBY_DEPS}"
Variables
- USE_RUBY (REQUIRED) (SET BEFORE INHERIT)
-
This variable contains a space separated list of targets (see above) a package is compatible to. It must be set before the
Warning:`inherit' call. There is no default. All ebuilds are expected to set this variable.Warning:Inline interpreted text or phrase reference start-string without end-string.
- RUBY_DEPS
-
This is an eclass-generated Ruby dependency string for all implementations listed in USE_RUBY. Any one of the supported ruby targets will satisfy this dependency. A dependency on virtual/rubygems is also added to ensure that this is installed in time for the package to use it.
Example use:
RDEPEND="${RUBY_DEPS} dev-foo/mydep" BDEPEND="${RDEPEND}"
Example value:
|| ( dev-lang/ruby:3.0 dev-lang/ruby:2.7 ) virtual/rubygems
The order of dependencies will change over time to best match the current state of ruby targets, e.g. stable version first.
Authors
Author: Hans de Graaff <graaff@gentoo.org>
Based on python-single-r1 by: Michał Górny <mgorny@gentoo.org>
Maintainers
Ruby team <ruby@gentoo.org>
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/