aboutsummaryrefslogtreecommitdiff
path: root/scripts/ynh_install_ruby__2
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2022-06-04 17:35:46 +0200
committerGitHub <noreply@github.com>2022-06-04 17:35:46 +0200
commit124b0c903b16f8e29714859d39c2b0e0de5568b5 (patch)
tree2e81fda9adc272bc98722b35092e8a748f2c96a1 /scripts/ynh_install_ruby__2
parentacdc124f76fb9724cb22acb18c45cf0c3c2e62b5 (diff)
parent67b98816286a65bcdf7252b5590e9486a73655f5 (diff)
downloadmastodon_ynh-124b0c903b16f8e29714859d39c2b0e0de5568b5.tar.gz
mastodon_ynh-124b0c903b16f8e29714859d39c2b0e0de5568b5.tar.bz2
mastodon_ynh-124b0c903b16f8e29714859d39c2b0e0de5568b5.zip
Merge pull request #331 from YunoHost-Apps/testing
Apply last example_ynh
Diffstat (limited to 'scripts/ynh_install_ruby__2')
-rw-r--r--scripts/ynh_install_ruby__29
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/ynh_install_ruby__2 b/scripts/ynh_install_ruby__2
index b12ab74..982d0b2 100644
--- a/scripts/ynh_install_ruby__2
+++ b/scripts/ynh_install_ruby__2
@@ -14,6 +14,11 @@ ruby_version_path="$rbenv_install_dir/versions"
export RBENV_ROOT="$rbenv_install_dir"
export rbenv_root="$rbenv_install_dir"
+ruby_dependencies=""
+build_ruby_dependencies="libjemalloc-dev curl build-essential libreadline-dev zlib1g-dev libsqlite3-dev libssl-dev libxml2-dev libxslt-dev autoconf automake bison libtool"
+pkg_dependencies="$pkg_dependencies $ruby_dependencies"
+build_pkg_dependencies="$build_pkg_dependencies $build_ruby_dependencies"
+
# Load the version of Ruby for an app, and set variables.
#
# ynh_use_ruby has to be used in any app scripts before using Ruby for the first time.
@@ -37,9 +42,9 @@ export rbenv_root="$rbenv_install_dir"
# Finally, to start a Ruby service with the correct version, 2 solutions
# Either the app is dependent of Ruby or gem, but does not called it directly.
# In such situation, you need to load PATH
-# `Environment="__YNH_RUBY_LOAD_ENV_PATH__"`
+# `Environment="__YNH_RUBY_LOAD_PATH__"`
# `ExecStart=__FINALPATH__/my_app`
-# You will replace __YNH_RUBY_LOAD_ENV_PATH__ with $ynh_ruby_load_path
+# You will replace __YNH_RUBY_LOAD_PATH__ with $ynh_ruby_load_path
#
# Or Ruby start the app directly, then you don't need to load the PATH variable
# `ExecStart=__YNH_RUBY__ my_app run`