blob: 27cb8a5e4c3344b727d1b8a1eca47b35ca73db73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Installs Ruby, JRuby, Rubinius, TruffleRuby, 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"
IUSE="test"
PROPERTIES="test_network"
RESTRICT="!test? ( test )"
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
app-arch/xz-utils
sys-devel/patch
|| ( >=sys-devel/gcc-4.2 sys-devel/clang )"
BDEPEND="test? ( dev-util/shunit2 )"
# BUG: `make check` fails: https://github.com/postmodern/ruby-install/issues/442
src_test() {
emake test
}
src_prepare() {
default
sed -i Makefile -e "s/^VERSION=${PV}$/VERSION=${PVR}/" \
|| die "Cannot fix doc location to follow Gentoo/FHS guidelines"
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" install
}
|