/[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.30 Revision 1.31
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.30 2011/08/22 04:46:32 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.31 2011/10/21 06:32:29 graaff 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# @AUTHOR: 8# @AUTHOR:
84 ruby_add_bdepend "test? ( dev-ruby/rake )" 84 ruby_add_bdepend "test? ( dev-ruby/rake )"
85fi 85fi
86 86
87SRC_URI="mirror://rubygems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}${RUBY_FAKEGEM_SUFFIX:+-${RUBY_FAKEGEM_SUFFIX}}.gem" 87SRC_URI="mirror://rubygems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}${RUBY_FAKEGEM_SUFFIX:+-${RUBY_FAKEGEM_SUFFIX}}.gem"
88 88
89ruby_add_bdepend dev-ruby/rubygems 89ruby_add_bdepend virtual/rubygems
90ruby_add_rdepend dev-ruby/rubygems 90ruby_add_rdepend virtual/rubygems
91 91
92# @FUNCTION: ruby_fakegem_gemsdir 92# @FUNCTION: ruby_fakegem_gemsdir
93# @RETURN: Returns the gem data directory 93# @RETURN: Returns the gem data directory
94# @DESCRIPTION: 94# @DESCRIPTION:
95# This function returns the gems data directory for the ruby 95# This function returns the gems data directory for the ruby
207 # copies with different implementations; while for now we're using 207 # copies with different implementations; while for now we're using
208 # the same exact content, we might have differences in the future, 208 # the same exact content, we might have differences in the future,
209 # so better taking this into consideration. 209 # so better taking this into consideration.
210 local quoted_description=${DESCRIPTION//\"/\\\"} 210 local quoted_description=${DESCRIPTION//\"/\\\"}
211 cat - > $1 <<EOF 211 cat - > $1 <<EOF
212# generated by ruby-fakegem.eclass $Revision: 1.30 $ 212# generated by ruby-fakegem.eclass $Revision: 1.31 $
213Gem::Specification.new do |s| 213Gem::Specification.new do |s|
214 s.name = "${RUBY_FAKEGEM_NAME}" 214 s.name = "${RUBY_FAKEGEM_NAME}"
215 s.version = "${RUBY_FAKEGEM_VERSION}" 215 s.version = "${RUBY_FAKEGEM_VERSION}"
216 s.summary = "${quoted_description}" 216 s.summary = "${quoted_description}"
217 s.homepage = "${HOMEPAGE}" 217 s.homepage = "${HOMEPAGE}"
257 257
258 cat - > "${T}"/gembin-wrapper-${gembinary} <<EOF 258 cat - > "${T}"/gembin-wrapper-${gembinary} <<EOF
259#!${rubycmd} 259#!${rubycmd}
260# This is a simplified version of the RubyGems wrapper 260# This is a simplified version of the RubyGems wrapper
261# 261#
262# Generated by ruby-fakegem.eclass $Revision: 1.30 $ 262# Generated by ruby-fakegem.eclass $Revision: 1.31 $
263 263
264require 'rubygems' 264require 'rubygems'
265 265
266load Gem::default_path[-1] + "/gems/${relativegembinary}" 266load Gem::default_path[-1] + "/gems/${relativegembinary}"
267 267

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20