[DRE-commits] [ruby-prawn-manual-builder] 05/06: add patch to use system fonts

Cédric Boutillier boutil at moszumanska.debian.org
Fri Jul 18 19:30:54 UTC 2014


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

boutil pushed a commit to branch master
in repository ruby-prawn-manual-builder.

commit 638da061033dbb6a2e194ccb4e0c8599fe8a34a7
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Jul 18 20:56:24 2014 +0200

    add patch to use system fonts
---
 debian/patches/fix_paths.patch | 34 ++++++++++++++++++++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 35 insertions(+)

diff --git a/debian/patches/fix_paths.patch b/debian/patches/fix_paths.patch
new file mode 100644
index 0000000..2502b06
--- /dev/null
+++ b/debian/patches/fix_paths.patch
@@ -0,0 +1,34 @@
+Description: fix paths to use system fonts and data provided by the ruby-prawn package
+Origin: vendor
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+Last-Update: 2014-07-18
+
+--- a/lib/prawn/manual_builder.rb
++++ b/lib/prawn/manual_builder.rb
+@@ -19,7 +19,7 @@
+ 
+     end
+ 
+-    DATADIR = File.dirname(__FILE__) + "/../../data"
++    DATADIR = "/usr/share/ruby-prawn/"
+   end
+ end
+ 
+--- a/lib/prawn/manual_builder/example.rb
++++ b/lib/prawn/manual_builder/example.rb
+@@ -152,12 +152,12 @@
+       # Register fonts used on the manual
+       #
+       def register_fonts
+-        kai_file = "#{Prawn::ManualBuilder::DATADIR}/fonts/gkai00mp.ttf"
++        kai_file = "/usr/share/fonts/truetype/arphic-gkai00mp/gkai00mp.ttf"
+         font_families["Kai"] = {
+           :normal => { :file => kai_file, :font => "Kai" }
+         }
+ 
+-        dejavu_file = "#{Prawn::ManualBuilder::DATADIR}/fonts/DejaVuSans.ttf"
++        dejavu_file = "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"
+         font_families["DejaVu"] = {
+           :normal => { :file => dejavu_file, :font => "DejaVu" }
+         }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..eddf4b9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_paths.patch

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



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