[DRE-commits] [SCM] ruby-activesupport-2.3.git branch, debian-sid, updated. debian/2.3.11-1-2-g53b4237

Ondřej Surý ondrej at sury.org
Fri Jun 3 12:41:02 UTC 2011


The following commit has been merged in the debian-sid branch:
commit 07db0a9e30df38e7fe9c60524e41d7c855ac0d31
Author: Ondřej Surý <ondrej at sury.org>
Date:   Fri Jun 3 14:37:40 2011 +0200

    Use RAILS_VERSION from metadata.yml to generate dependencies

diff --git a/debian/control b/debian/control.in
similarity index 100%
copy from debian/control
copy to debian/control.in
diff --git a/debian/rules b/debian/rules
index a5e7dc8..af4206f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,5 +11,13 @@
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
 
+RAILS_VERSION=$(shell sed -n "s/^  version: //p" metadata.yml)
+
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_testdir: debian/control
+	dh_testdir
+
+debian/control: debian/control.in
+	sed -e "s/@RAILS_VERSION@/$(RAILS_VERSION)/" >$@ <$<

-- 
ruby-activesupport-2.3.git



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