Skip to content

Commit

Permalink
Updated ebuild for latest release.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Aug 6, 2010
1 parent 3c98ad9 commit ac242eb
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions pkg/gentoo/rvm-0.1.44.ebuild
@@ -0,0 +1,61 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit eutils

DESCRIPTION="RVM facilitates easy installation and management of multiple Ruby environments and sets of gems"
HOMEPAGE="http://rvm.beginrescueend.com/"

# This should be the first 7 characters of the tagged version's commit.
VERSION_SHORT_SHA1="3c98ad955f0072a0218eb7991334f4d581a47467"

SRC_URI="http://github.com/wayneeseguin/rvm/tarball/${PV} -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86"
IUSE="mono java"

RDEPEND="net-misc/curl
sys-devel/patch
java? (
dev-java/sun-jdk
dev-java/sun-jre-bin
)
mono? ( dev-lang/mono )"

S="${WORKDIR}/wayneeseguin-rvm-${VERSION_SHORT_SHA1}"
RVM_DIR="/opt/rvm"

src_install() {
for v in `env | egrep '^rvm_' | cut -d '=' -f 1`; do
unset $v
done
export rvm_prefix="${D}"
export rvm_path="${D}${RVM_DIR}"
export rvm_sandboxed=1
./install || die "Installation failed."

echo "rvm_sandboxed=1" > "${T}"/rvmrc
echo "rvm_prefix=\"$(dirname $RVM_DIR)\""
echo "rvm_path=\"${RVM_DIR}\"" >> "${T}"/rvmrc
insinto /etc
doins "${T}"/rvmrc || die "Failed to install /etc/rvmrc."
elog "A default /etc/rvmrc has been installed. Feel free to modify it."
elog

touch "${T}"/system
insinto ${RVM_DIR}/environments
doins "${T}"/system || die "Failed to install ${RVM_DIR}/environments/system."
elog "You may also wish to review ${RVM_DIR}/environments/system ."
elog

elog "Before any user (including root) can use rvm, the following line must be appended"
elog "to the end of the user's shell's loading files (.bashrc and then .bash_profile"
elog "for bash; or .zshrc for zsh), after all path/variable settings:"
elog
elog " [[ -s $RVM_DIR/scripts/rvm ]] && source $RVM_DIR/scripts/rvm"

}

0 comments on commit ac242eb

Please sign in to comment.