[DRE-commits] [ruby-rmagick] 04/15: workaround breakage when loading gemspec
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Dec 4 15:33:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-rmagick.
commit 391554125afc09f5170eddafeab8bfe531944c51
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sat Dec 3 16:29:15 2016 -0200
workaround breakage when loading gemspec
---
debian/rules | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 753a8ab..afddc8c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,19 @@
#!/usr/bin/make -f
export GEM2DEB_TEST_RUNNER = --check-dependencies
+export DH_RUBY_GEMSPEC = debian/rmagick.gemspec
-%:
+%: $(DH_RUBY_GEMSPEC)
dh $@ --buildsystem=ruby --with ruby
+
+$(DH_RUBY_GEMSPEC): rmagick.gemspec
+ sed -e '/def v/,/^end/ d; s/v(/Gem::Version.new(/' $^ > $@ || ($(RM) $@; false)
+
+override_dh_auto_clean:
+ dh_auto_clean
+ $(RM) $(DH_RUBY_GEMSPEC)
+
override_dh_install-indep:
dh_install
find debian/*/usr/share/doc/ruby-rmagick-doc/ \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rmagick.git
More information about the Pkg-ruby-extras-commits
mailing list