/[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.2 Revision 1.3
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.2 2009/12/15 15:32:27 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.3 2009/12/15 16:27:46 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#
15# This eclass allows to install arbitrary Ruby libraries (including Gems), 15# This eclass allows to install arbitrary Ruby libraries (including Gems),
16# providing integration into the RubyGems system even for "regular" packages. 16# providing integration into the RubyGems system even for "regular" packages.
17# 17#
18 18
19inherit ruby-ng 19inherit ruby-ng
20
21SRC_URI="mirror://rubygems/${P}.gem"
22 20
23# @ECLASS-VARIABLE: RUBY_FAKEGEM_NAME 21# @ECLASS-VARIABLE: RUBY_FAKEGEM_NAME
24# @DESCRIPTION: 22# @DESCRIPTION:
25# Sets the Gem name for the generated fake gemspec. 23# Sets the Gem name for the generated fake gemspec.
26# RUBY_FAKEGEM_NAME="${PN}" 24# RUBY_FAKEGEM_NAME="${PN}"
53 51
54if [[ ${RUBY_FAKEGEM_TASK_TEST} != "" ]]; then 52if [[ ${RUBY_FAKEGEM_TASK_TEST} != "" ]]; then
55 IUSE="$IUSE test" 53 IUSE="$IUSE test"
56 ruby_add_bdepend test "dev-ruby/rake" 54 ruby_add_bdepend test "dev-ruby/rake"
57fi 55fi
56
57SRC_URI="mirror://rubygems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}.gem"
58 58
59ruby_add_rdepend virtual/rubygems 59ruby_add_rdepend virtual/rubygems
60 60
61# @FUNCTION: ruby_fakegem_gemsdir 61# @FUNCTION: ruby_fakegem_gemsdir
62# @RETURN: Returns the gem data directory 62# @RETURN: Returns the gem data directory

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

  ViewVC Help
Powered by ViewVC 1.1.20