/[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.13 Revision 1.14
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.13 2010/01/24 00:00:40 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.14 2010/02/13 08:45:03 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# 8#
143 143
144 # We use the _ruby_implementation variable to avoid having stray 144 # We use the _ruby_implementation variable to avoid having stray
145 # copies with different implementations; while for now we're using 145 # copies with different implementations; while for now we're using
146 # the same exact content, we might have differences in the future, 146 # the same exact content, we might have differences in the future,
147 # so better taking this into consideration. 147 # so better taking this into consideration.
148 local quoted_description=${DESCRIPTION//\"/\\\"}
148 cat - > "${T}"/${RUBY_FAKEGEM_NAME}-${_ruby_implementation} <<EOF 149 cat - > "${T}"/${RUBY_FAKEGEM_NAME}-${_ruby_implementation} <<EOF
149Gem::Specification.new do |s| 150Gem::Specification.new do |s|
150 s.name = "${RUBY_FAKEGEM_NAME}" 151 s.name = "${RUBY_FAKEGEM_NAME}"
151 s.version = "${RUBY_FAKEGEM_VERSION}" 152 s.version = "${RUBY_FAKEGEM_VERSION}"
152 s.summary = "${DESCRIPTION}" 153 s.summary = "${quoted_description}"
153 s.homepage = "${HOMEPAGE}" 154 s.homepage = "${HOMEPAGE}"
154 s.require_paths = [${required_paths}] 155 s.require_paths = [${required_paths}]
155end 156end
156EOF 157EOF
157 158

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

  ViewVC Help
Powered by ViewVC 1.1.20