[DRE-commits] [ruby-premailer] 05/09: Add patch to use system path and install necessary files

Balasankar C balasankarc-guest at moszumanska.debian.org
Wed Apr 13 17:47:02 UTC 2016


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

balasankarc-guest pushed a commit to branch master
in repository ruby-premailer.

commit 74a7f3688b4aee966cdddde565bbdf5887c4ea28
Author: Balasankar C <balasankarc at autistici.org>
Date:   Wed Apr 13 22:58:55 2016 +0530

    Add patch to use system path and install necessary files
---
 debian/install                |  1 +
 debian/patches/fix-path.patch | 20 ++++++++++++++++++++
 debian/patches/series         |  1 +
 3 files changed, 22 insertions(+)

diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..c73eb4f
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+misc/client_support.yaml usr/share/ruby-premailer
diff --git a/debian/patches/fix-path.patch b/debian/patches/fix-path.patch
new file mode 100644
index 0000000..3ce5592
--- /dev/null
+++ b/debian/patches/fix-path.patch
@@ -0,0 +1,20 @@
+Description: Use Debian specific path
+Author: Balasankar C
+Last-Update: 2016-04-13
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/lib/premailer/premailer.rb
++++ b/lib/premailer/premailer.rb
+@@ -35,7 +35,11 @@
+   include HtmlToPlainText
+   include CssParser
+ 
+-  CLIENT_SUPPORT_FILE = File.dirname(__FILE__) + '/../../misc/client_support.yaml'
++  if File.exists?('/usr/share/ruby-premailer/client_support.yaml')
++      CLIENT_SUPPORT_FILE = '/usr/share/ruby-premailer/client_support.yaml'
++  else
++      CLIENT_SUPPORT_FILE = File.dirname(__FILE__) + '/../../misc/client_support.yaml'
++  end
+ 
+   # Unmergable selectors regexp.
+   RE_UNMERGABLE_SELECTORS = /(\:(visited|active|hover|focus|after|before|selection|target|first\-(line|letter))|^\@)/i
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..427038b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-path.patch

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



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