[DRE-commits] [ruby-rouge] 04/09: fix path for library in rougify

Cédric Boutillier boutil at moszumanska.debian.org
Mon Jul 20 05:55:09 UTC 2015


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

boutil pushed a commit to branch master
in repository ruby-rouge.

commit 5ffdf0c594a32e8d7221176979167ce5148cc215
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Jul 20 07:13:23 2015 +0200

    fix path for library in rougify
---
 debian/patches/fix_path_rougify.patch | 22 ++++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/fix_path_rougify.patch b/debian/patches/fix_path_rougify.patch
new file mode 100644
index 0000000..11871c5
--- /dev/null
+++ b/debian/patches/fix_path_rougify.patch
@@ -0,0 +1,22 @@
+Description: fix paths for Ruby rouge library in rougify
+ Let the interpreter find the files.
+ The relative paths are not correct anymore when files are installed
+ systemwide.
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: no
+Last-Update: 2015-07-20
+
+--- a/bin/rougify
++++ b/bin/rougify
+@@ -1,9 +1,8 @@
+ #!/usr/bin/env ruby
+ 
+ require 'pathname'
+-ROOT_DIR = Pathname.new(__FILE__).dirname.parent
+-load ROOT_DIR.join('lib/rouge.rb')
+-load ROOT_DIR.join('lib/rouge/cli.rb')
++require 'rouge'
++require 'rouge/cli'
+ 
+ begin
+   Rouge::CLI.parse(ARGV).run
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..74ca401
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_path_rougify.patch

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



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