[DRE-commits] [SCM] ruby-ttfunk.git branch, master, updated. upstream/1.0.2-5-g8a9b2c6

Cédric Boutillier cedric.boutillier at gmail.com
Thu Sep 8 09:02:39 UTC 2011


The following commit has been merged in the master branch:
commit 58ad3e4aa968c36b702825f87178aaf5fcc52d48
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Thu Sep 8 10:29:36 2011 +0200

    fix examples/metrics.rb

diff --git a/debian/patches/0010-fix_example_metrics.patch b/debian/patches/0010-fix_example_metrics.patch
new file mode 100644
index 0000000..c363322
--- /dev/null
+++ b/debian/patches/0010-fix_example_metrics.patch
@@ -0,0 +1,25 @@
+Description: fix metrics.rb shipped as an example
+ * add a shebang
+ * remove $LOAD_PATH manipulation
+ * use system copy of dejavu font
+Author: Cédric Boutillier <cedric.boutillier at gmail.com>
+Last-Update: 2011-09-07
+
+--- a/examples/metrics.rb
++++ b/examples/metrics.rb
+@@ -1,5 +1,5 @@
++#!/usr/bin/ruby
+ # encoding: utf-8
+-$LOAD_PATH << "#{File.dirname(__FILE__)}/../lib"
+ require "ttfunk"
+ 
+ def character_lookup(file, character)
+@@ -21,7 +21,7 @@
+   end
+ end
+ 
+-file = TTFunk::File.open(ARGV.first || "#{File.dirname(__FILE__)}/../data/fonts/DejaVuSans.ttf")
++file = TTFunk::File.open(ARGV.first || "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf")
+ 
+ puts "-- FONT ------------------------------------"
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d66b29f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0010-fix_example_metrics.patch

-- 
ruby-ttfunk.git



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