public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Hans de Graaff (graaff)" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ruby-fakegem.eclass
Date: Sat, 18 Dec 2010 09:50:08 +0000 (UTC)	[thread overview]
Message-ID: <20101218095008.8D41720054@flycatcher.gentoo.org> (raw)

graaff      10/12/18 09:50:08

  Modified:             ruby-fakegem.eclass
  Log:
  Depend directly on dev-ruby/rubygems again since we no longer have ruby targets providing rubygems themselves.

Revision  Changes    Path
1.25                 eclass/ruby-fakegem.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ruby-fakegem.eclass?rev=1.25&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ruby-fakegem.eclass?rev=1.25&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ruby-fakegem.eclass?r1=1.24&r2=1.25

Index: ruby-fakegem.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- ruby-fakegem.eclass	23 Sep 2010 06:47:01 -0000	1.24
+++ ruby-fakegem.eclass	18 Dec 2010 09:50:08 -0000	1.25
@@ -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.24 2010/09/23 06:47:01 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-fakegem.eclass,v 1.25 2010/12/18 09:50:08 graaff Exp $
 #
 # @ECLASS: ruby-fakegem.eclass
 # @MAINTAINER:
@@ -59,6 +59,11 @@
 # Extra require paths (beside lib) to add to the specification
 # RUBY_FAKEGEM_REQUIRE_PATHS=""
 
+# @ECLASS-VARIABLE: RUBY_FAKEGEM_GEMSPEC
+# @DESCRIPTION:
+# Filename of .gemspec file to install instead of generating a generic one.
+# RUBY_FAKEGEM_GEMSPEC=""
+
 RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN}}"
 RUBY_FAKEGEM_VERSION="${RUBY_FAKEGEM_VERSION:-${PV/_pre/.pre}}"
 RUBY_FAKEGEM_SUFFIX="${RUBY_FAKEGEM_SUFFIX:-}"
@@ -84,7 +89,7 @@
 
 SRC_URI="mirror://rubygems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}${RUBY_FAKEGEM_SUFFIX:+-${RUBY_FAKEGEM_SUFFIX}}.gem"
 
-ruby_add_rdepend virtual/rubygems
+ruby_add_rdepend dev-ruby/rubygems
 
 # @FUNCTION: ruby_fakegem_gemsdir
 # @RETURN: Returns the gem data directory
@@ -135,6 +140,22 @@
 	) || die "failed $0 $@"
 }
 
+# @FUNCTION: ruby_fakegem_gemspec
+# @DESCRIPTION:
+# Install a .gemspec file for this package. Either use the file indicated
+# by the RUBY_FAKEGEM_GEMSPEC variable, or generate one using
+# ruby_fakegem_genspec
+ruby_fakegem_gemspec() {
+	if [[ ${RUBY_FAKEGEM_GEMSPEC} != "" ]]; then
+		(
+			insinto $(ruby_fakegem_gemsdir)/specifications
+			newins "${RUBY_FAKEGEM_GEMSPEC}" ${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}.gemspec
+		) || die "Unable to install ${RUBY_FAKEGEM_GEMSPEC} gemspec"
+	else
+		ruby_fakegem_genspec
+	fi
+}
+
 # @FUNCTION: ruby_fakegem_genspec
 # @DESCRIPTION:
 # Generates a gemspec for the package and places it into the "specifications"
@@ -156,7 +177,7 @@
 		# so better taking this into consideration.
 		local quoted_description=${DESCRIPTION//\"/\\\"}
 		cat - > "${T}"/${RUBY_FAKEGEM_NAME}-${_ruby_implementation} <<EOF
-# generated by ruby-fakegem.eclass $Revision: 1.24 $
+# generated by ruby-fakegem.eclass $Revision: 1.25 $
 Gem::Specification.new do |s|
   s.name = "${RUBY_FAKEGEM_NAME}"
   s.version = "${RUBY_FAKEGEM_VERSION}"
@@ -210,7 +231,7 @@
 #!${rubycmd}
 # This is a simplified version of the RubyGems wrapper
 #
-# Generated by ruby-fakegem.eclass $Revision: 1.24 $
+# Generated by ruby-fakegem.eclass $Revision: 1.25 $
 
 require 'rubygems'
 
@@ -302,7 +323,7 @@
 # @DESCRIPTION:
 # Install the package for each ruby target.
 each_fakegem_install() {
-	ruby_fakegem_genspec
+	ruby_fakegem_gemspec
 
 	local _gemlibdirs="${RUBY_FAKEGEM_EXTRAINSTALL}"
 	for directory in bin lib; do






             reply	other threads:[~2010-12-18  9:50 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-18  9:50 Hans de Graaff (graaff) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-04-21  7:35 [gentoo-commits] gentoo-x86 commit in eclass: ruby-fakegem.eclass Hans de Graaff (graaff)
2013-02-24  7:45 Hans de Graaff (graaff)
2012-08-19  7:45 Hans de Graaff (graaff)
2011-12-05 12:24 Hans de Graaff (graaff)
2011-10-21  6:32 Hans de Graaff (graaff)
2011-04-25  8:36 Hans de Graaff (graaff)
2011-03-05  6:58 Hans de Graaff (graaff)
2010-12-28 12:07 Hans de Graaff (graaff)
2010-12-18  9:57 Hans de Graaff (graaff)
2010-09-23  6:47 Fabian Groffen (grobian)
2010-07-29  9:38 Diego Petteno (flameeyes)
2010-07-27 11:02 Diego Petteno (flameeyes)
2010-07-21 10:43 Diego Petteno (flameeyes)
2010-07-21 10:42 Diego Petteno (flameeyes)
2010-05-24  7:34 Diego Petteno (flameeyes)
2010-02-19 11:59 Diego Petteno (flameeyes)
2010-02-19 11:58 Diego Petteno (flameeyes)
2010-02-19  8:47 Diego Petteno (flameeyes)
2010-02-13  8:45 Hans de Graaff (graaff)
2010-01-24  0:00 Diego Petteno (flameeyes)
2010-01-21 10:18 Diego Petteno (flameeyes)
2010-01-18 22:01 Diego Petteno (flameeyes)
2010-01-09 21:16 Diego Petteno (flameeyes)
2010-01-01 23:13 Diego Petteno (flameeyes)
2009-12-26 17:06 Diego Petteno (flameeyes)
2009-12-21 19:07 Diego Petteno (flameeyes)
2009-12-20 23:39 Diego Petteno (flameeyes)
2009-12-16  9:51 Diego Petteno (flameeyes)
2009-12-15 17:43 Diego Petteno (flameeyes)
2009-12-15 16:27 Diego Petteno (flameeyes)
2009-12-15 15:32 Diego Petteno (flameeyes)
2009-12-14 12:32 Alex Legler (a3li)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101218095008.8D41720054@flycatcher.gentoo.org \
    --to=graaff@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox