summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/ruby/ruby-1.8.6_p114.ebuild')
-rw-r--r--dev-lang/ruby/ruby-1.8.6_p114.ebuild19
1 files changed, 18 insertions, 1 deletions
diff --git a/dev-lang/ruby/ruby-1.8.6_p114.ebuild b/dev-lang/ruby/ruby-1.8.6_p114.ebuild
index b4a0d787618e..0b45de6ee654 100644
--- a/dev-lang/ruby/ruby-1.8.6_p114.ebuild
+++ b/dev-lang/ruby/ruby-1.8.6_p114.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p114.ebuild,v 1.12 2008/12/22 21:17:44 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p114.ebuild,v 1.13 2008/12/23 20:20:12 graaff Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
@@ -30,6 +30,7 @@ RDEPEND="
ssl? ( dev-libs/openssl )
socks5? ( >=net-proxy/dante-1.1.13 )
tk? ( dev-lang/tk )
+ >=dev-ruby/ruby-config-0.3.1
!=dev-lang/ruby-cvs-${SLOT}*
!dev-ruby/rdoc
!dev-ruby/rexml"
@@ -151,3 +152,19 @@ src_install() {
cp -pPR test "${D}/usr/share/${PN}-${SLOT}"
fi
}
+
+pkg_postinst() {
+
+ if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
+ "${ROOT}usr/sbin/ruby-config" ruby$MY_SUFFIX
+ fi
+ elog
+ elog "You can change the default ruby interpreter by ${ROOT}usr/sbin/ruby-config"
+ elog
+}
+
+pkg_postrm() {
+ if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
+ "${ROOT}usr/sbin/ruby-config" ruby$MY_SUFFIX
+ fi
+}