diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-04-12 21:03:09 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-04-12 21:03:09 +0000 |
| commit | d97953e6ff67978da9554e7b4601aedceb21e215 (patch) | |
| tree | 674053c902db6972b9716c9ac3b1e960ee7a5358 /dev-ruby/ruby-install/ruby-install-0.8.3-r2.ebuild | |
| parent | 1d1fa5bb30df70070bbbbd2b777b839d31f09c41 (diff) | |
| download | srcux-d97953e6ff67978da9554e7b4601aedceb21e215.tar.gz srcux-d97953e6ff67978da9554e7b4601aedceb21e215.tar.xz srcux-d97953e6ff67978da9554e7b4601aedceb21e215.zip | |
Adding metadata
Diffstat (limited to 'dev-ruby/ruby-install/ruby-install-0.8.3-r2.ebuild')
| -rw-r--r-- | dev-ruby/ruby-install/ruby-install-0.8.3-r2.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/ruby-install/ruby-install-0.8.3-r2.ebuild b/dev-ruby/ruby-install/ruby-install-0.8.3-r2.ebuild new file mode 100644 index 000000000000..46ccb1fad361 --- /dev/null +++ b/dev-ruby/ruby-install/ruby-install-0.8.3-r2.ebuild @@ -0,0 +1,43 @@ +# 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 + 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 +} |
