/[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.38 Revision 1.39
1# Copyright 1999-2013 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.38 2013/02/24 07:45:46 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.39 2013/06/01 13:18:45 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:
279 # copies with different implementations; while for now we're using 279 # copies with different implementations; while for now we're using
280 # the same exact content, we might have differences in the future, 280 # the same exact content, we might have differences in the future,
281 # so better taking this into consideration. 281 # so better taking this into consideration.
282 local quoted_description=${DESCRIPTION//\"/\\\"} 282 local quoted_description=${DESCRIPTION//\"/\\\"}
283 cat - > $1 <<EOF 283 cat - > $1 <<EOF
284# generated by ruby-fakegem.eclass $Revision: 1.38 $ 284# generated by ruby-fakegem.eclass $Revision: 1.39 $
285Gem::Specification.new do |s| 285Gem::Specification.new do |s|
286 s.name = "${RUBY_FAKEGEM_NAME}" 286 s.name = "${RUBY_FAKEGEM_NAME}"
287 s.version = "${RUBY_FAKEGEM_VERSION}" 287 s.version = "${RUBY_FAKEGEM_VERSION}"
288 s.summary = "${quoted_description}" 288 s.summary = "${quoted_description}"
289 s.homepage = "${HOMEPAGE}" 289 s.homepage = "${HOMEPAGE}"
329 329
330 cat - > "${T}"/gembin-wrapper-${gembinary} <<EOF 330 cat - > "${T}"/gembin-wrapper-${gembinary} <<EOF
331#!${rubycmd} 331#!${rubycmd}
332# This is a simplified version of the RubyGems wrapper 332# This is a simplified version of the RubyGems wrapper
333# 333#
334# Generated by ruby-fakegem.eclass $Revision: 1.38 $ 334# Generated by ruby-fakegem.eclass $Revision: 1.39 $
335 335
336require 'rubygems' 336require 'rubygems'
337 337
338load Gem::default_path[-1] + "/gems/${relativegembinary}" 338load Gem::default_path[-1] + "/gems/${relativegembinary}"
339 339
374 # Make sure that we're not running unpack for more than 374 # Make sure that we're not running unpack for more than
375 # one .gem file, since we won't support that at all. 375 # one .gem file, since we won't support that at all.
376 [[ -d "${S}" ]] && die "Unable to unpack ${archive}, ${S} exists" 376 [[ -d "${S}" ]] && die "Unable to unpack ${archive}, ${S} exists"
377 377
378 ebegin "Unpacking .gem file..." 378 ebegin "Unpacking .gem file..."
379 tar -mxf ${DISTDIR}/${archive} || die 379 tar -mxf "${DISTDIR}"/${archive} || die
380 eend $? 380 eend $?
381 381
382 ebegin "Uncompressing metadata" 382 ebegin "Uncompressing metadata"
383 gunzip metadata.gz || die 383 gunzip metadata.gz || die
384 eend $? 384 eend $?

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

  ViewVC Help
Powered by ViewVC 1.1.20