/[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.35 Revision 1.36
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.35 2012/08/14 21:10:45 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.36 2012/08/15 15:06:09 flameeyes 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:
271 # copies with different implementations; while for now we're using 271 # copies with different implementations; while for now we're using
272 # the same exact content, we might have differences in the future, 272 # the same exact content, we might have differences in the future,
273 # so better taking this into consideration. 273 # so better taking this into consideration.
274 local quoted_description=${DESCRIPTION//\"/\\\"} 274 local quoted_description=${DESCRIPTION//\"/\\\"}
275 cat - > $1 <<EOF 275 cat - > $1 <<EOF
276# generated by ruby-fakegem.eclass $Revision: 1.35 $ 276# generated by ruby-fakegem.eclass $Revision: 1.36 $
277Gem::Specification.new do |s| 277Gem::Specification.new do |s|
278 s.name = "${RUBY_FAKEGEM_NAME}" 278 s.name = "${RUBY_FAKEGEM_NAME}"
279 s.version = "${RUBY_FAKEGEM_VERSION}" 279 s.version = "${RUBY_FAKEGEM_VERSION}"
280 s.summary = "${quoted_description}" 280 s.summary = "${quoted_description}"
281 s.homepage = "${HOMEPAGE}" 281 s.homepage = "${HOMEPAGE}"
321 321
322 cat - > "${T}"/gembin-wrapper-${gembinary} <<EOF 322 cat - > "${T}"/gembin-wrapper-${gembinary} <<EOF
323#!${rubycmd} 323#!${rubycmd}
324# This is a simplified version of the RubyGems wrapper 324# This is a simplified version of the RubyGems wrapper
325# 325#
326# Generated by ruby-fakegem.eclass $Revision: 1.35 $ 326# Generated by ruby-fakegem.eclass $Revision: 1.36 $
327 327
328require 'rubygems' 328require 'rubygems'
329 329
330load Gem::default_path[-1] + "/gems/${relativegembinary}" 330load Gem::default_path[-1] + "/gems/${relativegembinary}"
331 331
339# @FUNCTION: all_fakegem_compile 339# @FUNCTION: all_fakegem_compile
340# @DESCRIPTION: 340# @DESCRIPTION:
341# Build documentation for the package if indicated by the doc USE flag 341# Build documentation for the package if indicated by the doc USE flag
342# and if there is a documetation task defined. 342# and if there is a documetation task defined.
343all_fakegem_compile() { 343all_fakegem_compile() {
344 if use doc; then 344 if [[ -n ${RUBY_FAKEGEM_DOCDIR} ]] && use doc; then
345 case ${RUBY_FAKEGEM_RECIPE_DOC} in 345 case ${RUBY_FAKEGEM_RECIPE_DOC} in
346 rake) 346 rake)
347 rake ${RUBY_FAKEGEM_TASK_DOC} || die "failed to (re)build documentation" 347 rake ${RUBY_FAKEGEM_TASK_DOC} || die "failed to (re)build documentation"
348 ;; 348 ;;
349 rdoc) 349 rdoc)

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20