/[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.37 Revision 1.38
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 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.37 2012/08/19 07:45:02 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.38 2013/02/24 07:45:46 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:
112 112
113case ${RUBY_FAKEGEM_RECIPE_DOC} in 113case ${RUBY_FAKEGEM_RECIPE_DOC} in
114 rake) 114 rake)
115 IUSE+=" doc" 115 IUSE+=" doc"
116 ruby_add_bdepend "doc? ( dev-ruby/rake )" 116 ruby_add_bdepend "doc? ( dev-ruby/rake )"
117 RUBY_FAKEGEM_DOCDIR="doc"
117 ;; 118 ;;
118 rdoc) 119 rdoc)
119 IUSE+=" doc" 120 IUSE+=" doc"
120 ruby_add_bdepend "doc? ( dev-ruby/rdoc )" 121 ruby_add_bdepend "doc? ( dev-ruby/rdoc )"
121 RUBY_FAKEGEM_DOCDIR="doc" 122 RUBY_FAKEGEM_DOCDIR="doc"
278 # copies with different implementations; while for now we're using 279 # copies with different implementations; while for now we're using
279 # the same exact content, we might have differences in the future, 280 # the same exact content, we might have differences in the future,
280 # so better taking this into consideration. 281 # so better taking this into consideration.
281 local quoted_description=${DESCRIPTION//\"/\\\"} 282 local quoted_description=${DESCRIPTION//\"/\\\"}
282 cat - > $1 <<EOF 283 cat - > $1 <<EOF
283# generated by ruby-fakegem.eclass $Revision: 1.37 $ 284# generated by ruby-fakegem.eclass $Revision: 1.38 $
284Gem::Specification.new do |s| 285Gem::Specification.new do |s|
285 s.name = "${RUBY_FAKEGEM_NAME}" 286 s.name = "${RUBY_FAKEGEM_NAME}"
286 s.version = "${RUBY_FAKEGEM_VERSION}" 287 s.version = "${RUBY_FAKEGEM_VERSION}"
287 s.summary = "${quoted_description}" 288 s.summary = "${quoted_description}"
288 s.homepage = "${HOMEPAGE}" 289 s.homepage = "${HOMEPAGE}"
328 329
329 cat - > "${T}"/gembin-wrapper-${gembinary} <<EOF 330 cat - > "${T}"/gembin-wrapper-${gembinary} <<EOF
330#!${rubycmd} 331#!${rubycmd}
331# This is a simplified version of the RubyGems wrapper 332# This is a simplified version of the RubyGems wrapper
332# 333#
333# Generated by ruby-fakegem.eclass $Revision: 1.37 $ 334# Generated by ruby-fakegem.eclass $Revision: 1.38 $
334 335
335require 'rubygems' 336require 'rubygems'
336 337
337load Gem::default_path[-1] + "/gems/${relativegembinary}" 338load Gem::default_path[-1] + "/gems/${relativegembinary}"
338 339

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

  ViewVC Help
Powered by ViewVC 1.1.20