solus 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #!/usr/bin/env bash
  2. requirements_solus_lib_installed()
  3. {
  4. eopkg li --no-color | __rvm_grep "^$1[[:space:]]\+" > /dev/null 2>&1 || return $?
  5. }
  6. requirements_solus_lib_available()
  7. {
  8. eopkg la --no-color | __rvm_grep "^$1[[:space:]]\+" > /dev/null 2>&1 || return $?
  9. }
  10. requirements_solus_install_custom()
  11. {
  12. requirements_rvm_pkg_libs_install "$@" || return $?
  13. }
  14. requirements_solus_libs_install()
  15. {
  16. __rvm_try_sudo eopkg --no-color --yes-all it "$@" || return $?
  17. }
  18. requirements_solus_check_binary()
  19. {
  20. __rvm_which "$1" >/dev/null || return $?
  21. }
  22. requirements_solus_define()
  23. {
  24. case "$1" in
  25. (rvm)
  26. requirements_check bash curl patch ca-certs gawk bzip2
  27. ;;
  28. (jruby*)
  29. requirements_check make
  30. if
  31. is_head_or_disable_binary "$1"
  32. then
  33. requirements_solus_check_binary javac ||
  34. requirements_check_fallback openjdk-8-devel
  35. requirements_check git
  36. case $( jruby_installation_method "$1" ) in
  37. mvn) requirements_check_custom_after mvn=maven ;;
  38. esac
  39. else
  40. requirements_solus_check_binary java ||
  41. requirements_check_fallback openjdk-8
  42. fi
  43. ;;
  44. (ir*)
  45. true
  46. ;;
  47. (opal)
  48. true
  49. ;;
  50. (*-head)
  51. requirements_check git
  52. requirements_solus_define "${1%-head}"
  53. requirements_version_minimal autoconf 2.67
  54. ;;
  55. (*)
  56. if [[ ${#rvm_patch_names[@]} -gt 0 ]]
  57. then requirements_version_minimal autoconf 2.67
  58. fi
  59. requirements_check autoconf gcc g++ glibc-devel patch readline readline-devel \
  60. zlib zlib-devel libffi-devel openssl-devel make bzip2 automake libtool \
  61. bison sqlite3-devel yaml-devel gmp-devel pkg-config ncurses-devel binutils
  62. ;;
  63. esac
  64. }