[DRE-commits] [ruby-rouge] 08/09: move demos files under /usr/share/ruby-rouge
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 5ed4ba8ae6459b666755cb24ad6929855243e84b
Author: Cédric Boutillier <boutil at debian.org>
Date: Mon Jul 20 07:47:03 2015 +0200
move demos files under /usr/share/ruby-rouge
---
debian/patches/demos_in_usr_share.patch | 16 ++++++++++++++++
debian/patches/series | 1 +
debian/rules | 5 +++++
3 files changed, 22 insertions(+)
diff --git a/debian/patches/demos_in_usr_share.patch b/debian/patches/demos_in_usr_share.patch
new file mode 100644
index 0000000..32ae089
--- /dev/null
+++ b/debian/patches/demos_in_usr_share.patch
@@ -0,0 +1,16 @@
+Description: install demo files under /usr/share/ruby-rouge/demos
+Forwarded: no
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2015-07-20
+
+--- a/lib/rouge/lexer.rb
++++ b/lib/rouge/lexer.rb
+@@ -87,7 +87,7 @@
+ def demo_file(arg=:absent)
+ return @demo_file = Pathname.new(arg) unless arg == :absent
+
+- @demo_file = Pathname.new(__FILE__).dirname.join('demos', tag)
++ @demo_file = Pathname.new('/usr/share/ruby-rouge').join('demos', tag)
+ end
+
+ # Specify or get a small demo string for this lexer
diff --git a/debian/patches/series b/debian/patches/series
index 74ca401..1b6a4b4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
fix_path_rougify.patch
+demos_in_usr_share.patch
diff --git a/debian/rules b/debian/rules
index acfc5fe..68d4aa7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,3 +16,8 @@
%:
dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_install:
+ dh_install lib/rouge/demos /usr/share/ruby-rouge
+ dh_auto_install
+ rm -rf debian/ruby-rouge/usr/lib/ruby/vendor_ruby/rouge/demos
--
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