diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-02-13 08:45:03 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-02-13 08:45:03 +0000 |
commit | c4cafff8430a27a4de80bdffe3c245d4974f7352 (patch) | |
tree | 364f41ad38b6d3bed892a03ea49527f1712b4351 /eclass/ruby-fakegem.eclass | |
parent | Move dev-java/junit from RDEPEND to DEPEND (diff) | |
download | gentoo-2-c4cafff8430a27a4de80bdffe3c245d4974f7352.tar.gz gentoo-2-c4cafff8430a27a4de80bdffe3c245d4974f7352.tar.bz2 gentoo-2-c4cafff8430a27a4de80bdffe3c245d4974f7352.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/ruby-fakegem.eclass')
-rw-r--r-- | eclass/ruby-fakegem.eclass | 5 |
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 |