From 06083c634937862b22368f16c658a5740d4e50bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20Petten=C3=B2?= Date: Fri, 19 Feb 2010 11:58:36 +0000 Subject: [PATCH] Don't create generic wrappers when installing for a single implementation. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since we have a few packages that can only be installed for JRuby, and that thus wouldn't work with any of the selected implementations, and a few that installs only for Ruby 1.8 (and thus would break if 1.9 was selected), try to reduce their impact by only producing generic wrappers when installing for multiple implementations. This should produce a totally working system after updating from 1.9, among other things. To make sure that the wrappers generated by different revisions of ruby-fakegem.eclass are properly identified, also add the CVS ID of the eclass in the comments of the generated wrapper. At the same time add the same specification about generation to the gemspec files, so that we can identify “older” specifications quickly. --- eclass/ruby-fakegem.eclass | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass index f66b522db751..45b33fad244a 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.15 2010/02/19 08:47:36 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.16 2010/02/19 11:58:36 flameeyes Exp $ # # @ECLASS: ruby-fakegem.eclass # @MAINTAINER: @@ -148,6 +148,7 @@ ruby_fakegem_genspec() { # so better taking this into consideration. local quoted_description=${DESCRIPTION//\"/\\\"} cat - > "${T}"/${RUBY_FAKEGEM_NAME}-${_ruby_implementation} < "${T}"/gembin-wrapper-${gembinary} <