mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
dev-ruby/ruby-install: add 0.10.2
Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
|
DIST ruby-install-0.10.2.tar.gz 43661 BLAKE2B 249573d18029e54c69701a9a0eb7735b402fb94a40c3f797f0c107160dd96474a92d9b88fa8a20b6ed26296b59712f6e4062569eee82bb8864419f4b589b4032 SHA512 74b959b234794510ad0eb20906009ecee2a764fc5ee86e4d4962bdc9eee1b134c5d8b2606b1b71c7ae36ac3deed353469808f230726d01ebc97bc6cfcb04d20c
|
||||||
DIST ruby-install-0.9.3.tar.gz 39008 BLAKE2B aa498ec23eb96f1732e4b46b286939e9f39e632d1215e70bdcbc4ae05d2e490711ba4f9ae2766af4bb068e5ed9dbb041f118ff8fd4b6fb430294f5d7c84cf417 SHA512 4c9576ba5a825b696d4586034110adabbb687a8cefb27ade2d2129a23463ea7d9c01372c92395a1fcc2d35655a0d5f708a9d1368ee33051add602a8676da3c9e
|
DIST ruby-install-0.9.3.tar.gz 39008 BLAKE2B aa498ec23eb96f1732e4b46b286939e9f39e632d1215e70bdcbc4ae05d2e490711ba4f9ae2766af4bb068e5ed9dbb041f118ff8fd4b6fb430294f5d7c84cf417 SHA512 4c9576ba5a825b696d4586034110adabbb687a8cefb27ade2d2129a23463ea7d9c01372c92395a1fcc2d35655a0d5f708a9d1368ee33051add602a8676da3c9e
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
From e764a1d64e6d6b4cd0552832405bf4494eb96834 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexey Zapparov <alexey@zapparov.com>
|
||||||
|
Date: Mon, 20 Apr 2026 00:24:55 +0200
|
||||||
|
Subject: [PATCH] fix: Skip dependencies tests
|
||||||
|
|
||||||
|
ruby-install does not support `emerge` package manager,
|
||||||
|
thus `dependencies` are never set by default.
|
||||||
|
---
|
||||||
|
test/ruby-install-tests/init_test.sh | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/test/ruby-install-tests/init_test.sh b/test/ruby-install-tests/init_test.sh
|
||||||
|
index 4eab55a..14c3d40 100755
|
||||||
|
--- a/test/ruby-install-tests/init_test.sh
|
||||||
|
+++ b/test/ruby-install-tests/init_test.sh
|
||||||
|
@@ -69,10 +69,14 @@ function test_init_with_ruby_url()
|
||||||
|
|
||||||
|
function test_init_ruby_dependencies()
|
||||||
|
{
|
||||||
|
init
|
||||||
|
|
||||||
|
+ if [[ -z "$package_manager" ]]; then
|
||||||
|
+ startSkipping
|
||||||
|
+ fi
|
||||||
|
+
|
||||||
|
assertTrue "did not set \$ruby_dependencies" \
|
||||||
|
'(( ${#ruby_dependencies[@]} > 0 ))'
|
||||||
|
}
|
||||||
|
|
||||||
|
function test_init_ruby_md5()
|
||||||
|
--
|
||||||
|
2.52.0
|
||||||
|
|
||||||
48
dev-ruby/ruby-install/ruby-install-0.10.2.ebuild
Normal file
48
dev-ruby/ruby-install/ruby-install-0.10.2.ebuild
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
# 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 llvm-core/clang )"
|
||||||
|
BDEPEND="test? ( dev-util/shunit2 )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-skip-dependencies-tests.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
# 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user