diff options
author | Amy Winston <amynka@gentoo.org> | 2015-11-09 01:26:52 +0100 |
---|---|---|
committer | Amy Winston <amynka@gentoo.org> | 2015-11-09 01:26:52 +0100 |
commit | 337e2f7b91b016c1f1181e2125c0e74da7497ba4 (patch) | |
tree | 69df4661af773b939623a7c0193e808c14ea5b96 /app-text/dblatex | |
parent | dev-python/pypy-bin: Add binpackages for 4.0.0 (diff) | |
download | gentoo-337e2f7b91b016c1f1181e2125c0e74da7497ba4.tar.gz gentoo-337e2f7b91b016c1f1181e2125c0e74da7497ba4.tar.bz2 gentoo-337e2f7b91b016c1f1181e2125c0e74da7497ba4.zip |
app-text/dblatex: New ebuild for dblatex-0.3.7. By Zoltan Puskas.
DocBook to LaTeX Publishing package built using Python
Gentoo-Bug: #129368
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'app-text/dblatex')
-rw-r--r-- | app-text/dblatex/Manifest | 1 | ||||
-rw-r--r-- | app-text/dblatex/dblatex-0.3.7.ebuild | 44 | ||||
-rw-r--r-- | app-text/dblatex/files/dblatex-no-inkscape-dependency.patch | 12 | ||||
-rw-r--r-- | app-text/dblatex/files/dblatex-path-logging.patch | 15 | ||||
-rw-r--r-- | app-text/dblatex/files/dblatex-setup.patch | 28 | ||||
-rw-r--r-- | app-text/dblatex/metadata.xml | 15 |
6 files changed, 115 insertions, 0 deletions
diff --git a/app-text/dblatex/Manifest b/app-text/dblatex/Manifest new file mode 100644 index 000000000000..d38134bee856 --- /dev/null +++ b/app-text/dblatex/Manifest @@ -0,0 +1 @@ +DIST dblatex-0.3.7.tar.bz2 1513975 SHA256 59ce3fdfd4d6cf44beb8705d9267b7be7cb32d4f826834c861c5b7016c7e722e SHA512 7f7111dfe7d880a93679422a43700787755ebee7f17483b4bc5a8ce55c521d7fe0baeb4890a910b9007141d63a3e3b8f50347e68001ad7c1a14916920e11a40c WHIRLPOOL df27896ecf5f2f194fb51f9e6a566c324495c9fb9c1217514af97b5c30fc2dc0dd5a7aa9bb71daf36a4329101a90f7743d9c5962b8a2fbe994773320d3cf937e diff --git a/app-text/dblatex/dblatex-0.3.7.ebuild b/app-text/dblatex/dblatex-0.3.7.ebuild new file mode 100644 index 000000000000..41322e53da56 --- /dev/null +++ b/app-text/dblatex/dblatex-0.3.7.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils + +DESCRIPTION="Transform DocBook using TeX macros" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +HOMEPAGE="http://dblatex.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + app-text/texlive + dev-texlive/texlive-htmlxml + dev-texlive/texlive-latexextra + dev-texlive/texlive-latexrecommended + dev-texlive/texlive-mathextra + dev-texlive/texlive-pictures + dev-texlive/texlive-xetex + dev-libs/libxslt + app-text/docbook-xml-dtd:4.5 + gnome-base/librsvg +" +DEPEND="${RDEPEND}" + +python_prepare_all() { + distutils-r1_python_prepare_all + EPATCH_SOURCE="${FILESDIR}" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch +} + +python_install_all() { + python_doscript "${S}"/scripts/dblatex + python_optimize + distutils-r1_python_install_all + # move package documentation to a folder name containing version number + mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die "mv doc" +} diff --git a/app-text/dblatex/files/dblatex-no-inkscape-dependency.patch b/app-text/dblatex/files/dblatex-no-inkscape-dependency.patch new file mode 100644 index 000000000000..1d032f4ac26c --- /dev/null +++ b/app-text/dblatex/files/dblatex-no-inkscape-dependency.patch @@ -0,0 +1,12 @@ +diff -Naur dblatex-0.3.7-orig/lib/dbtexmf/core/imagedata.py dblatex-0.3.7/lib/dbtexmf/core/imagedata.py +--- dblatex-0.3.7-orig/lib/dbtexmf/core/imagedata.py 2015-08-07 10:47:53.000000000 +0100 ++++ dblatex-0.3.7/lib/dbtexmf/core/imagedata.py 2015-11-08 22:36:41.771457222 +0000 +@@ -66,7 +66,7 @@ + + class SvgConverter(ImageConverter): + def convert(self, input, output, format, doexec=1): +- cmd = "inkscape -z -D --export-%s=%s \"%s\"" % (format, output, input) ++ cmd = "rsvg-convert -f %s -o \"%s\" \"%s\"" % (format, output, input) + return self.system(cmd, doexec) + + diff --git a/app-text/dblatex/files/dblatex-path-logging.patch b/app-text/dblatex/files/dblatex-path-logging.patch new file mode 100644 index 000000000000..7f0fdb6c52a6 --- /dev/null +++ b/app-text/dblatex/files/dblatex-path-logging.patch @@ -0,0 +1,15 @@ +diff -Naur dblatex-0.3.7-orig/scripts/dblatex dblatex-0.3.7/scripts/dblatex +--- dblatex-0.3.7-orig/scripts/dblatex 2015-08-07 10:47:53.000000000 +0100 ++++ dblatex-0.3.7/scripts/dblatex 2015-11-08 22:30:50.362571505 +0000 +@@ -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.append(os.path.realpath(os.path.join(package_base, "lib"))) + + from dbtexmf.dblatex import dblatex diff --git a/app-text/dblatex/files/dblatex-setup.patch b/app-text/dblatex/files/dblatex-setup.patch new file mode 100644 index 000000000000..f6cf4a24283e --- /dev/null +++ b/app-text/dblatex/files/dblatex-setup.patch @@ -0,0 +1,28 @@ +--- dblatex-0.3.7-orig/setup.py 2015-08-07 10:47:53.000000000 +0100 ++++ dblatex-0.3.7/setup.py 2015-11-08 22:39:03.076213227 +0000 +@@ -23,7 +23,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 +@@ -363,15 +362,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: diff --git a/app-text/dblatex/metadata.xml b/app-text/dblatex/metadata.xml new file mode 100644 index 000000000000..fe1a81965cf2 --- /dev/null +++ b/app-text/dblatex/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>zoltan@sinustrom.info</email> + <name>Zoltan Puskas</name> + <description>Proxied maintainer. Assign bugs to him.</description> + </maintainer> + <longdescription> + dbaltex is an opensource DocBook to LaTeX publishing software + that originally started as DB2LaTeX clone, but now is more + feature rich and easier to use. + </longdescription> +</pkgmetadata> |