updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / dbtoepub / dbtoepub.patch
blob3214bb0883c1c9afa629d503d3dba7078292cb78
1 diff -uNr bin.org/dbtoepub bin/dbtoepub
2 --- bin.org/dbtoepub 2011-10-30 12:11:53.386513024 +0100
3 +++ bin/dbtoepub 2011-10-30 13:07:20.867922640 +0100
4 @@ -24,7 +24,7 @@
5 require 'optparse'
6 require 'tmpdir'
8 -require 'docbook'
9 +require 'dbtoepub/docbook'
11 verbose = false
12 debug = false
13 diff -uNr bin.org/lib/docbook.rb bin/lib/docbook.rb
14 --- bin.org/lib/docbook.rb 2011-10-30 12:11:53.386513024 +0100
15 +++ bin/lib/docbook.rb 2011-10-30 13:07:20.867922640 +0100
16 @@ -5,9 +5,10 @@
18 class Epub
19 CHECKER = "epubcheck"
20 - STYLESHEET = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', "docbook.xsl"))
21 + STYLESHEET_PATH = "/usr/share/xml/docbook/xsl-stylesheets-1.76.1/epub"
22 + STYLESHEET = File.expand_path(File.join(STYLESHEET_PATH, "docbook.xsl"))
23 CALLOUT_PATH = File.join('images', 'callouts')
24 - CALLOUT_FULL_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', CALLOUT_PATH))
25 + CALLOUT_FULL_PATH = File.expand_path(File.join(STYLESHEET_PATH, CALLOUT_PATH))
26 CALLOUT_LIMIT = 15
27 CALLOUT_EXT = ".png"
28 XSLT_PROCESSOR = "xsltproc"