ruby-install icon indicating copy to clipboard operation
ruby-install copied to clipboard

Convert `dependencies.txt` files into `dependencies.sh` files

Open postmodern opened this issue 1 year ago • 1 comments

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.

postmodern avatar Dec 01 '23 21:12 postmodern

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 libreadline or libedit. ⸺ https://github.com/ruby/ruby/blob/v3_3_0/NEWS.md#stdlib-compatibility-issues

ParadoxV5 avatar Dec 31 '23 00:12 ParadoxV5

Implemented by 25d4780 in the 0.10.0 branch.

postmodern avatar Jun 25 '24 19:06 postmodern