[DRE-commits] [ruby-maruku] 01/02: install xml file, added patch for correct path
Jonas Genannt
jonas at brachium-system.net
Fri Feb 21 21:53:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
hggh-guest pushed a commit to branch master
in repository ruby-maruku.
commit 46df044776ebb3c6019deb9634398d9d5b8bba09
Author: Jonas Genannt <jonas at brachium-system.net>
Date: Fri Feb 21 22:52:46 2014 +0100
install xml file, added patch for correct path
---
debian/patches/data_path_fix.patch | 15 +++++++++++++++
debian/patches/series | 1 +
debian/ruby-maruku.install | 1 +
3 files changed, 17 insertions(+)
diff --git a/debian/patches/data_path_fix.patch b/debian/patches/data_path_fix.patch
new file mode 100644
index 0000000..d48143a
--- /dev/null
+++ b/debian/patches/data_path_fix.patch
@@ -0,0 +1,15 @@
+Description: change path to xml for debian installation
+Author: Jonas Genannt <jonas.genannt at capi2name.de>
+Forwarded: not-needed
+
+--- a/lib/maruku/output/entity_table.rb
++++ b/lib/maruku/output/entity_table.rb
+@@ -11,7 +11,7 @@
+ def initialize
+ @entity_table = {}
+
+- xml = File.new(File.join(File.dirname(__FILE__), '..', '..', '..', 'data', 'entities.xml'))
++ xml = File.new('/usr/share/ruby-maruku/entities.xml')
+ doc = REXML::Document.new(xml)
+ doc.elements.each("//char") do |c|
+ num = c.attributes['num'].to_i
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..37d5883
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+data_path_fix.patch
diff --git a/debian/ruby-maruku.install b/debian/ruby-maruku.install
new file mode 100644
index 0000000..1502515
--- /dev/null
+++ b/debian/ruby-maruku.install
@@ -0,0 +1 @@
+data/* usr/share/ruby-maruku
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-maruku.git
More information about the Pkg-ruby-extras-commits
mailing list