[DRE-commits] [ruby-tokyocabinet] 01/02: Patch gemspec to make it loadable by gem2deb, fixes FTBFS

zeha at debian.org zeha at debian.org
Tue Mar 22 12:19:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

zeha pushed a commit to branch master
in repository ruby-tokyocabinet.

commit 5db178b89ead83f322c38fe3e2a2d70c0df4ffd7
Author: Christian Hofstaedtler <zeha at debian.org>
Date:   Tue Mar 22 12:15:24 2016 +0000

    Patch gemspec to make it loadable by gem2deb, fixes FTBFS
---
 debian/patches/fix_gemspec_for_ruby1.9.patch | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/debian/patches/fix_gemspec_for_ruby1.9.patch b/debian/patches/fix_gemspec_for_ruby1.9.patch
index dde9d69..1a06701 100644
--- a/debian/patches/fix_gemspec_for_ruby1.9.patch
+++ b/debian/patches/fix_gemspec_for_ruby1.9.patch
@@ -3,10 +3,15 @@ Description: Fix gemspec file for Ruby 1.9.2
  «s.author =» works with Ruby 1.8 and 1.9.2
 Author: Laurent Arnoud <laurent at spkdev.net>
 Forwarded: yes
---- a/tokyocabinet.gemspec
-+++ b/tokyocabinet.gemspec
-@@ -3,7 +3,7 @@ require 'rubygems'
- spec = Gem::Specification.new do |s|
+Index: ruby-tokyocabinet/tokyocabinet.gemspec
+===================================================================
+--- ruby-tokyocabinet.orig/tokyocabinet.gemspec
++++ ruby-tokyocabinet/tokyocabinet.gemspec
+@@ -1,9 +1,8 @@
+ require 'rubygems'
+-
+-spec = Gem::Specification.new do |s|
++Gem::Specification.new do |s|
    s.name = "tokyocabinet"
    s.version = "1.31"
 -  s.author "FAL Labs"
@@ -14,3 +19,12 @@ Forwarded: yes
    s.email = "info at fallabs.com"
    s.homepage = "http://fallabs.com/tokyocabinet/"
    s.summary = "Tokyo Cabinet: a modern implementation of DBM."
+@@ -12,8 +11,3 @@ spec = Gem::Specification.new do |s|
+   s.require_path = "."
+   s.extensions = [ "extconf.rb" ]
+ end
+-
+-if $0 == __FILE__
+-  Gem::manage_gems
+-  Gem::Builder.new(spec).build
+-end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-tokyocabinet.git



More information about the Pkg-ruby-extras-commits mailing list