/[gentoo-x86]/eclass/ruby-ng.eclass
Gentoo

Diff of /eclass/ruby-ng.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.3 2009/12/05 11:32:19 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.4 2009/12/05 11:33:10 flameeyes Exp $
4# 4#
5# @ECLASS: ruby-ng.eclass 5# @ECLASS: ruby-ng.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ruby herd <ruby@gentoo.org> 7# Ruby herd <ruby@gentoo.org>
8# 8#
409# @FUNCTION: doruby 409# @FUNCTION: doruby
410# @USAGE: file [file...] 410# @USAGE: file [file...]
411# @DESCRIPTION: 411# @DESCRIPTION:
412# Installs the specified file(s) into the sitelibdir of the Ruby interpreter in ${RUBY}. 412# Installs the specified file(s) into the sitelibdir of the Ruby interpreter in ${RUBY}.
413doruby() { 413doruby() {
414 [[ -z ${RUBY} ]] && die "\$RUBY is not set"
414 ( # don't want to pollute calling env 415 ( # don't want to pollute calling env
415 insinto $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]') 416 insinto $(${RUBY} -rrbconfig -e 'print Config::CONFIG["sitelibdir"]')
416 insopts -m 0644 417 insopts -m 0644
417 doins "$@" 418 doins "$@"
418 ) || die "failed to install $@" 419 ) || die "failed to install $@"
419} 420}
420 421

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20