6.19. Using Ruby

Table 6.25. Useful Variables for Ports That Use Ruby
VariableDescription
USE_RUBYThe port requires Ruby.
USE_RUBY_EXTCONFThe port uses extconf.rb to configure.
USE_RUBY_SETUPThe port uses setup.rb to configure.
RUBY_SETUPSet to the alternative name of setup.rb. Common value is install.rb.

This table shows the selected variables available to port authors via the ports infrastructure. These variables are used to install files into their proper locations. Use them in pkg-plist as much as possible. Do not redefine these variables in the port.

Table 6.26. Selected Read-Only Variables for Ports That Use Ruby
VariableDescriptionExample value
RUBY_PKGNAMEPREFIXUsed as a PKGNAMEPREFIX to distinguish packages for different Ruby versions.ruby19-
RUBY_VERSIONFull version of Ruby in the form of x.y.z[.p].1.9.3.484
RUBY_SITELIBDIRArchitecture independent libraries installation path./usr/local/lib/ruby/site_ruby/1.9
RUBY_SITEARCHLIBDIRArchitecture dependent libraries installation path./usr/local/lib/ruby/site_ruby/1.9/amd64-freebsd10
RUBY_MODDOCDIRModule documentation installation path./usr/local/share/doc/ruby19/patsy
RUBY_MODEXAMPLESDIRModule examples installation path./usr/local/share/examples/ruby19/patsy

A complete list of available variables can be found in /usr/ports/Mk/bsd.ruby.mk.

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.