mint 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/usr/bin/env bash
  2. source "$rvm_scripts_path/functions/requirements/debian"
  3. requirements_mint_define_libgmp()
  4. {
  5. requirements_check libgmp-dev
  6. }
  7. requirements_mint_define_libreadline()
  8. {
  9. requirements_check libreadline-dev
  10. }
  11. requirements_mint_define_libssl()
  12. {
  13. # Legacy libssl-dev required by older version of ruby has been renamed to libssl1.0-dev
  14. # starting from Mint 19 (Tara)
  15. case "$1" in
  16. (ruby-2.3*|ruby-2.2*|ruby-2.1*|ruby-2.0*|ruby-1.9*)
  17. if
  18. __rvm_version_compare ${_system_version} -ge 19
  19. then
  20. undesired_check libssl-dev
  21. requirements_check libssl1.0-dev
  22. else
  23. requirements_check libssl-dev
  24. fi
  25. ;;
  26. (*)
  27. requirements_check libssl-dev
  28. ;;
  29. esac
  30. requirements_check libssl-dev
  31. }
  32. requirements_mint_define_clang_llvm()
  33. {
  34. if
  35. __rvm_version_compare ${_system_version} -ge 19.1
  36. then
  37. requirements_check clang-3.9 llvm-3.9 llvm-3.9-dev
  38. rvm_configure_flags+=( --cc=clang-3.9 --cxx=clang++-3.9 --llvm-config=llvm-config-3.9)
  39. else
  40. requirements_check clang-3.6 llvm-3.6 llvm-3.6-dev
  41. rvm_configure_flags+=( --cc=clang-3.6 --cxx=clang++-3.6 --llvm-config=llvm-config-3.6)
  42. fi
  43. }
  44. requirements_mint_define()
  45. {
  46. __lib_type=debian
  47. requirements_debian_define "$@"
  48. }