Package: ruby-prawn-icon / 2.5.0-1

0002-Access-data-files-from-usr-share-ruby-prawn-icon.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Keith Packard <keithp@keithp.com>
Date: Fri, 2 Nov 2018 23:31:04 -0700
Subject: Access data files from /usr/share/ruby-prawn-icon

Debian does not want to have package data stored in /usr/lib/ruby

Signed-off-by: Keith Packard <keithp@keithp.com>
---
 lib/prawn/icon/base.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/prawn/icon/base.rb b/lib/prawn/icon/base.rb
index 6206f42..b5a9bbf 100644
--- a/lib/prawn/icon/base.rb
+++ b/lib/prawn/icon/base.rb
@@ -12,8 +12,7 @@ require_relative 'errors'
 module Prawn
   class Icon
     module Base
-      FONTDIR = File.join \
-        File.expand_path('../../../..', __FILE__), 'data/fonts'
+      FONTDIR = '/usr/share/ruby-prawn-icon/data/fonts'
     end
   end
 end