Files
guru/dev-ruby/ruby-install/ruby-install-0.8.3-r2.ebuild
T

43 lines
1.0 KiB
Bash
Raw Normal View History

2022-01-02 16:45:32 +01:00
# Copyright 2021-2022 Gentoo Authors
2021-12-26 03:10:39 +01:00
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Installs Ruby, JRuby, Rubinius, TruffleRuby (native / GraalVM), or mruby."
HOMEPAGE="https://github.com/postmodern/ruby-install"
SRC_URI="https://github.com/postmodern/ruby-install/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
2021-12-28 17:46:32 +01:00
IUSE="test"
PROPERTIES="test_network"
RESTRICT="!test? ( test )"
2021-12-26 03:10:39 +01:00
DEPEND=">=app-shells/bash-3.0:*"
RDEPEND="${DEPEND}
sys-apps/grep
|| ( >net-misc/wget-1.12 net-misc/curl )
dev-libs/openssl
app-arch/tar
app-arch/bzip2
sys-devel/patch
|| ( >=sys-devel/gcc-4.2 sys-devel/clang )"
2021-12-28 17:46:32 +01:00
BDEPEND="test? ( dev-util/shunit2 )"
# XXX: `make check` seems to be broken (violates shellcheck tests)
src_test() {
emake test
}
2021-12-26 03:10:39 +01:00
2022-01-02 16:45:32 +01:00
src_prepare() {
default
sed -i Makefile -e "s/^VERSION=.\+$/VERSION=${PVR}/" \
|| die "Cannot fix doc location to follow Gentoo/FHS guidelines"
}
2021-12-26 03:10:39 +01:00
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" install
}