[DRE-commits] [ruby-notiffany] 07/10: fix images path and install them

Daisuke Higuchi dai at moszumanska.debian.org
Wed Nov 15 15:48:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

dai pushed a commit to branch master
in repository ruby-notiffany.

commit 2616bfa33b24c861b0fe5fd93a5298b9b4296257
Author: HIGUCHI Daisuke (VDR dai) <dai at debian.org>
Date:   Thu Nov 16 00:43:08 2017 +0900

    fix images path and install them
---
 debian/patches/fix-images-path.patch | 18 ++++++++++++++++++
 debian/rules                         |  8 ++++++++
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/fix-images-path.patch b/debian/patches/fix-images-path.patch
new file mode 100644
index 0000000..d13b363
--- /dev/null
+++ b/debian/patches/fix-images-path.patch
@@ -0,0 +1,18 @@
+Description: fix images path
+Author: HIGUCHI Daisuke (VDR dai) <dai at debian.org>
+Forwarded: not-needed
+Last-Update: 2017-11-16
+
+Index: ruby-notiffany/lib/notiffany/notifier/base.rb
+===================================================================
+--- ruby-notiffany.orig/lib/notiffany/notifier/base.rb
++++ ruby-notiffany/lib/notiffany/notifier/base.rb
+@@ -52,7 +52,7 @@ module Notiffany
+           merge(self.class.const_get(:DEFAULTS)).
+           merge(options).freeze
+ 
+-        @images_path = Pathname.new(__FILE__).dirname + "../../../images"
++        @images_path = Pathname.new(__FILE__).dirname + "../images"
+ 
+         _check_host_supported
+         _require_gem
diff --git a/debian/rules b/debian/rules
index 3454d59..4b0d7ed 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,11 @@ export GEM2DEB_TEST_RUNNER = --check-dependencies
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_install:
+	dh_auto_install
+	cp -pr images $(CURDIR)/debian/ruby-notiffany/usr/lib/ruby/vendor_ruby/notiffany
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf $(CURDIR)/debian/ruby-notiffany/usr/lib/ruby/vendor_ruby/notiffany

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-notiffany.git



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