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

Diff of /eclass/ruby-fakegem.eclass

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

Revision 1.8 Revision 1.10
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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-fakegem.eclass,v 1.8 2009/12/26 17:06:02 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.10 2010/01/09 21:16:37 flameeyes Exp $
4# 4#
5# @ECLASS: ruby-fakegem.eclass 5# @ECLASS: ruby-fakegem.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ruby herd <ruby@gentoo.org> 7# Ruby herd <ruby@gentoo.org>
8# 8#
55# RUBY_FAKEGEM_BINWRAP="*" 55# RUBY_FAKEGEM_BINWRAP="*"
56 56
57# @ECLASS-VARIABLE: RUBY_FAKEGEM_REQUIRE_PATHS 57# @ECLASS-VARIABLE: RUBY_FAKEGEM_REQUIRE_PATHS
58# @DESCRIPTION: 58# @DESCRIPTION:
59# Extra require paths (beside lib) to add to the specification 59# Extra require paths (beside lib) to add to the specification
60# RUBY_FAKEGEM_BINWRAP="" 60# RUBY_FAKEGEM_REQUIRE_PATHS=""
61 61
62RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN}}" 62RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN}}"
63RUBY_FAKEGEM_VERSION="${RUBY_FAKEGEM_VERSION:-${PV}}" 63RUBY_FAKEGEM_VERSION="${RUBY_FAKEGEM_VERSION:-${PV}}"
64 64
65RUBY_FAKEGEM_TASK_DOC="${RUBY_FAKEGEM_TASK_DOC-rdoc}" 65RUBY_FAKEGEM_TASK_DOC="${RUBY_FAKEGEM_TASK_DOC-rdoc}"
261 local _gemlibdirs= 261 local _gemlibdirs=
262 for directory in bin lib ${RUBY_FAKEGEM_EXTRAINSTALL}; do 262 for directory in bin lib ${RUBY_FAKEGEM_EXTRAINSTALL}; do
263 [[ -d ${directory} ]] && _gemlibdirs="${_gemlibdirs} ${directory}" 263 [[ -d ${directory} ]] && _gemlibdirs="${_gemlibdirs} ${directory}"
264 done 264 done
265 265
266 [[ -n ${_gemlibdirs} ]] && \
266 ruby_fakegem_doins -r ${_gemlibdirs} 267 ruby_fakegem_doins -r ${_gemlibdirs}
267} 268}
268 269
269# @FUNCTION: each_ruby_install 270# @FUNCTION: each_ruby_install
270# @DESCRIPTION: 271# @DESCRIPTION:
271# Install the package for each target. 272# Install the package for each target.
275 276
276# @FUNCTION: all_fakegem_install 277# @FUNCTION: all_fakegem_install
277# @DESCRIPTION: 278# @DESCRIPTION:
278# Install files common to all ruby targets. 279# Install files common to all ruby targets.
279all_fakegem_install() { 280all_fakegem_install() {
280 if [[ -n ${RUBY_FAKEGEM_DOCDIR} ]] && use doc; then 281 if [[ -n ${RUBY_FAKEGEM_DOCDIR} ]] && [[ ${RUBY_FAKEGEM_TASK_DOC} != "" ]] && use doc; then
281 for dir in ${RUBY_FAKEGEM_DOCDIR}; do 282 for dir in ${RUBY_FAKEGEM_DOCDIR}; do
282 pushd ${dir} 283 pushd ${dir}
283 dohtml -r * || die "failed to install documentation" 284 dohtml -r * || die "failed to install documentation"
284 popd 285 popd
285 done 286 done

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20