From 45d0a690324bf5e04b14787942b5b5b036ffda15 Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Sat, 15 Jun 2024 09:01:22 +0400 Subject: [PATCH] dev-ruby/rbenv: new package from https://data.gpo.zugaina.org/konsolebox/dev-ruby/rbenv/ Signed-off-by: Vitaly Zdanevich --- dev-ruby/rbenv/metadata.xml | 12 ++++++++++ dev-ruby/rbenv/rbenv-9999.ebuild | 40 ++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 dev-ruby/rbenv/metadata.xml create mode 100644 dev-ruby/rbenv/rbenv-9999.ebuild diff --git a/dev-ruby/rbenv/metadata.xml b/dev-ruby/rbenv/metadata.xml new file mode 100644 index 0000000000..d95ef0d2ee --- /dev/null +++ b/dev-ruby/rbenv/metadata.xml @@ -0,0 +1,12 @@ + + + + + Vitaly Zdanevich + zdanevich.vitaly@ya.ru + + + rbenv/rbenv + https://github.com/rbenv/rbenv/issues + + diff --git a/dev-ruby/rbenv/rbenv-9999.ebuild b/dev-ruby/rbenv/rbenv-9999.ebuild new file mode 100644 index 0000000000..2886748263 --- /dev/null +++ b/dev-ruby/rbenv/rbenv-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 git-r3 toolchain-funcs + +DESCRIPTION="Seamlessly manage your app's Ruby environment" +HOMEPAGE="https://github.com/rbenv/rbenv" +LICENSE="MIT" + +SLOT=0 +EGIT_REPO_URI="https://github.com/rbenv/rbenv.git" +EGIT_BRANCH=master +ECONF_SOURCE=src +RDEPEND="app-shells/bash" + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -C src +} + +src_install() { + exeinto /usr/libexec/rbenv + doexe libexec/* + dosym ../libexec/rbenv/rbenv /usr/bin/rbenv + + set -- rbenv.d/* + if [[ $# -gt 0 && -e $1 ]]; then + insinto /usr/lib/rbenv/hooks + doins -r "$@" + fi + + newbashcomp completions/rbenv.bash rbenv + dodoc README.md +} + +pkg_postinst() { + elog "Run 'rbenv init' and follow printed instructions to setup shell integration of rbenv for the current user." + elog "Also read README.md or visit ${HOMEPAGE}." +}