summaryrefslogtreecommitdiff
path: root/dev-ruby/chruby/chruby-9999.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-04-12 21:03:09 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2022-04-12 21:03:09 +0000
commitd97953e6ff67978da9554e7b4601aedceb21e215 (patch)
tree674053c902db6972b9716c9ac3b1e960ee7a5358 /dev-ruby/chruby/chruby-9999.ebuild
parent1d1fa5bb30df70070bbbbd2b777b839d31f09c41 (diff)
downloadbaldeagleos-repo-d97953e6ff67978da9554e7b4601aedceb21e215.tar.gz
baldeagleos-repo-d97953e6ff67978da9554e7b4601aedceb21e215.tar.xz
baldeagleos-repo-d97953e6ff67978da9554e7b4601aedceb21e215.zip
Adding metadata
Diffstat (limited to 'dev-ruby/chruby/chruby-9999.ebuild')
-rw-r--r--dev-ruby/chruby/chruby-9999.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/chruby/chruby-9999.ebuild b/dev-ruby/chruby/chruby-9999.ebuild
new file mode 100644
index 000000000000..bd7345d78725
--- /dev/null
+++ b/dev-ruby/chruby/chruby-9999.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+if [[ ${PV} == *9999 ]]; then
+ EGIT_REPO_URI="https://github.com/postmodern/chruby.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/postmodern/chruby/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Changes the current Ruby"
+HOMEPAGE="https://github.com/postmodern/chruby"
+
+LICENSE="MIT"
+SLOT="0"
+RESTRICT="test"
+
+DEPEND="|| ( >=app-shells/bash-3.0:* app-shells/zsh )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+
+ sed -i Makefile -e "s/^VERSION=.\+$/VERSION=${PVR}/" \
+ || die "can't fix doc location to follow Gentoo/FHS guidelines"
+}
+
+src_install() {
+ local emakeargs=(
+ DESTDIR="$D"
+ PREFIX="/usr"
+ )
+
+ emake "${emakeargs[@]}" install
+
+ insinto "/etc/profile.d"
+ newins "${FILESDIR}/systemwide.sh" "chruby.sh"
+}