[DRE-commits] [ruby-prof] 08/14: change to gem2deb (Closes: #698147)

Jonas Genannt jonas at brachium-system.net
Thu Dec 19 19:42:24 UTC 2013


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

hggh-guest pushed a commit to branch master
in repository ruby-prof.

commit c040ac8653e3a03c9da0f8cb8d04a93e15449f67
Author: Jonas Genannt <jonas at brachium-system.net>
Date:   Thu Dec 19 19:30:24 2013 +0100

    change to gem2deb (Closes: #698147)
---
 debian/clean                |  1 +
 debian/compat               |  2 +-
 debian/control              | 13 +++++++---
 debian/ruby-test-files.yaml |  3 +++
 debian/rules                | 60 +++++++++++++++------------------------------
 debian/source/format        |  1 +
 6 files changed, 35 insertions(+), 45 deletions(-)

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..a9a5aec
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+tmp
diff --git a/debian/compat b/debian/compat
index 7ed6ff8..7f8f011 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+7
diff --git a/debian/control b/debian/control
index cc2fe9e..b9b891e 100644
--- a/debian/control
+++ b/debian/control
@@ -2,17 +2,22 @@ Source: ruby-prof
 Section: ruby
 Priority: optional
 Maintainer: Arnaud Cornet <acornet at debian.org>
-Standards-Version: 3.8.1
-Build-Depends: debhelper (>= 7), quilt, ruby, ruby1.8, ruby1.8-dev
+Standards-Version: 3.9.5
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.6.1~), ruby-minitest, ruby-test-unit
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-prof.git
+Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-prof.git;a=summary
+Homepage: https://github.com/ruby-prof/ruby-prof
+XS-Ruby-Versions: all
 
 Package: ruby-prof
 Architecture: any
-Depends: ruby1.8, rake, ${shlibs:Depends}, ${misc:Depends}
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, rake
 Description: A fast code profiler for Ruby
  ruby-prof is runs a ruby program and keeps track of the amount of time spent
  in each method. At the end of execution it displays collected information.
  Its features include:
-   * Speed - it is a C extension and therefore many times faster than 
+   * Speed - it is a C extension and therefore many times faster than
      the standard Ruby profiler.
    * Flat Profiles - similar to the reports generated by the standard
      Ruby profiler.
diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
new file mode 100644
index 0000000..47009f9
--- /dev/null
+++ b/debian/ruby-test-files.yaml
@@ -0,0 +1,3 @@
+---
+- test/test_helper.rb
+- test/test_suite.rb
diff --git a/debian/rules b/debian/rules
index 0887714..1384882 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,41 +1,21 @@
 #!/usr/bin/make -f
-
-include /usr/share/quilt/quilt.make
-
-RUBY_ARCHDIR=$(strip $(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["archdir"]'))
-
-build: patch
-	dh build --until dh_auto_configure
-	(cd ext && ruby1.8 extconf.rb)
-	make -C ext
-	dh build --after dh_auto_build
-
-clean: unpatch
-	([ -f ext/Makefile ] && make -C ext clean) || true
-	rm -f ext/ruby_prof.so
-	rm -f ext/ruby_prof.o
-	rm -f ext/Makefile ext/mkmf.log
-	dh clean
-
-install: build
-	dh install --until dh_auto_install
-	mkdir -p debian/ruby-prof/$(RUBY_ARCHDIR)
-	mkdir -p debian/ruby-prof/usr/bin
-	mkdir -p debian/ruby-prof/usr/lib/ruby/1.8
-	cp -r lib/ruby-prof debian/ruby-prof/usr/lib/ruby/1.8
-	cp lib/*.rb debian/ruby-prof/usr/lib/ruby/1.8
-	chmod a-x debian/ruby-prof/usr/lib/ruby/1.8/ruby-prof/*.rb
-	cp bin/ruby-prof debian/ruby-prof/usr/bin
-	cp ext/ruby_prof.so debian/ruby-prof/$(RUBY_ARCHDIR)
-	mkdir -p debian/ruby-prof/usr/share/doc/ruby-prof
-	cp CHANGES debian/ruby-prof/usr/share/doc/ruby-prof/changelog
-	dh install --after dh_auto_install
-
-binary-arch: install
-	dh binary-arch
-
-binary-indep: install
-	dh binary-indep
-
-binary: binary-arch binary-indep
-
+export DH_VERBOSE=1
+#
+# Uncomment to ignore all test failures (but the tests will run anyway)
+#export DH_RUBY_IGNORE_TESTS=all
+#
+# Uncomment to ignore some test failures (but the tests will run anyway).
+# Valid values:
+# minitest is missing yet for ruby 2.0
+export DH_RUBY_IGNORE_TESTS=ruby2.0
+#
+# If you need to specify the .gemspec (eg there is more than one)
+#export DH_RUBY_GEMSPEC=gem.gemspec
+
+%:
+	dh $@ --buildsystem=ruby --with ruby
+
+# create directory for prof file write tests
+override_dh_auto_install:
+	mkdir tmp
+	dh_auto_install -O--buildsystem=ruby
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

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



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