From c899613fa83f5c2650c86d46d2eb203c62eeb5c6 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sat, 16 Jul 2005 12:20:22 +0000 Subject: [PATCH] 6.11 Using Ruby section: - Document most common variables for Ruby related ports Approved by: remko --- .../books/porters-handbook/book.sgml | 122 +++++++++++++++++- 1 file changed, 121 insertions(+), 1 deletion(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml index 8ee8f454c3..a7347df8c9 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml @@ -5144,7 +5144,127 @@ _DOCSDIR= . Using Ruby - This section is yet to be written. + + Useful variables for ports that use Ruby + + + + + Variable + Description + + + + + USE_RUBY + + The port requires Ruby. + + + + USE_RUBY_EXTCONF + + The port uses extconf.rb to + configure. + + + + USE_RUBY_SETUP + + The port uses setup.rb to + configure. + + + + RUBY_SETUP + + Set to the alternative name of + setup.rb. Common value is + install.rb. + + + + +
+ + The following table shows the selected variables available to port + authors via the ports infrastructure. These variables should be used + to install files into their proper locations. Use them in + pkg-plist as much as possible. These variables + should not be redefined in the port. + + + Selected read-only variables for ports that use Ruby + + + + + Variable + Description + Example value + + + + + + RUBY_PKGNAMEPREFIX + + Used as a PKGNAMEPREFIX to distinguish + packages for different Ruby versions. + + ruby18- + + + + RUBY_VERSION + + Full version of Ruby in the form of + x.y.z. + + 1.8.2 + + + + RUBY_SITELIBDIR + + Architecture independent libraries installation + path. + + /usr/local/lib/ruby/site_ruby/1.8 + + + + RUBY_SITEARCHILIBDIR + + Architecture dependent libraries installation + path. + + /usr/local/lib/ruby/site_ruby/1.8/amd64-freebsd6 + + + + RUBY_MODDOCDIR + + Module documentation installation path. + + /usr/local/share/doc/ruby18/patsy + + + + RUBY_MODEXAMPLESDIR + + Module examples installation path. + + /usr/local/share/examples/ruby18/patsy + + + + +
+ + A complete list of available variables can be found in + /usr/ports/Mk/bsd.ruby.mk. +