File: 0002-Load-data-files-from-usr-share-ruby-asciidoctor-pdf.patch

package info (click to toggle)
ruby-asciidoctor-pdf 2.3.19-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 15,972 kB
  • sloc: ruby: 44,316; sh: 133; java: 45; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 917 bytes parent folder | 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
From: Keith Packard <keithp@keithp.com>
Date: Sun, 30 Dec 2018 16:57:09 -0800
Subject: Load data files from /usr/share/ruby-asciidoctor-pdf

Avoid using /usr/lib/ruby

Signed-off-by: Keith Packard <keithp@keithp.com>
---
 lib/asciidoctor/pdf/theme_loader.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/asciidoctor/pdf/theme_loader.rb b/lib/asciidoctor/pdf/theme_loader.rb
index 30613aa..ad71b16 100644
--- a/lib/asciidoctor/pdf/theme_loader.rb
+++ b/lib/asciidoctor/pdf/theme_loader.rb
@@ -9,7 +9,7 @@ class ThemeLoader
       include ::Asciidoctor::PDF::Measurements
       include ::Asciidoctor::Logging
 
-      DataDir = ::File.absolute_path %(#{__dir__}/../../../data)
+      DataDir = '/usr/share/ruby-asciidoctor-pdf/data'
       ThemesDir = ::File.join DataDir, 'themes'
       FontsDir = ::File.join DataDir, 'fonts'
       BaseThemePath = ::File.join ThemesDir, 'base-theme.yml'