dev-ruby/chruby - 9999 (guru)

Search

Install

Install this version:

emerge -a =dev-ruby/chruby-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-ruby/chruby-9999

Or alternatively:

emerge --autounmask-write -a =dev-ruby/chruby-9999

Package Information

Description:
Changes the current Ruby
Homepage:
https://github.com/postmodern/chruby
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
9999 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

if [[ ${PV} == *9999 ]]; then
	EGIT_REPO_URI="https://github.com/postmodern/chruby.git"
	inherit git-r3
else
	SRC_URI="https://github.com/postmodern/chruby/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~x86"
fi

DESCRIPTION="Changes the current Ruby"
HOMEPAGE="https://github.com/postmodern/chruby"

LICENSE="MIT"
SLOT="0"
RESTRICT="test"

DEPEND="|| ( >=app-shells/bash-3.0:* app-shells/zsh )"
RDEPEND="${DEPEND}"

src_prepare() {
	default

	sed -i Makefile -e "s/^VERSION=.\+$/VERSION=${PVR}/" \
		|| die "can't fix doc location to follow Gentoo/FHS guidelines"
}

src_install() {
	local emakeargs=(
		DESTDIR="$D"
		PREFIX="/usr"
	)

	emake "${emakeargs[@]}" install

	insinto "/etc/profile.d"
	newins "${FILESDIR}/systemwide.sh" "chruby.sh"
}

Inherited Eclasses

Dependencies

DEPEND

|| ( >=app-shells/bash-3.0:* app-shells/zsh )

RDEPEND

|| ( >=app-shells/bash-3.0:* app-shells/zsh )