public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dblatex/files/, app-text/dblatex/
Date: Fri, 13 Oct 2017 16:26:20 +0000 (UTC)	[thread overview]
Message-ID: <1507911972.217d1834d5b9199635ffb21157d28bee28f6f94e.mgorny@gentoo> (raw)

commit:     217d1834d5b9199635ffb21157d28bee28f6f94e
Author:     Zoltan Puskas <zoltan <AT> sinustrom <DOT> info>
AuthorDate: Mon Jun 26 04:11:10 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct 13 16:26:12 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=217d1834

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

 app-text/dblatex/Manifest                          |  1 +
 ...{dblatex-0.3.7.ebuild => dblatex-0.3.10.ebuild} | 35 ++++++++++++++--------
 app-text/dblatex/dblatex-0.3.7.ebuild              |  4 ++-
 .../dblatex-0.3.10-no-inkscape-dependency.patch    | 14 +++++++++
 ... => dblatex-0.3.7-no-inkscape-dependency.patch} |  0
 app-text/dblatex/metadata.xml                      |  3 ++
 6 files changed, 44 insertions(+), 13 deletions(-)

diff --git a/app-text/dblatex/Manifest b/app-text/dblatex/Manifest
index d38134bee85..a76bb05e84c 100644
--- a/app-text/dblatex/Manifest
+++ b/app-text/dblatex/Manifest
@@ -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

diff --git a/app-text/dblatex/dblatex-0.3.7.ebuild b/app-text/dblatex/dblatex-0.3.10.ebuild
similarity index 61%
copy from app-text/dblatex/dblatex-0.3.7.ebuild
copy to app-text/dblatex/dblatex-0.3.10.ebuild
index 4f45d485f7e..54a1779de91 100644
--- a/app-text/dblatex/dblatex-0.3.7.ebuild
+++ b/app-text/dblatex/dblatex-0.3.10.ebuild
@@ -1,42 +1,53 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
+EAPI="6"
 PYTHON_COMPAT=( python2_7 )
 
-inherit distutils-r1 eutils
+inherit distutils-r1
 
 DESCRIPTION="Transform DocBook using TeX macros"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
 HOMEPAGE="http://dblatex.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE=""
+KEYWORDS="~amd64 ~x86"
+IUSE="inkscape"
 
 RDEPEND="
-	app-text/texlive
+	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
-	dev-libs/libxslt
-	app-text/docbook-xml-dtd:4.5
 	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
-	EPATCH_SOURCE="${FILESDIR}" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch
 }
 
-python_install_all() {
+python_install() {
+	distutils-r1_python_install
 	python_doscript "${S}"/scripts/dblatex
-	python_optimize
+}
+
+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 "mv doc"
+	mv "${D%/}"/usr/share/doc/${PN} "${D%/}"/usr/share/doc/${PF} || die
 }

diff --git a/app-text/dblatex/dblatex-0.3.7.ebuild b/app-text/dblatex/dblatex-0.3.7.ebuild
index 4f45d485f7e..4b0581e1274 100644
--- a/app-text/dblatex/dblatex-0.3.7.ebuild
+++ b/app-text/dblatex/dblatex-0.3.7.ebuild
@@ -30,7 +30,9 @@ DEPEND="${RDEPEND}"
 
 python_prepare_all() {
 	distutils-r1_python_prepare_all
-	EPATCH_SOURCE="${FILESDIR}" EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch
+	epatch "${FILESDIR}/${P}-no-inkscape-dependency.patch"
+	epatch "${FILESDIR}/${PN}-path-logging.patch"
+	epatch "${FILESDIR}/${PN}-setup.patch"
 }
 
 python_install_all() {

diff --git a/app-text/dblatex/files/dblatex-0.3.10-no-inkscape-dependency.patch b/app-text/dblatex/files/dblatex-0.3.10-no-inkscape-dependency.patch
new file mode 100644
index 00000000000..225c73964a5
--- /dev/null
+++ b/app-text/dblatex/files/dblatex-0.3.10-no-inkscape-dependency.patch
@@ -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:

diff --git a/app-text/dblatex/files/dblatex-no-inkscape-dependency.patch b/app-text/dblatex/files/dblatex-0.3.7-no-inkscape-dependency.patch
similarity index 100%
rename from app-text/dblatex/files/dblatex-no-inkscape-dependency.patch
rename to app-text/dblatex/files/dblatex-0.3.7-no-inkscape-dependency.patch

diff --git a/app-text/dblatex/metadata.xml b/app-text/dblatex/metadata.xml
index 943df18371e..33912835a88 100644
--- a/app-text/dblatex/metadata.xml
+++ b/app-text/dblatex/metadata.xml
@@ -10,6 +10,9 @@
         <email>proxy-maint@gentoo.org</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


             reply	other threads:[~2017-10-13 16:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-13 16:26 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-02-21 18:21 [gentoo-commits] repo/gentoo:master commit in: app-text/dblatex/files/, app-text/dblatex/ Patrice Clement
2020-05-18 13:23 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1507911972.217d1834d5b9199635ffb21157d28bee28f6f94e.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox