Commit graph

133 commits

Author SHA1 Message Date
Sam Stephenson
8e736c78f9 Unset RUBY_BUILD_CACHE_PATH if it's not a directory 2012-11-13 17:36:39 -06:00
Sam Stephenson
4f72a1591b CACHE_PATH -> RUBY_BUILD_CACHE_PATH 2012-11-13 17:34:08 -06:00
Sam Stephenson
f8e55e3996 Merge remote-tracking branch 'lloeki/tarball_cache_support' 2012-11-12 10:43:19 -06:00
Erik Michaels-Ober
0ef9259058 ruby-build 20121110 2012-11-10 13:38:48 -08:00
Loic Nageleisen
776c6e1d0e Simple, optional tarball cache support
Rationale:

Both in development and in production, some usage patterns of ruby-build
are slowed down by the download phase. In scenarios such as
troubleshooting failing builds or with provisioning situations (chef,
vagrant...) the repeated download is unnerving, bandwidth wasting and
simply against etiquette towards tarball hosters.

It also happens that some source sites happen to be down and in such
cases it is helpful to be able to sideload sources to rbenv.

Behavior:

By default nothing changes.

If the variable CACHE_PATH is set, then ruby-build will use that
directory to store a successful download, and will check before
downloading if the tarball is already there, in which case downloading
is skipped.

The file is first downloaded as before in the tmp subdirectory and only
moved afterwards, thus ensuring consistency.

There is no default cache path and the optional variable is to be set by
hand, ensuring people know what they're doing when using ruby-build.

Additionnally, rbenv-install will helpfully set CACHE_PATH if and only
if a RBENV_ROOT/cache directory exists. Again, the directory has to be
created manually.

The CACHE_PATH variable internally ends with a slash to mutualize
non-cached cases. Still, consistency is ensured whether or not a slash
is provided externally.

Notes:

I'm not quite sure CACHE_PATH is a good name, maybe
RUBY_BUILD_CACHE_PATH is better and less conflicting.
2012-11-07 16:43:15 +01:00
Erik Michaels-Ober
3fed3b492f ruby-build 20121104 2012-11-04 15:03:35 -08:00
Erik Michaels-Ober
14dc5d60b2 ruby-build 20121022 2012-10-22 13:40:51 -07:00
Erik Michaels-Ober
ce236dcfa6 ruby-build 20121020 2012-10-19 11:58:53 -07:00
SHIBATA Hiroshi
28b81a026f reviewed 2012-10-07 08:07:35 +09:00
SHIBATA Hiroshi
88aaff54e4 added build function using svn 2012-10-06 09:17:08 +09:00
Sam Stephenson
172b0680da ruby-build 20120815 2012-08-15 15:11:45 -05:00
Sam Stephenson
681d6b59f2 Simplify shared library function loading 2012-08-15 14:43:44 -05:00
Sam Stephenson
8446df21c1 Parse options so they can be combined (e.g. -kv) and occur anywhere on the command line 2012-08-15 13:37:20 -05:00
Sam Stephenson
b53c445c20 ruby-build 20120524 2012-05-24 13:58:27 -05:00
James Tucker
852778e84b Add a -k/--keep option to ruby-build to keep the build path around after builds 2012-04-28 15:26:45 -07:00
James Tucker
f6c2bfe8da ruby-build now supports $RUBY_BUILD_BUILD_PATH to specify the location of the BUILD_PATH instead of a seeded directory under TMP 2012-04-28 15:26:05 -07:00
Sam Stephenson
e69f559c7e ruby-build 20120423 2012-04-23 16:37:03 -05:00
Sam Stephenson
83b9ed07d6 Swallow all type output 2012-04-23 16:24:20 -05:00
Sam Stephenson
5e2ff56996 fetch_git shows an error if git is not installed 2012-04-23 16:19:41 -05:00
Sam Stephenson
48590792b2 Clean up fetch_url 2012-04-23 16:19:20 -05:00
Sam Stephenson
aa651b774c Clearer call to action (thanks @trevorturk) 2012-04-23 15:45:08 -05:00
Sam Stephenson
a4cf3ac14a Improve the OS X llvm-gcc error 2012-04-23 15:18:57 -05:00
Sam Stephenson
16a01222d0 Merge pull request #140 from jayferd/use-wget
use `wget` if it's available and curl isn't
2012-04-23 10:00:55 -07:00
Erich Kist
a353131e74 Update changelog for next release. Closes #158 2012-04-20 16:46:54 -07:00
Jay Adkisson
772e175a63 rename get -> fetch_url 2012-04-19 21:25:10 -07:00
Eric Saxby
415c9c1437 Set MAKE_OPTS only if MAKEOPTS is present [GH issue #149] 2012-03-30 13:06:50 -07:00
Jay Adkisson
46d7a6d7f9 use wget if it's available and curl isn't 2012-03-12 10:07:06 -07:00
Sam Stephenson
8304d38dd4 ruby-build 20120216 2012-02-16 15:04:47 -06:00
Sam Stephenson
c248f3f374 ruby-build 20111230 2011-12-30 13:58:29 -06:00
Sam Stephenson
272edbbcae Quote the argument to resolve_link 2011-12-30 13:58:12 -06:00
Sam Stephenson
c0a2d90cfb Look for gcc-* anywhere in $PATH. Fixes #109 2011-12-30 13:35:18 -06:00
Sam Stephenson
8e6e2372b8 Support MAKEOPTS in addition to MAKE_OPTS (#89) 2011-12-30 13:00:47 -06:00
Sam Stephenson
3b9d275f1d Merge remote-tracking branch 'theaboutbox/20111107-make-opts' 2011-12-30 12:53:43 -06:00
Sam Stephenson
27052985f8 Add a before_install_package hook for e.g. patching the source tree 2011-12-01 17:09:27 -06:00
Cameron Pope
b248025bbe Look for MAKE_OPTS to override options sent to make to address build failures on some systems 2011-11-07 18:40:18 -07:00
jc00ke
433f56cd00 Remove log info for rake & create symlinks 2011-11-01 14:17:06 -07:00
jc00ke
929711f8b1 Add definition for MagLev 2011-10-31 23:23:06 -07:00
Sam Stephenson
495b248d48 ruby-build 20111030 2011-10-30 11:02:34 -05:00
Sam Stephenson
709b309b56 Automatically delete $TEMP_PATH if it's empty 2011-10-30 10:39:07 -05:00
Sam Stephenson
63bcf2c9c1 Clarify the GCC-not-found message for OS X users 2011-10-30 10:31:40 -05:00
Sam Stephenson
c643c10fdb Pass $CONFIGURE_OPTS to the REE installer. Ref. #41, #69 2011-10-21 10:53:09 -05:00
Sam Stephenson
9463182dec Only show log info when something has been logged 2011-10-21 09:22:05 -05:00
Sam Stephenson
a7dc9b120a Merge pull request #61 from ryanfb/make_rbenv_install_dir
Some ruby-build definitions expect the target (parent) directory to exist
2011-10-21 06:57:26 -07:00
Ryan Baumann
e5c5f78dff build_package_copy should ensure the necessary parent path(s) for the copy exist 2011-10-21 01:08:21 -04:00
Sam Stephenson
7630d84b95 requires_gcc -> require_gcc 2011-10-20 17:46:33 -05:00
Sam Stephenson
102810d993 Better GCC detection 2011-10-20 17:33:31 -05:00
grosser
04d105d806 show log when failed 2011-10-19 21:22:07 +02:00
Sam Stephenson
6b4e36baae ruby-build 20110928 2011-09-28 13:19:50 -05:00
Guillermo Iguaran
11528d4691 Add shared build_package_jruby for all JRuby definitions 2011-09-25 15:06:22 -05:00
Chris Gunther
9979cc3998 move build_package_ree_installer function to ruby-build script 2011-09-22 11:49:16 -04:00
Jeremy Kemper
7de277248c Include --with-gcc config flag for gcc-4.2 on Lion, per 9151ed22b3 2011-09-15 23:36:19 -07:00
Sam Stephenson
2e8434892d ruby-build 20110914 2011-09-14 12:38:34 -05:00
Sam Stephenson
6b8e90384a Pass $CONFIGURE_OPTS to ./configure 2011-09-14 10:59:36 -05:00
Sam Stephenson
b08d735274 make_package should not print the "Installed" message 2011-09-14 10:59:28 -05:00
Sam Stephenson
c9de683381 pushd and popd are noisy 2011-09-14 10:49:06 -05:00
Jeremy Kemper
6ff599d664 Add install_git and refactor to support it. Pass package name, git url, git ref, and build commands. 2011-09-12 22:35:56 -07:00
Sam Stephenson
1985fb82fd ruby-build 20110906.1 2011-09-06 16:53:01 -05:00
Sam Stephenson
c3b57e5bc4 Revert "$PREFIX_PATH can be specified as a relative path"
This reverts commit 20f7b5c0e9.

Conflicts:

	bin/ruby-build
2011-09-06 16:53:01 -05:00
Sam Stephenson
f69655d2f4 ruby-build 20110906 2011-09-06 14:56:58 -05:00
Sam Stephenson
b10c5e16b7 Use $TMPDIR instead of /tmp if present. Closes #22. 2011-09-06 13:43:05 -05:00
Sam Stephenson
20f7b5c0e9 $PREFIX_PATH can be specified as a relative path 2011-09-06 13:41:47 -05:00
Sam Stephenson
e1b50e68e3 Ensure installed directories are not world-writable to avoid Bundler warnings 2011-09-06 13:25:56 -05:00
Sam Stephenson
7b4ee4cfe1 Avoid errant "build failed" message on OS X < 10.7. Fixes #13. 2011-09-06 10:14:17 -05:00
Sam Stephenson
9eb714a2ae Whitespace 2011-09-06 10:13:32 -05:00
Jeff Zellman
dd649ea2fb Changed ruby-build to use /usr/bin/env to support platforms where bash is not in /bin/ 2011-08-18 16:44:27 -05:00
marutanm
a93e60bc1f make bin/ruby-build executable 2011-08-17 22:38:28 +09:00
Paul Mucur
c6a552e793 Solaris doesn't come with readlink so use greadlink if available instead. (Taken from Ryan Tomayko's "GNU is killing Solaris", c.f. http://tomayko.com/writings/gnu-is-killing-solaris) 2011-08-16 23:22:52 +02:00
Joshua Peek
8063a6f05b Fix rbx gemsdir 2011-08-14 14:39:48 -05:00
Sam Stephenson
c87ceef0eb Fix Lion conditional 2011-08-10 10:28:01 -05:00
Sam Stephenson
2b26f23dde Trap failures and print an error message. Use file descriptors to avoid swallowing errors. 2011-08-07 15:41:20 -05:00
Sam Stephenson
1a8c14377f Fix --help 2011-08-07 12:44:52 -05:00
Sam Stephenson
a568cffd98 Add --definitions 2011-08-07 12:40:12 -05:00
Sam Stephenson
23dc3e2c00 Add -h/--help and -v/--verbose 2011-08-07 12:40:12 -05:00
Sam Stephenson
021280a3e1 Automatically look for built-in definitions 2011-08-07 12:40:12 -05:00
Sam Stephenson
e555c4b444 Use date+pid instead of random number 2011-08-07 12:40:11 -05:00
Joshua Peek
a9653dfe26 unset RUBYOPT and RUBYLIB 2011-08-05 11:29:36 -05:00
Sam Stephenson
532c4e764c Add Rubinius 1.2.4 2011-08-05 10:12:06 -05:00
Sam Stephenson
95fbfdb266 Unset $RUBYOPT 2011-08-03 23:49:31 -05:00
Sam Stephenson
acb2131f30 Use gcc-4.2 on Lion for 1.8.7 2011-08-03 23:47:23 -05:00
Sam Stephenson
624b61477d Quote $PREFIX_PATH in copy 2011-08-02 20:55:28 -05:00
Sam Stephenson
f353577f50 Add after_install_package hook 2011-08-02 20:55:10 -05:00
Joshua Peek
a141f4c5c5 Add JRuby 1.6.3 2011-08-02 20:21:23 -05:00
Sam Stephenson
8ef76b190e Initial commit 2011-08-02 08:46:34 -05:00