[DRE-commits] [gem2deb] 01/01: debian/rules: remove hardcoded Ruby versions
Antonio Terceiro
terceiro at moszumanska.debian.org
Wed Feb 12 12:58:37 UTC 2014
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit 5a13d9e8b97de4098a4c9c4abf48a0826859cc46
Author: Antonio Terceiro <terceiro at debian.org>
Date: Wed Feb 12 09:58:10 2014 -0300
debian/rules: remove hardcoded Ruby versions
---
debian/rules | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/debian/rules b/debian/rules
index 041df26..6b3e926 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,14 +3,21 @@
%:
dh $@
-override_dh_auto_build:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- # NO_PKG_MANGLE=1 is only useful on Ubuntu buildds, to disable pkgbinarymangler
- NO_PKG_MANGLE=1 ruby1.9.1 -S rake test TESTOPTS=-v
- NO_PKG_MANGLE=1 ruby2.0 -S rake test TESTOPTS=-v
-endif
+ruby_versions := $(shell ruby -Ilib -rgem2deb -e 'puts Gem2Deb::SUPPORTED_RUBY_VERSIONS.keys.sort.join(" ")')
+
+override_dh_auto_build: $(ruby_versions)
mkdir -p man
for i in bin/*; do pod2man -c "" -r "" $$i > man/$$(basename $$i).1; done
+.PHONY: $(ruby_versions)
+
+$(ruby_versions):
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ # NO_PKG_MANGLE=1 only useful on Ubuntu buildds, to disable pkgbinarymangler
+ NO_PKG_MANGLE=1 $@ -S rake test TESTOPTS=-v
+else
+ @echo "Skipping tests for $@ as DEB_BUILD_OPTIONS contains 'nocheck'"
+endif
+
override_dh_auto_clean:
rm -rf man/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list