diff options
Diffstat (limited to 'app-text/dblatex/files')
3 files changed, 76 insertions, 0 deletions
diff --git a/app-text/dblatex/files/dblatex-0.3.11-no-inkscape-dependency.patch b/app-text/dblatex/files/dblatex-0.3.11-no-inkscape-dependency.patch new file mode 100644 index 000000000000..18695b52a5ee --- /dev/null +++ b/app-text/dblatex/files/dblatex-0.3.11-no-inkscape-dependency.patch @@ -0,0 +1,14 @@ +diff -Naur dblatex-0.3.11py3/lib/dbtexmf/core/imagedata.py dblatex-0.3.11py3-new/lib/dbtexmf/core/imagedata.py +--- dblatex-0.3.11py3/lib/dbtexmf/core/imagedata.py 2020-01-29 13:48:33.000000000 -0800 ++++ dblatex-0.3.11py3-new/lib/dbtexmf/core/imagedata.py 2020-02-25 00:45:35.627054621 -0800 +@@ -181,8 +181,8 @@ + class SvgConverter(ImageConverter): + def __init__(self, imgsrc, imgdst="", docformat="", backend=""): + ImageConverter.__init__(self, imgsrc="svg", imgdst=imgdst) +- self.add_command(["inkscape", "-z", "-D", "--export-%(dst)s=%(output)s", +- "%(input)s"]) ++ self.add_command(["rsvg-convert", "-f", "%(dst)s", "-o","%(output)s", ++ "%(input)s"]) + + + class FormatRule: diff --git a/app-text/dblatex/files/dblatex-0.3.11-path-logging.patch b/app-text/dblatex/files/dblatex-0.3.11-path-logging.patch new file mode 100644 index 000000000000..3d6162848fec --- /dev/null +++ b/app-text/dblatex/files/dblatex-0.3.11-path-logging.patch @@ -0,0 +1,15 @@ +diff -Naur dblatex-0.3.11py3/scripts/dblatex dblatex-0.3.11py3-new/scripts/dblatex +--- dblatex-0.3.11py3/scripts/dblatex 2020-01-29 13:48:34.000000000 -0800 ++++ dblatex-0.3.11py3-new/scripts/dblatex 2020-02-25 01:04:16.169346434 -0800 +@@ -1,8 +1,10 @@ + #! /usr/bin/env python + import sys + import os ++import logging + +-package_base = os.path.join(os.path.dirname(sys.argv[0]), "..") ++logging.basicConfig() ++package_base = "/usr/share/dblatex" + sys.path.insert(0, os.path.realpath(os.path.join(package_base, "lib"))) + + from dbtexmf.dblatex import dblatex diff --git a/app-text/dblatex/files/dblatex-0.3.11-setup.patch b/app-text/dblatex/files/dblatex-0.3.11-setup.patch new file mode 100644 index 000000000000..802030118398 --- /dev/null +++ b/app-text/dblatex/files/dblatex-0.3.11-setup.patch @@ -0,0 +1,47 @@ +diff -Naur dblatex-0.3.11py3/setup.py dblatex-0.3.11py3-new/setup.py +--- dblatex-0.3.11py3/setup.py 2020-01-29 13:48:34.000000000 -0800 ++++ dblatex-0.3.11py3-new/setup.py 2020-02-27 20:25:21.669297793 -0800 +@@ -26,7 +26,6 @@ + from distutils import log + from subprocess import Popen, PIPE + sys.path.append("lib") +-from contrib.debian.installer import DebianInstaller + + # + # Build the command line script +@@ -192,7 +191,7 @@ + log.info("running build_doc") + htmldir = os.path.join("docs", "xhtml") + pdfdocs = glob.glob(os.path.join("docs", "[mr]*.pdf")) +- manpage = os.path.join("docs", "manpage", "dblatex.1.gz") ++ manpage = os.path.join("docs", "manpage", "dblatex.1") + + # Lazy check to avoid a rebuild for nothing + if (not(self.force) and os.path.exists(htmldir) and len(pdfdocs) >= 2 +@@ -368,15 +367,12 @@ + status += "no" + mis_stys.append(sty) + print(status) +- ++ + if mis_stys: + raise OSError("not found: %s" % ", ".join(mis_stys)) + + def run(self): +- if self.install_layout == "deb": +- db = DebianInstaller(self) +- else: +- db = None ++ db = None + + if not(db) and not(self.nodeps): + try: +@@ -515,7 +511,7 @@ + data_files=[('share/dblatex', ['xsl', 'latex', 'etc/schema']), + ('share/doc/dblatex', pdfdocs), + ('share/doc/dblatex', htmldoc), +- ('share/man/man1', ['docs/manpage/dblatex.1.gz'])], ++ ('share/man/man1', ['docs/manpage/dblatex.1'])], + scripts=['scripts/dblatex'], + cmdclass={'build': Build, + 'build_scripts': BuildScripts, |