@@ -64,28 +64,29 @@ definitions.
6464
6565The build process may be configured through the following environment variables:
6666
67- | Variable | Function |
68- | ------------------------ | ------------------------------------------------------------------------------------------------ |
69- | ` TMPDIR ` | Where temporary files are stored. |
70- | ` RUBY_BUILD_BUILD_PATH ` | Where sources are downloaded and built. (Default: a timestamped subdirectory of ` TMPDIR ` ) |
71- | ` RUBY_BUILD_CACHE_PATH ` | Where to cache downloaded package files. (Default: ` ~/.rbenv/cache ` if invoked as rbenv plugin) |
72- | ` RUBY_BUILD_HTTP_CLIENT ` | One of ` aria2c ` , ` curl ` , or ` wget ` to use for downloading. (Default: first one found in PATH) |
73- | ` RUBY_BUILD_ARIA2_OPTS ` | Additional options to pass to ` aria2c ` for downloading. |
74- | ` RUBY_BUILD_CURL_OPTS ` | Additional options to pass to ` curl ` for downloading. |
75- | ` RUBY_BUILD_WGET_OPTS ` | Additional options to pass to ` wget ` for downloading. |
76- | ` RUBY_BUILD_MIRROR_URL ` | Custom mirror URL root. |
77- | ` RUBY_BUILD_SKIP_MIRROR ` | Bypass the download mirror and fetch all package files from their original URLs. |
78- | ` RUBY_BUILD_ROOT ` | Custom build definition directory. (Default: ` share/ruby-build ` ) |
79- | ` RUBY_BUILD_DEFINITIONS ` | Additional paths to search for build definitions. (Colon-separated list) |
80- | ` CC ` | Path to the C compiler. |
81- | ` RUBY_CFLAGS ` | Additional ` CFLAGS ` options (_ e.g.,_ to override ` -O3 ` ). |
82- | ` CONFIGURE_OPTS ` | Additional ` ./configure ` options. |
83- | ` MAKE ` | Custom ` make ` command (_ e.g.,_ ` gmake ` ). |
84- | ` MAKE_OPTS ` / ` MAKEOPTS ` | Additional ` make ` options. |
85- | ` MAKE_INSTALL_OPTS ` | Additional ` make install ` options. |
86- | ` RUBY_CONFIGURE_OPTS ` | Additional ` ./configure ` options (applies only to Ruby source). |
87- | ` RUBY_MAKE_OPTS ` | Additional ` make ` options (applies only to Ruby source). |
88- | ` RUBY_MAKE_INSTALL_OPTS ` | Additional ` make install ` options (applies only to Ruby source). |
67+ | Variable | Function |
68+ | ------------------------------- | ------------------------------------------------------------------------------------------------ |
69+ | ` TMPDIR ` | Where temporary files are stored. |
70+ | ` RUBY_BUILD_BUILD_PATH ` | Where sources are downloaded and built. (Default: a timestamped subdirectory of ` TMPDIR ` ) |
71+ | ` RUBY_BUILD_CACHE_PATH ` | Where to cache downloaded package files. (Default: ` ~/.rbenv/cache ` if invoked as rbenv plugin) |
72+ | ` RUBY_BUILD_HTTP_CLIENT ` | One of ` aria2c ` , ` curl ` , or ` wget ` to use for downloading. (Default: first one found in PATH) |
73+ | ` RUBY_BUILD_ARIA2_OPTS ` | Additional options to pass to ` aria2c ` for downloading. |
74+ | ` RUBY_BUILD_CURL_OPTS ` | Additional options to pass to ` curl ` for downloading. |
75+ | ` RUBY_BUILD_WGET_OPTS ` | Additional options to pass to ` wget ` for downloading. |
76+ | ` RUBY_BUILD_MIRROR_URL ` | Custom mirror URL root. |
77+ | ` RUBY_BUILD_MIRROR_PACKAGE_URL ` | Custom complete mirror URL (e.g. http://mirror.example.com/package-1.0.0.tar.gz). |
78+ | ` RUBY_BUILD_SKIP_MIRROR ` | Bypass the download mirror and fetch all package files from their original URLs. |
79+ | ` RUBY_BUILD_ROOT ` | Custom build definition directory. (Default: ` share/ruby-build ` ) |
80+ | ` RUBY_BUILD_DEFINITIONS ` | Additional paths to search for build definitions. (Colon-separated list) |
81+ | ` CC ` | Path to the C compiler. |
82+ | ` RUBY_CFLAGS ` | Additional ` CFLAGS ` options (_ e.g.,_ to override ` -O3 ` ). |
83+ | ` CONFIGURE_OPTS ` | Additional ` ./configure ` options. |
84+ | ` MAKE ` | Custom ` make ` command (_ e.g.,_ ` gmake ` ). |
85+ | ` MAKE_OPTS ` / ` MAKEOPTS ` | Additional ` make ` options. |
86+ | ` MAKE_INSTALL_OPTS ` | Additional ` make install ` options. |
87+ | ` RUBY_CONFIGURE_OPTS ` | Additional ` ./configure ` options (applies only to Ruby source). |
88+ | ` RUBY_MAKE_OPTS ` | Additional ` make ` options (applies only to Ruby source). |
89+ | ` RUBY_MAKE_INSTALL_OPTS ` | Additional ` make install ` options (applies only to Ruby source). |
8990
9091#### Applying Patches
9192
@@ -134,6 +135,10 @@ will fall back to downloading the package from the original location if:
134135
135136You may specify a custom mirror by setting ` RUBY_BUILD_MIRROR_URL ` .
136137
138+ If a mirror site doesn't conform to the above URL format, you can specify the
139+ complete URL by setting ` RUBY_BUILD_MIRROR_PACKAGE_URL ` . It behaves the same as
140+ ` RUBY_BUILD_MIRROR_URL ` except being a complete URL.
141+
137142The default ruby-build download mirror is sponsored by
138143[ Basecamp] ( https://basecamp.com/ ) .
139144
0 commit comments