[DRE-commits] [ruby-rmagick] 06/15: debian/rules: use gemspec hack only for clean target

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Dec 4 15:34:46 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 8b6df9776f46f9bf79755b6032e9005b6ee14012
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Dec 3 19:08:50 2016 -0200

    debian/rules: use gemspec hack only for clean target
    
    The actual gemspec will need patching
---
 debian/rules | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/debian/rules b/debian/rules
index afddc8c..fc44c69 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,16 @@
 #!/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
+debian/rmagick.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_auto_clean: debian/rmagick.gemspec
+	DH_RUBY_GEMSPEC=debian/rmagick.gemspec dh_auto_clean
+	$(RM) debian/rmagick.gemspec
 
 override_dh_install-indep:
 	dh_install

-- 
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