[DRE-commits] [ruby-gnome2] 04/09: don't hardcode Ruby versions, use `dh_ruby --print-supported` instead

Antonio Terceiro terceiro at moszumanska.debian.org
Tue Jan 21 14:04:15 UTC 2014


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

terceiro pushed a commit to branch master
in repository ruby-gnome2.

commit 056face30e986b14f85272beb83c5a0fd7f9006e
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Mon Jan 20 17:07:32 2014 -0300

    don't hardcode Ruby versions, use `dh_ruby --print-supported` instead
---
 debian/changelog |  1 +
 debian/control   |  2 +-
 debian/rules     | 11 ++++++++---
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b832b50..da5a46e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,7 @@ ruby-gnome2 (2.1.0-1) UNRELEASED; urgency=low
 
   [ Antonio Terceiro ]
   * New upstream release
+  * don't hardcode Ruby versions, use `dh_ruby --print-supported` instead
 
  -- Antonio Terceiro <terceiro at debian.org>  Mon, 20 Jan 2014 16:46:18 -0300
 
diff --git a/debian/control b/debian/control
index 9979f24..3f17ef6 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Arnaud Cornet <acornet at debian.org>, Paul van Tilburg <paulvt at debian.org>, Michael Schutte <m.schutte.jr at gmail.com>, Antonio Terceiro <terceiro at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), ruby, ruby1.8, ruby1.8-dev, ruby1.9.1, ruby1.9.1-dev, libpng-dev, libxmu-dev, librsvg2-dev (>= 2.8.0), libvte-dev (>= 0.12.1), libpoppler-glib-dev (>= 0.8.0), pkg-config, libgstreamer0.10-dev, libgstreamer-plugins-base0.10-dev, libgtksourceview2.0-dev, libjpeg-dev, ruby-cairo, ruby-pkg-config
+Build-Depends: debhelper (>= 7.0.50~), gem2deb, libpng-dev, libxmu-dev, librsvg2-dev (>= 2.8.0), libvte-dev (>= 0.12.1), libpoppler-glib-dev (>= 0.8.0), pkg-config, libgstreamer0.10-dev, libgstreamer-plugins-base0.10-dev, libgtksourceview2.0-dev, libjpeg-dev, ruby-cairo, ruby-pkg-config
 Standards-Version: 3.9.3
 Homepage: http://ruby-gnome2.sourceforge.jp/
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-gnome2.git
diff --git a/debian/rules b/debian/rules
index 1338467..d081fd8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,11 +7,16 @@ override_dh_auto_configure:
 	#debian/check-upstream-versus-debian
 	dh_auto_configure -- $(shell dpkg-buildflags --export=configure)
 
-override_dh_auto_install:
-	debian/build ruby1.9.1
-	debian/build ruby2.0
+ruby_versions = $(shell dh_ruby --print-supported)
+
+.PHONY: $(ruby_versions)
+
+override_dh_auto_install: $(ruby_versions)
 	dh_auto_install
 
+$(ruby_versions):
+		debian/build $@
+
 override_dh_strip:
 	for i in $$(sed -n '/Package: ruby-.*-dbg/ { s/Package: \(.*\)-dbg/\1/ p }' debian/control) ; do \
 		dh_strip -p$$i --dbg-package=$$i-dbg ; \

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



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