# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.39 2004/09/16 14:09:20 usata Exp $ # # Author: Mamoru KOMACHI # # The ruby eclass is designed to allow easier installation of ruby # softwares, and their incorporation into the Gentoo Linux system. # src_unpack, src_compile and src_install call a set of functions to emerge # ruby with SLOT support; econf, emake and einstall is a wrapper for ruby # to automate configuration, make and install process (they override default # econf, emake and einstall defined by ebuild.sh respectively). # Functions: # src_unpack Unpacks source archive(s) and apply patches if any. # src_compile Invokes econf and emake. # src_install Runs einstall and erubydoc. # econf Detects setup.rb, install.rb, extconf.rb and configure, # and then runs the configure script. # emake Runs make if any Makefile exists. # einstall Calls install script or Makefile. If both not present, # installs programs under sitedir. # erubydoc Finds any documents and puts them in the right place. # erubydoc needs more sophistication to handle all types of # appropriate documents. # Variables: # USE_RUBY Space delimited list of supported ruby. # Set it to "any" if it installs only version independent files. # If your ebuild supports both ruby 1.6 and 1.8 but has version # depenedent files such as libraries, set it to something like # "ruby16 ruby18". Possible values are "any ruby16 ruby18 ruby19" # EXTRA_ECONF You can pass extra arguments to econf by defining this # variable. Note that you cannot specify them by command line # if you are using