From 7479f5c8974b6858b2a8c91ce9577d49125d1ffc Mon Sep 17 00:00:00 2001 From: "Wayne E. Seguin" Date: Tue, 17 May 2011 20:39:35 -0400 Subject: [PATCH] Updated ebuild for latest release. --- meta/gentoo/rvm-1.6.10.ebuild | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 meta/gentoo/rvm-1.6.10.ebuild diff --git a/meta/gentoo/rvm-1.6.10.ebuild b/meta/gentoo/rvm-1.6.10.ebuild new file mode 100644 index 0000000000..7a1a6d05cb --- /dev/null +++ b/meta/gentoo/rvm-1.6.10.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit eutils + +# This should be the first 7 characters of the tagged version's commit. +VERSION_SHORT_SHA1="e006059" + +SRC_URI="http://github.com/wayneeseguin/rvm/tarball/${PV} -> ${P}.tar.gz" +S="${WORKDIR}/wayneeseguin-rvm-${VERSION_SHORT_SHA1}" + +DESCRIPTION="RVM facilitates easy installation and management of multiple Ruby environments and sets of gems" +HOMEPAGE="http://rvm.beginrescueend.com/" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="mono java" + +RDEPEND="net-misc/curl + sys-devel/patch + java? ( + dev-java/sun-jdk + dev-java/sun-jre-bin + ) + mono? ( dev-lang/mono )" + +RVM_DIR="/opt/rvm" + +src_install() { + for v in `env | egrep '^rvm_' | cut -d '=' -f 1`; do + unset $v + done + + # Set variables for installation (only!) + export rvm_prefix="${D}" + export rvm_path="${D}${RVM_DIR}" + export rvm_user_install=1 + + ./install || die "Installation failed." + + # Set variables for actual operation in a default rvmrc + echo "rvm_user_install=1" > "${T}"/rvmrc + echo "rvm_prefix=\"$(dirname $RVM_DIR)/\"" >> "${T}"/rvmrc + 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 + + 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" +}