forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-text/dblatex: Bump to 0.3.10 version
(also fixes \@xmultirow macro issue) Closes: https://bugs.gentoo.org/614554 Package-Manager: Portage-2.3.6, Repoman-2.3.2
- Loading branch information
Showing
6 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST dblatex-0.3.10.tar.bz2 1668202 SHA256 6fd696b740e0044ae1caf843d225d98c01b6ed916550384544e7e31c0c6a2cfa SHA512 33a5ee3d23d3b9a1576be248a312ca741ea7cb629334a98fb6cb49e0f0f932334506ea934312de04ec645c86ec52699687bd2574b1802d3c23815b44c8514b7b WHIRLPOOL e0d1743f9b37fb4c05b03f38fc7af79605c19c3271e302dc492f089476f79403ad9b17d6cd5bac9ef3cba67fa4c07002bfdb92fe143e4c1aea2c6768835f346c | ||
DIST dblatex-0.3.7.tar.bz2 1513975 SHA256 59ce3fdfd4d6cf44beb8705d9267b7be7cb32d4f826834c861c5b7016c7e722e SHA512 7f7111dfe7d880a93679422a43700787755ebee7f17483b4bc5a8ce55c521d7fe0baeb4890a910b9007141d63a3e3b8f50347e68001ad7c1a14916920e11a40c WHIRLPOOL df27896ecf5f2f194fb51f9e6a566c324495c9fb9c1217514af97b5c30fc2dc0dd5a7aa9bb71daf36a4329101a90f7743d9c5962b8a2fbe994773320d3cf937e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI="6" | ||
PYTHON_COMPAT=( python2_7 ) | ||
|
||
inherit distutils-r1 | ||
|
||
DESCRIPTION="Transform DocBook using TeX macros" | ||
HOMEPAGE="http://dblatex.sourceforge.net/" | ||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="inkscape" | ||
|
||
RDEPEND=" | ||
app-text/docbook-xml-dtd:4.5 | ||
dev-libs/kpathsea | ||
dev-libs/libxslt | ||
dev-libs/libxslt | ||
dev-texlive/texlive-fontutils | ||
dev-texlive/texlive-latex | ||
dev-texlive/texlive-latexextra | ||
dev-texlive/texlive-latexrecommended | ||
|| ( dev-texlive/texlive-mathscience dev-texlive/texlive-mathextra ) | ||
dev-texlive/texlive-pictures | ||
dev-texlive/texlive-xetex | ||
gnome-base/librsvg | ||
media-gfx/imagemagick | ||
media-gfx/transfig | ||
inkscape? ( media-gfx/inkscape ) | ||
" | ||
DEPEND="${RDEPEND}" | ||
|
||
python_prepare_all() { | ||
use inkscape || eapply "${FILESDIR}/${P}-no-inkscape-dependency.patch" | ||
eapply "${FILESDIR}/${PN}-path-logging.patch" | ||
eapply "${FILESDIR}/${PN}-setup.patch" | ||
distutils-r1_python_prepare_all | ||
} | ||
|
||
python_install() { | ||
distutils-r1_python_install | ||
python_doscript "${S}"/scripts/dblatex | ||
} | ||
|
||
python_install_all() { | ||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
app-text/dblatex/files/dblatex-0.3.10-no-inkscape-dependency.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff -Naur dblatex-0.3.10-orig/lib/dbtexmf/core/imagedata.py dblatex-0.3.10/lib/dbtexmf/core/imagedata.py | ||
--- dblatex-0.3.10-orig/lib/dbtexmf/core/imagedata.py 2016-10-02 14:21:16.000000000 -0700 | ||
+++ dblatex-0.3.10/lib/dbtexmf/core/imagedata.py 2017-06-25 18:26:00.302168655 -0700 | ||
@@ -178,8 +178,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\"", | ||
+ "\"%(insput)s\""]) | ||
|
||
|
||
class FormatRule: |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ | |
<email>[email protected]</email> | ||
<name>Proxy Maintainers</name> | ||
</maintainer> | ||
<use> | ||
<flag name="inkscape">Use inkscape to convert SVG. Disable to use gnome-base/librsvg instead.</flag> | ||
</use> | ||
<longdescription> | ||
dbaltex is an opensource DocBook to LaTeX publishing software | ||
that originally started as DB2LaTeX clone, but now is more | ||
|