Skip to content

Instantly share code, notes, and snippets.

@iangreenleaf
Created June 21, 2011 06:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iangreenleaf/1037341 to your computer and use it in GitHub Desktop.
Save iangreenleaf/1037341 to your computer and use it in GitHub Desktop.
rvm ebuild for Gentoo - not completely kosher
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit eutils git
DESCRIPTION="Cut Rubies with ease!"
HOMEPAGE="http://beginrescueend.com/"
SRC_URI=""
EGIT_REPO_URI="https://github.com/wayneeseguin/rvm.git"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
pkg_setup() {
enewgroup "${PN}"
for user in $(grep -xF -f <(cat /etc/passwd | cut -d: -f1) <(find /home -mindepth 1 -maxdepth 1 -type d | cut -d '/' -f 3)); do
usermod -a -G "${PN}" "$user"
done
rm -f "/etc/rvmrc"
}
src_install() {
addpredict "/etc/rvmrc"
addwrite "/etc/profile.d/rvm.sh"
$WORKDIR/$P/scripts/install --prefix "${D}/usr/local/" || die
insinto /etc/
doins "${FILESDIR}"/rvmrc
}
umask g+w
export rvm_path="/usr/local/rvm"
@Tatsh
Copy link

Tatsh commented Jun 29, 2014

Oh those addpredict and addwrite lines have got to go 🌴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment