[DRE-commits] [ruby-mkrf] 01/06: Remove rcov support (unsupported on 1.9+)

Christian Hofstaedtler zeha at moszumanska.debian.org
Mon Dec 23 23:56:10 UTC 2013


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

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

commit 569db0a0666b365c8050df305adb8ff63074ee44
Author: Christian Hofstaedtler <zeha at debian.org>
Date:   Tue Dec 24 00:23:51 2013 +0100

    Remove rcov support (unsupported on 1.9+)
---
 debian/control                        |  1 -
 debian/patches/0800_remove_rcov.patch | 20 ++++++++++++++++++++
 debian/patches/series                 |  1 +
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index b3fa894..95fae17 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,6 @@ Package: ruby-mkrf
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
 Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, rake
-Suggests: rcov
 Description: Ruby library generating Rakefiles to build C extensions to Ruby
  The mkrf Ruby library generates Rakefilesto build extensions to Ruby written
  in C.  Rakefiles are Ruby analogs of Makefiles, describing tasks for the Rake
diff --git a/debian/patches/0800_remove_rcov.patch b/debian/patches/0800_remove_rcov.patch
new file mode 100644
index 0000000..dbc3a3e
--- /dev/null
+++ b/debian/patches/0800_remove_rcov.patch
@@ -0,0 +1,20 @@
+Index: ruby-mkrf/lib/mkrf/rakehelper.rb
+===================================================================
+--- ruby-mkrf.orig/lib/mkrf/rakehelper.rb	2013-12-24 00:23:06.732672527 +0100
++++ ruby-mkrf/lib/mkrf/rakehelper.rb	2013-12-24 00:23:30.608588122 +0100
+@@ -109,15 +109,3 @@ def sub_project(project, *targets)
+     end
+   end
+ end
+-
+-# Conditional require rcov/rcovtask if present
+-begin
+-  require 'rcov/rcovtask'
+-  
+-  Rcov::RcovTask.new do |t|
+-    t.test_files = FileList['test/test*.rb']
+-    t.rcov_opts << "-x /usr"
+-    t.output_dir = "test/coverage"
+-  end
+-rescue Object
+-end
diff --git a/debian/patches/series b/debian/patches/series
index c330ea7..9b638f1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@
 0610_fix_test_syck.patch
 0700_fix_link_command_order.patch
 9900_debug_test_failures.patch
+0800_remove_rcov.patch

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



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