[DRE-commits] [ruby-entypo-rails] 08/10: use /usr/share/ruby-entypo-rails directory as root

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun Apr 13 11:40:00 UTC 2014


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

praveen pushed a commit to branch master
in repository ruby-entypo-rails.

commit 923d0917b883c0d99ba21cf9b5172692166ccd8b
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sun Apr 13 16:47:24 2014 +0530

    use /usr/share/ruby-entypo-rails directory as root
---
 debian/patches/engine-root.patch | 24 ++++++++++++++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/engine-root.patch b/debian/patches/engine-root.patch
new file mode 100644
index 0000000..a384568
--- /dev/null
+++ b/debian/patches/engine-root.patch
@@ -0,0 +1,24 @@
+Description: Use /usr/share/$pkg as engine root
+ This patch is Debian-specific
+Author: Pirate Praveen <praveen at debian.org>
+
+--- a/lib/entypo-rails.rb
++++ b/lib/entypo-rails.rb
+@@ -23,5 +23,6 @@
+   # Dummy engine so that lib/assets/stylesheets and vendor/assets/fonts
+   # are picked up by Rails asset pipeline.
+   class Engine < ::Rails::Engine
++	config.root = '/usr/share/ruby-entypo-rails'
+   end
+ end
+--- a/lib/entypo/charmap.rb
++++ b/lib/entypo/charmap.rb
+@@ -16,7 +16,7 @@
+     #
+     # Returns Charmap instance.
+     def self.instance
+-      @@instance ||= self.new File.expand_path('../../../app/assets/stylesheets/entypo.css.scss.erb', __FILE__)
++      @@instance ||= self.new File.expand_path('/usr/share/ruby-entypo-rails/app/assets/stylesheets/entypo.css.scss.erb', __FILE__)
+     end
+ 
+     # Public: Returns Array of icons.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d77d941
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+engine-root.patch

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



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