Skip to content

Commit

Permalink
Combine similar dependency cases together.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jun 14, 2024
1 parent 25d4780 commit fdabace
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 111 deletions.
3 changes: 1 addition & 2 deletions share/ruby-install/jruby/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

case "$package_manager" in
apt) ruby_dependencies=(openjdk-8-jdk) ;;
dnf) ruby_dependencies=(java-openjdk) ;;
yum) ruby_dependencies=(java-openjdk) ;;
dnf|yum)ruby_dependencies=(java-openjdk) ;;
pacman) ruby_dependencies=(jre8-openjdk) ;;
zypper) ruby_dependencies=(java-1.8.0-openjdk) ;;
pkg) ruby_dependencies=(openjdk) ;;
Expand Down
28 changes: 3 additions & 25 deletions share/ruby-install/mruby/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,7 @@ case "$package_manager" in
bison
)
;;
dnf)
ruby_dependencies=(
gcc
make
bison
)
;;
yum)
ruby_dependencies=(
gcc
make
bison
)
;;
port) ruby_dependencies=(bison) ;;
brew) ruby_dependencies=(bison) ;;
pacman)
ruby_dependencies=(
gcc
make
bison
)
;;
zypper)
dnf|yum|pacman|zypper)
ruby_dependencies=(
gcc
make
Expand All @@ -44,5 +21,6 @@ case "$package_manager" in
bison
)
;;
xbps) ruby_dependencies=(base-devel) ;;
brew|port) ruby_dependencies=(bison) ;;
xbps) ruby_dependencies=(base-devel) ;;
esac
50 changes: 12 additions & 38 deletions share/ruby-install/ruby/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$package_manager" in
libffi-dev
)
;;
dnf)
dnf|yum)
ruby_dependencies=(
xz
gcc
Expand All @@ -30,43 +30,6 @@ case "$package_manager" in
libffi-devel
)
;;
yum)
ruby_dependencies=(
xz
gcc
automake
bison
zlib-devel
libyaml-devel
openssl-devel
gdbm-devel
readline-devel
ncurses-devel
libffi-devel
)
;;
port)
ruby_dependencies=(
xz
automake
bison
readline
libyaml
gdbm
libffi
)
;;
brew)
ruby_dependencies=(
xz
automake
bison
readline
libyaml
gdbm
libffi
)
;;
pacman)
ruby_dependencies=(
xz
Expand Down Expand Up @@ -97,6 +60,17 @@ case "$package_manager" in
libffi-devel
)
;;
brew|port)
ruby_dependencies=(
xz
automake
bison
readline
libyaml
gdbm
libffi
)
;;
pkg)
ruby_dependencies=(
openssl
Expand Down
36 changes: 13 additions & 23 deletions share/ruby-install/truffleruby-graalvm/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ case "$package_manager" in
libyaml-dev
)
;;
dnf)
dnf|yum)
ruby_dependencies=(
make
gcc
Expand All @@ -21,28 +21,6 @@ case "$package_manager" in
libyaml-devel
)
;;
yum)
ruby_dependencies=(
make
gcc
zlib-devel
openssl-devel
libxml2
libyaml-devel
)
;;
port)
ruby_dependencies=(
openssl
libyaml
)
;;
brew)
ruby_dependencies=(
openssl@1.1
libyaml
)
;;
pacman)
ruby_dependencies=(
make
Expand Down Expand Up @@ -72,6 +50,18 @@ case "$package_manager" in
libyaml
)
;;
brew)
ruby_dependencies=(
openssl@1.1
libyaml
)
;;
port)
ruby_dependencies=(
openssl
libyaml
)
;;
xbps)
ruby_dependencies=(
base-devel
Expand Down
36 changes: 13 additions & 23 deletions share/ruby-install/truffleruby/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ case "$package_manager" in
libyaml-dev
)
;;
dnf)
dnf|yum)
ruby_dependencies=(
make
gcc
Expand All @@ -21,28 +21,6 @@ case "$package_manager" in
libyaml-devel
)
;;
yum)
ruby_dependencies=(
make
gcc
zlib-devel
openssl-devel
libxml2
libyaml-devel
)
;;
port)
ruby_dependencies=(
openssl
libyaml
)
;;
brew)
ruby_dependencies=(
openssl@1.1
libyaml
)
;;
pacman)
ruby_dependencies=(
make
Expand All @@ -63,6 +41,18 @@ case "$package_manager" in
libyaml-devel
)
;;
port)
ruby_dependencies=(
openssl
libyaml
)
;;
brew)
ruby_dependencies=(
openssl@1.1
libyaml
)
;;
pkg)
ruby_dependencies=(
gmake
Expand Down

0 comments on commit fdabace

Please sign in to comment.