ruby-install
ruby-install copied to clipboard
Convert `dependencies.txt` files into `dependencies.sh` files
Replace the dependencies.txt file with shell script dependencies.sh files that better allow for dynamically defining package manager dependencies (ex: [email protected] vs. openssl@3 or jemalloc).
Example Code
case "$package_manager" in
apt) dependencies=(...) ;;
brew)
dependencies=(...)
case "$ruby_version" in
2.*|3.0.*) dependencies+=("[email protected]") ;;
*) dependencies+=("openssl@3") ;;
esac
;;
...
esac
The install_optional_deps and the fetch functions could also be removed. The load_dependencies function could be replaced with a simple source "$ruby/dependencies.sh" line.
No need to install Bison to build Ruby from source code anymore. ⸺ https://github.com/ruby/ruby/blob/v3_3_0/NEWS.md#parser
Similarly for readline, but it’s probably still used by the default gem readline 0.0.4
We no longer need to install libraries like
libreadlineorlibedit. ⸺ https://github.com/ruby/ruby/blob/v3_3_0/NEWS.md#stdlib-compatibility-issues
Implemented by 25d4780 in the 0.10.0 branch.