/[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.31 Revision 1.32
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.31 2011/10/21 06:32:29 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.32 2011/12/05 12:24:33 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:
58 58
59# @ECLASS-VARIABLE: RUBY_FAKEGEM_GEMSPEC 59# @ECLASS-VARIABLE: RUBY_FAKEGEM_GEMSPEC
60# @DESCRIPTION: 60# @DESCRIPTION:
61# Filename of .gemspec file to install instead of generating a generic one. 61# Filename of .gemspec file to install instead of generating a generic one.
62# RUBY_FAKEGEM_GEMSPEC="" 62# RUBY_FAKEGEM_GEMSPEC=""
63
64# @ECLASS-VARIABLE: RUBY_FAKEGEM_EXTRAINSTALL
65# @DESCRIPTION:
66# List of files and directories relative to the top directory that also
67# get installed. Some gems provide extra files such as version information,
68# Rails generators, or data that needs to be installed as well.
69# RUBY_FAKEGEM_EXTRAINSTALL=""
63 70
64RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN}}" 71RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN}}"
65RUBY_FAKEGEM_VERSION="${RUBY_FAKEGEM_VERSION:-${PV/_pre/.pre}}" 72RUBY_FAKEGEM_VERSION="${RUBY_FAKEGEM_VERSION:-${PV/_pre/.pre}}"
66RUBY_FAKEGEM_SUFFIX="${RUBY_FAKEGEM_SUFFIX:-}" 73RUBY_FAKEGEM_SUFFIX="${RUBY_FAKEGEM_SUFFIX:-}"
67 74
207 # copies with different implementations; while for now we're using 214 # copies with different implementations; while for now we're using
208 # the same exact content, we might have differences in the future, 215 # the same exact content, we might have differences in the future,
209 # so better taking this into consideration. 216 # so better taking this into consideration.
210 local quoted_description=${DESCRIPTION//\"/\\\"} 217 local quoted_description=${DESCRIPTION//\"/\\\"}
211 cat - > $1 <<EOF 218 cat - > $1 <<EOF
212# generated by ruby-fakegem.eclass $Revision: 1.31 $ 219# generated by ruby-fakegem.eclass $Revision: 1.32 $
213Gem::Specification.new do |s| 220Gem::Specification.new do |s|
214 s.name = "${RUBY_FAKEGEM_NAME}" 221 s.name = "${RUBY_FAKEGEM_NAME}"
215 s.version = "${RUBY_FAKEGEM_VERSION}" 222 s.version = "${RUBY_FAKEGEM_VERSION}"
216 s.summary = "${quoted_description}" 223 s.summary = "${quoted_description}"
217 s.homepage = "${HOMEPAGE}" 224 s.homepage = "${HOMEPAGE}"
257 264
258 cat - > "${T}"/gembin-wrapper-${gembinary} <<EOF 265 cat - > "${T}"/gembin-wrapper-${gembinary} <<EOF
259#!${rubycmd} 266#!${rubycmd}
260# This is a simplified version of the RubyGems wrapper 267# This is a simplified version of the RubyGems wrapper
261# 268#
262# Generated by ruby-fakegem.eclass $Revision: 1.31 $ 269# Generated by ruby-fakegem.eclass $Revision: 1.32 $
263 270
264require 'rubygems' 271require 'rubygems'
265 272
266load Gem::default_path[-1] + "/gems/${relativegembinary}" 273load Gem::default_path[-1] + "/gems/${relativegembinary}"
267 274

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

  ViewVC Help
Powered by ViewVC 1.1.20