gentoo 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/usr/bin/env bash
  2. source "$rvm_scripts_path/functions/requirements/gentoo_paludis"
  3. source "$rvm_scripts_path/functions/requirements/gentoo_pkgcore"
  4. source "$rvm_scripts_path/functions/requirements/gentoo_portage"
  5. requirements_gentoo_before()
  6. {
  7. \typeset __iterator
  8. for __iterator in gentoo_portage gentoo_paludis gentoo_pkgcore
  9. do
  10. if
  11. requirements_find_${__iterator}
  12. then
  13. __lib_type=${__iterator}
  14. return 0
  15. fi
  16. done
  17. # fallback
  18. __lib_type=gentoo_portage
  19. }
  20. requirements_gentoo_define()
  21. {
  22. case "$1" in
  23. (rvm)
  24. requirements_check net-misc/curl sys-devel/patch app-shells/bash
  25. ;;
  26. (jruby*)
  27. requirements_check make
  28. if
  29. is_head_or_disable_binary "$1"
  30. then
  31. requirements_check virtual/jdk dev-vcs/git
  32. case $( jruby_installation_method "$1" ) in
  33. ant) requirements_check dev-java/ant-core ;;
  34. mvn) requirements_check dev-java/maven-bin ;;
  35. esac
  36. else
  37. requirements_check virtual/jre
  38. fi
  39. ;;
  40. (truffleruby*)
  41. requirements_check sys-libs/zlib dev-libs/openssl net-misc/curl sys-devel/make sys-devel/gcc dev-libs/libxml2
  42. ;;
  43. (ir*)
  44. requirements_check dev-lang/mono
  45. ;;
  46. (opal)
  47. requirements_check net-libs/nodejs
  48. ;;
  49. (*-head)
  50. requirements_gentoo_define "${1%-head}"
  51. requirements_check dev-vcs/git
  52. ;;
  53. (*)
  54. requirements_check virtual/libiconv sys-libs/readline sys-libs/zlib dev-libs/openssl net-misc/curl dev-libs/libyaml dev-db/sqlite sys-devel/libtool sys-devel/gcc sys-devel/autoconf sys-devel/automake sys-devel/bison sys-devel/m4
  55. ;;
  56. esac
  57. }