diff options
author | Alex Legler <alex@a3li.li> | 2011-03-06 16:27:39 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2011-03-06 16:27:39 +0100 |
commit | 36f381afdf2a201d084e20c58d8bc905f8a8af08 (patch) | |
tree | e0dd91dc700dd115c388a43d9ec1de94a53b59a4 /eselect-ruby | |
parent | Add 1.8.7_p334 patchset (diff) | |
download | ruby-scripts-36f381afdf2a201d084e20c58d8bc905f8a8af08.tar.gz ruby-scripts-36f381afdf2a201d084e20c58d8bc905f8a8af08.tar.bz2 ruby-scripts-36f381afdf2a201d084e20c58d8bc905f8a8af08.zip |
eselect-ruby: Don't try to set man symlinks if FEATURES=noman is enabled
Reported-By: Eduardo Tongson <propolice@gmail.com>
Diffstat (limited to 'eselect-ruby')
-rw-r--r-- | eselect-ruby/ruby.eselect | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/eselect-ruby/ruby.eselect b/eselect-ruby/ruby.eselect index 46e0828..5f48eb4 100644 --- a/eselect-ruby/ruby.eselect +++ b/eselect-ruby/ruby.eselect @@ -1,10 +1,10 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -DESCRIPTION="Manage ruby symlinks" +DESCRIPTION="Manage Ruby symlinks" MAINTAINER="a3li@gentoo.org" -SVN_DATE="20100603" -VERSION="20100603" +SVN_DATE="20110306" +VERSION="20110306" bindir=/usr/bin man1dir=/usr/share/man/man1 @@ -45,7 +45,7 @@ remove_symlinks() { } create_man_symlinks() { - local version=${1} + local version=${1} for m in ${ROOT}${man1dir}/ruby${version}.{1,1.gz,1.bz2,1.lzma} do @@ -80,8 +80,8 @@ create_symlinks() { echo "If you need RubyGems, emerge dev-ruby/rubygems with the appropriate RUBY_TARGETS setting." echo fi - - create_man_symlinks ${version} + + [[ $(portageq envvar FEATURES) =~ noman ]] || create_man_symlinks ${version} write_list_start "Successfully switched to profile:" write_kv_list_entry "${target}" "" |