Package Details: rbenv 1.2.0-1

Git Clone URL: https://aur.archlinux.org/rbenv.git (read-only, click to copy)
Package Base: rbenv
Description: Simple Ruby version manager
Upstream URL: https://github.com/rbenv/rbenv
Licenses: MIT
Conflicts: rbenv-git
Submitter: mirlord
Maintainer: cdown
Last Packager: cdown
Votes: 128
Popularity: 1.24
First Submitted: 2011-08-29 11:57 (UTC)
Last Updated: 2022-01-05 13:46 (UTC)

Dependencies (1)

Required by (2)

Sources (1)

Latest Comments

1 2 3 Next › Last »

Badderman commented on 2021-02-13 11:28 (UTC) (edited on 2021-02-13 12:49 (UTC) by Badderman)

Run "rbenv rehash" hooks automatically after "gem install/uninstall":

diff --git a/PKGBUILD b/PKGBUILD
index 1868d44..bed28d7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,11 +31,14 @@ package() {
   mkdir -p $pkgdir/usr/share/licenses/$pkgname
   mkdir -p $pkgdir/usr/lib/rbenv/completions
   mkdir -p $pkgdir/usr/lib/rbenv/libexec
+  mkdir -p $pkgdir/usr/lib/rbenv/hooks

   install -m 644 ./README.md $pkgdir/usr/share/doc/$pkgname
   install -m 644 ./LICENSE $pkgdir/usr/share/licenses/$pkgname
   install -m 644 ./completions/* $pkgdir/usr/lib/rbenv/completions/
   install -m 755 ./libexec/* $pkgdir/usr/lib/rbenv/libexec/
+  cp -r ./rbenv.d/* $pkgdir/usr/lib/rbenv/hooks/
+  chmod -R 755 $pkgdir/usr/lib/rbenv/hooks/

   ln -s /usr/lib/rbenv/libexec/rbenv $pkgdir/usr/bin/
 }

doompatrol commented on 2018-11-27 17:51 (UTC) (edited on 2018-11-27 17:57 (UTC) by doompatrol)

Note to self & others: "rbenv install" is provided by "ruby-build". Mentioning this cause I am using kitchen-salt and it wasn't clear that it was a separate package.

cdown commented on 2017-07-08 07:35 (UTC)

@Munto If you're using `rbenv install`, $PATH should be set up automatically, so no changes are needed as far as I can tell. I just tried `rbenv install 2.4.0` with no issues.

Munto commented on 2017-05-23 00:38 (UTC)

Hello. rbenv-install needs rbenv-hooks to work at line 136 "IFS=$'\n' scripts=(`rbenv-hooks install`)" It may be worthwhile to add a symlink to this script. ln -s /usr/lib/rbenv/libexec/rbenv-hooks $pkgdir/usr/bin/

cdown commented on 2016-07-25 08:09 (UTC)

If you're using rbenv already, why aren't you using bundler or the like? You shouldn't really be installing system packages in the hopes of using them with a non-system Ruby.

zonotope commented on 2016-07-21 15:29 (UTC)

@cdown what do you think about adding `provides=('ruby')` to the pckgbuild?

zonotope commented on 2016-07-21 15:25 (UTC) (edited on 2016-07-21 15:26 (UTC) by zonotope)

@voyd, That is not true. RbEnv is written in a combination of bash and c: https://github.com/rbenv/rbenv/tree/master/. RBenv is not dependent on ruby being installed at all. I agree with @huma and @zrl. The rbenv package should definitely provide ruby because bringing in any package with ruby as a dependency will install another ruby version outside of rbenv, and that screws with paths in all kinds of ways.

cdown commented on 2016-04-14 10:11 (UTC)

Changed URI without pkgver bump (since it's a noop).

mark.sagikazar commented on 2016-03-21 15:41 (UTC)

Upstream URL has changed: https://github.com/rbenv/rbenv