summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-02-13 08:45:03 +0000
committerHans de Graaff <graaff@gentoo.org>2010-02-13 08:45:03 +0000
commitc6faa8d381d59b1e732426b976c20d368839b368 (patch)
tree719ae2ea39890ad3cd89fd150f282832e0636c8b /eclass
parentMove dev-java/junit from RDEPEND to DEPEND (diff)
downloadhistorical-c6faa8d381d59b1e732426b976c20d368839b368.tar.gz
historical-c6faa8d381d59b1e732426b976c20d368839b368.tar.bz2
historical-c6faa8d381d59b1e732426b976c20d368839b368.zip
Take into account that the description may contain double quotes and quote them to avoid generating invalid ruby code. Fixes #304723.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-fakegem.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index bddefbfd2805..518d1bb08324 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.13 2010/01/24 00:00:40 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.14 2010/02/13 08:45:03 graaff Exp $
#
# @ECLASS: ruby-fakegem.eclass
# @MAINTAINER:
@@ -145,11 +145,12 @@ ruby_fakegem_genspec() {
# copies with different implementations; while for now we're using
# the same exact content, we might have differences in the future,
# so better taking this into consideration.
+ local quoted_description=${DESCRIPTION//\"/\\\"}
cat - > "${T}"/${RUBY_FAKEGEM_NAME}-${_ruby_implementation} <<EOF
Gem::Specification.new do |s|
s.name = "${RUBY_FAKEGEM_NAME}"
s.version = "${RUBY_FAKEGEM_VERSION}"
- s.summary = "${DESCRIPTION}"
+ s.summary = "${quoted_description}"
s.homepage = "${HOMEPAGE}"
s.require_paths = [${required_paths}]
end