From f473b3e9019b98f01433f21b29787b723ca6c3c4 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Fri, 1 Sep 2023 17:36:30 +0300 Subject: [PATCH] new file: projects/github.com/rbenv/rbenv/package.yml --- projects/github.com/rbenv/rbenv/package.yml | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 projects/github.com/rbenv/rbenv/package.yml diff --git a/projects/github.com/rbenv/rbenv/package.yml b/projects/github.com/rbenv/rbenv/package.yml new file mode 100644 index 00000000..b53f4c15 --- /dev/null +++ b/projects/github.com/rbenv/rbenv/package.yml @@ -0,0 +1,26 @@ +distributable: + url: https://github.com/rbenv/rbenv/archive/v{{version}}.tar.gz + strip-components: 1 +versions: + github: rbenv/rbenv +dependencies: + ruby-lang.org: '*' +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + script: + - src/configure + - make -C src + - mkdir -p {{prefix}} + - mv bin completions libexec rbenv.d {{prefix}}/ +provides: + - bin/rbenv +test: + script: + - rbenv --version | grep {{version}} + - mkdir -p "$(rbenv root)/versions/1.2.3/bin" + - echo 'echo hello' > "$(rbenv root)/versions/1.2.3/bin/foo" + - chmod +x "$(rbenv root)/versions/1.2.3/bin/foo" + - rbenv init - + - rbenv versions | grep "1.2.3"