[DRE-commits] [ruby-rmagick] 05/11: debian/rules: cleanup
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Aug 25 23:32:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-rmagick.
commit 712aef1dab31896239a944963dd2dfeab874af4c
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Aug 25 18:42:05 2015 -0300
debian/rules: cleanup
---
debian/ruby-rmagick-doc.install | 1 +
debian/rules | 34 +++++-----------------------------
2 files changed, 6 insertions(+), 29 deletions(-)
diff --git a/debian/ruby-rmagick-doc.install b/debian/ruby-rmagick-doc.install
new file mode 100644
index 0000000..4afb966
--- /dev/null
+++ b/debian/ruby-rmagick-doc.install
@@ -0,0 +1 @@
+doc/* usr/share/doc/ruby-rmagick-doc/html
diff --git a/debian/rules b/debian/rules
index 331eb65..301426b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,34 +1,10 @@
#!/usr/bin/make -f
-#export DH_VERBOSE=1
-#
-# Uncomment to ignore all test failures (but the tests will run anyway)
-#export DH_RUBY_IGNORE_TESTS=all
-#
-# Uncomment to ignore some test failures (but the tests will run anyway).
-# Valid values:
-#export DH_RUBY_IGNORE_TESTS=ruby2.1 ruby2.2
-#
-# If you need to specify the .gemspec (eg there is more than one)
-#export DH_RUBY_GEMSPEC=gem.gemspec
-#
-# Uncomment to check dependencies during build:
-# export GEM2DEB_TEST_RUNNER = --check-dependencies
+
+export GEM2DEB_TEST_RUNNER = --check-dependencies
%:
dh $@ --buildsystem=ruby --with ruby
-override_dh_clean:
- dh_clean
- # Remove unneeded files created during the build process
- rm -f ext/RMagick/mkmf.log *.miff *.gif *.png
-
-target_doc_dir = debian/ruby-rmagick-doc/usr/share/doc/ruby-rmagick-doc
-override_dh_auto_install:
- dh_auto_install
-# Then, we move the documentation to its proper package
-# Not very elegant, but effective
- mkdir -p $(target_doc_dir)
- mv debian/ruby-rmagick/usr/share/RMagick $(target_doc_dir)/html
-# And now very uncleanly remove files not wanted
- -find $(target_doc_dir) -name .cvsignore | xargs rm
- -find $(target_doc_dir) -name .rmagick | xargs rm
+override_dh_install:
+ dh_install
+ find debian/ruby-rmagick-doc/ -name .cvsignore -delete
--
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