mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-21 07:52:21 -04:00
Bug: https://bugs.gentoo.org/830151 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
37 lines
868 B
Bash
37 lines
868 B
Bash
# Copyright 2021 Gentoo Authors
|
|
# 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"
|
|
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
|
|
sys-devel/patch
|
|
|| ( >=sys-devel/gcc-4.2 sys-devel/clang )"
|
|
BDEPEND="test? ( dev-util/shunit2 )"
|
|
|
|
# XXX: `make check` seems to be broken (violates shellcheck tests)
|
|
src_test() {
|
|
emake test
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" PREFIX="/usr" install
|
|
}
|