From b283b044aa74d4f0a3c8b2e85238efa6439256ec Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sun, 7 Aug 2022 12:45:43 +0000 Subject: Adding metadata --- dev-ruby/ruby-install/ruby-install-0.8.4.ebuild | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 dev-ruby/ruby-install/ruby-install-0.8.4.ebuild (limited to 'dev-ruby/ruby-install/ruby-install-0.8.4.ebuild') diff --git a/dev-ruby/ruby-install/ruby-install-0.8.4.ebuild b/dev-ruby/ruby-install/ruby-install-0.8.4.ebuild new file mode 100644 index 000000000000..706d5e5d217d --- /dev/null +++ b/dev-ruby/ruby-install/ruby-install-0.8.4.ebuild @@ -0,0 +1,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 (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 + app-arch/xz-utils + 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_prepare() { + default + + sed -i Makefile -e "s/^VERSION=.\+$/VERSION=${PVR}/" \ + || die "Cannot fix doc location to follow Gentoo/FHS guidelines" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install +} -- cgit v1.3.1