/[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.12 Revision 1.13
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.12 2010/01/21 10:18:59 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.13 2010/01/24 00:00:40 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#
238# @FUNCTION: each_fakegem_test 238# @FUNCTION: each_fakegem_test
239# @DESCRIPTION: 239# @DESCRIPTION:
240# Run tests for the package for each ruby target if the test task is defined. 240# Run tests for the package for each ruby target if the test task is defined.
241each_fakegem_test() { 241each_fakegem_test() {
242 local rubyflags= 242 local rubyflags=
243
244 if [[ ${RUBY_FAKEGEM_TASK_TEST} != "" ]]; then
245 ${RUBY} ${rubyflags} -S rake ${RUBY_FAKEGEM_TASK_TEST} || die "tests failed" 243 ${RUBY} ${rubyflags} -S rake ${RUBY_FAKEGEM_TASK_TEST} || die "tests failed"
246 else
247 echo "No test task defined, skipping tests."
248 fi
249} 244}
250 245
246if [[ ${RUBY_FAKEGEM_TASK_TEST} != "" ]]; then
251# @FUNCTION: each_ruby_test 247 # @FUNCTION: each_ruby_test
252# @DESCRIPTION: 248 # @DESCRIPTION:
253# Run the tests for this package. 249 # Run the tests for this package.
254each_ruby_test() { 250 each_ruby_test() {
255 each_fakegem_test 251 each_fakegem_test
256} 252 }
253fi
257 254
258# @FUNCTION: each_fakegem_install 255# @FUNCTION: each_fakegem_install
259# @DESCRIPTION: 256# @DESCRIPTION:
260# Install the package for each ruby target. 257# Install the package for each ruby target.
261each_fakegem_install() { 258each_fakegem_install() {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20