diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-08-01 18:36:37 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-08-01 18:36:37 +0000 |
| commit | 69345f10fb2fa263bbcbf0293c36c12e90409ebc (patch) | |
| tree | bd237390d9f9ea3dee31239293b5b7d4bb3c4665 /dev-ruby/ruby-install/ruby-install-0.9.1.ebuild | |
| parent | b9f1bbf3a5eef83753423a04b4680d2a2bfe975b (diff) | |
| download | srcux-69345f10fb2fa263bbcbf0293c36c12e90409ebc.tar.gz srcux-69345f10fb2fa263bbcbf0293c36c12e90409ebc.tar.xz srcux-69345f10fb2fa263bbcbf0293c36c12e90409ebc.zip | |
Adding metadata
Diffstat (limited to 'dev-ruby/ruby-install/ruby-install-0.9.1.ebuild')
| -rw-r--r-- | dev-ruby/ruby-install/ruby-install-0.9.1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/ruby-install/ruby-install-0.9.1.ebuild b/dev-ruby/ruby-install/ruby-install-0.9.1.ebuild new file mode 100644 index 000000000000..4e4057cefab6 --- /dev/null +++ b/dev-ruby/ruby-install/ruby-install-0.9.1.ebuild @@ -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 (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 )" + +PATCHES=( + "${FILESDIR}/${P}-fix-version.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=.\+$/VERSION=${PVR}/" \ + || die "Cannot fix doc location to follow Gentoo/FHS guidelines" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install +} |
