dragonfly 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/usr/bin/env bash
  2. # new handlers for pkgng
  3. requirements_dragonfly_lib_installed()
  4. {
  5. pkg info | __rvm_grep "^$1" >/dev/null 2>&1 || return $?
  6. }
  7. requirements_dragonfly_libs_install()
  8. {
  9. __rvm_try_sudo pkg install -y "$@" || return $?
  10. }
  11. requirements_dragonfly_update_system()
  12. {
  13. __rvm_try_sudo pkg update || return $?
  14. }
  15. requirements_dragonfly_define()
  16. {
  17. case "$1" in
  18. (rvm)
  19. requirements_check bash curl
  20. ;;
  21. (jruby*)
  22. requirements_check make jdk
  23. if
  24. is_head_or_disable_binary "$1"
  25. then
  26. requirements_check git
  27. case $( jruby_installation_method "$1" ) in
  28. ant) __rvm_which ant >/dev/null || requirements_check apache-ant ;;
  29. mvn) requirements_check_custom_after mvn=maven ;;
  30. esac
  31. fi
  32. ;;
  33. (truffleruby*)
  34. requirements_check openssl gmake gcc libxml2
  35. ;;
  36. (ir*)
  37. requirements_check mono
  38. ;;
  39. (opal)
  40. requirements_check node
  41. ;;
  42. (*-head)
  43. requirements_check git
  44. requirements_freebsd_define "${1%-head}"
  45. ;;
  46. (*)
  47. # OpenSSL is installed by default
  48. requirements_check autoconf automake libtool bison readline libyaml sqlite3 gdbm
  49. __rvm_update_configure_opt_dir "$1" "/usr/local"
  50. ;;
  51. esac
  52. }