trisquel 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/usr/bin/env bash
  2. source "$rvm_scripts_path/functions/requirements/debian"
  3. requirements_ubuntu_define_libgmp()
  4. {
  5. requirements_check libgmp-dev
  6. }
  7. requirements_ubuntu_define_libreadline()
  8. {
  9. if
  10. __rvm_version_compare ${_system_version} -ge 9
  11. then
  12. requirements_check libreadline-dev
  13. else
  14. requirements_check libreadline6-dev
  15. fi
  16. }
  17. requirements_trisquel_define_libssl()
  18. {
  19. # Legacy libssl-dev required by older version of ruby has been renamed to libssl1.0-dev
  20. # starting from Trisquel 9 (based on Ubuntu 18.04 LTS "Bionic Beaver")
  21. case "$1" in
  22. (ruby-2.3*|ruby-2.2*|ruby-2.1*|ruby-2.0*|ruby-1.9*)
  23. if
  24. __rvm_version_compare ${_system_version} -ge 9
  25. then
  26. undesired_check libssl-dev
  27. requirements_check libssl1.0-dev
  28. else
  29. requirements_check libssl-dev
  30. fi
  31. ;;
  32. (*)
  33. requirements_check libssl-dev
  34. ;;
  35. esac
  36. }
  37. requirements_trisquel_define()
  38. {
  39. __lib_type=debian
  40. requirements_debian_define "$@"
  41. }