public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dblatex/
Date: Mon, 14 Oct 2024 07:16:56 +0000 (UTC)	[thread overview]
Message-ID: <1728890037.0285982df8103da5c13c35ea8a4da8d413984ec3.flow@gentoo> (raw)

commit:     0285982df8103da5c13c35ea8a4da8d413984ec3
Author:     Zoltan Puskas <zoltan <AT> sinustrom <DOT> info>
AuthorDate: Sun Oct 13 07:33:51 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Oct 14 07:13:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0285982d

app-text/dblatex: Update imagemagick dependency

Allow users to choose their implementation of imagemagick via
virtual/imagemagick-tools

Closes: https://bugs.gentoo.org/939880
Signed-off-by: Zoltan Puskas <zoltan <AT> sinustrom.info>
Closes: https://github.com/gentoo/gentoo/pull/38969
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 app-text/dblatex/dblatex-0.3.12-r4.ebuild | 95 +++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)

diff --git a/app-text/dblatex/dblatex-0.3.12-r4.ebuild b/app-text/dblatex/dblatex-0.3.12-r4.ebuild
new file mode 100644
index 000000000000..4766dc378243
--- /dev/null
+++ b/app-text/dblatex/dblatex-0.3.12-r4.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="Transform DocBook using TeX macros"
+HOMEPAGE="https://dblatex.sourceforge.net/"
+SRC_URI="https://downloads.sourceforge.net/project/dblatex/dblatex/${P}/${PN}3-${PV}.tar.bz2"
+S="${WORKDIR}/${PN}3-${PV}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="inkscape test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	app-text/docbook-xml-dtd:4.5
+	dev-libs/kpathsea
+	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-pictures
+	dev-texlive/texlive-xetex
+	gnome-base/librsvg
+	virtual/imagemagick-tools
+	>=media-gfx/fig2dev-3.2.9-r1
+	inkscape? ( media-gfx/inkscape )
+"
+DEPEND="
+	${RDEPEND}
+"
+BDEPEND="
+	${RDEPEND}
+	test? ( ~${CATEGORY}/${P}[${PYTHON_USEDEP}] )
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-0.3.11-path-logging.patch"
+	"${FILESDIR}/${PN}-0.3.11-setup.patch"
+	"${FILESDIR}/${PN}-0.3.11-encode.patch"
+	"${FILESDIR}/${P}-replace-imp-by-importlib.patch"
+	"${FILESDIR}/${P}-adjust-submodule-imports.patch"
+)
+
+python_prepare_all() {
+	# Manual page is precomressed, but we will use our own compression later.
+	gunzip docs/manpage/dblatex.1.gz || die
+	if use inkscape; then
+		# If we use inscape we want to make dblatex compatible with v1.0
+		eapply "${FILESDIR}/${PN}-0.3.11-inkscape-1.0.patch"
+	else
+		# If we don't have inkscape we need to use an alternative SVG converter
+		eapply "${FILESDIR}/${PN}-0.3.11-no-inkscape-dependency.patch"
+	fi
+
+	distutils-r1_python_prepare_all
+}
+
+python_install() {
+	distutils-r1_python_install
+
+	# After migrating to PEP517 setuptool's distutils behaves a bit differently.
+	# Rather than rewriting the entire build setup we follow Debian's path with
+	# a predefined script.
+	python_newscript - dblatex <<-EOF
+		#!${EPREFIX}/usr/bin/python
+		import sys
+		import os
+
+		package_base = r"${EPREFIX}/usr/share/dblatex"
+
+		from dbtexmf.dblatex import dblatex
+		dblatex.main(base=package_base)
+	EOF
+}
+
+python_install_all() {
+	distutils-r1_python_install_all
+
+	# Move package documentation to a folder name containing version number
+	mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die
+}
+
+python_test() {
+	emake -C tests/mathml
+}


             reply	other threads:[~2024-10-14  7:17 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-14  7:16 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-17  5:49 [gentoo-commits] repo/gentoo:master commit in: app-text/dblatex/ Joonas Niilola
2024-10-13 11:43 Jakov Smolić
2024-06-13 10:37 Michał Górny
2024-06-13 10:37 Michał Górny
2023-12-23 18:24 Sam James
2023-12-23 18:24 Sam James
2023-12-23 18:24 Sam James
2023-12-17 17:40 Arthur Zamarin
2023-12-17 17:40 Arthur Zamarin
2023-12-16  9:28 Joonas Niilola
2023-12-16  8:06 Joonas Niilola
2023-11-13  7:34 Sam James
2023-05-20  5:09 Sam James
2023-05-01  9:53 Sam James
2023-05-01  7:55 Arthur Zamarin
2023-04-05 19:09 Sam James
2023-04-05 10:10 Arthur Zamarin
2023-04-05  9:30 Arthur Zamarin
2023-04-05  9:30 Arthur Zamarin
2023-04-05  8:40 Arthur Zamarin
2023-04-05  7:01 Matthew Smith
2023-04-05  6:56 Matthew Smith
2023-03-05  6:34 WANG Xuerui
2022-11-13 11:39 Sam James
2022-10-08 17:09 Sam James
2022-09-27 21:44 Sam James
2022-06-10  6:49 Sam James
2022-03-20 19:08 Arthur Zamarin
2021-08-22 10:26 Marek Szuba
2021-05-29 15:33 Sam James
2021-03-08 14:15 Sam James
2021-02-25  4:18 Sam James
2021-02-25  3:55 Sam James
2021-02-22 18:57 Sam James
2021-02-21 19:50 Sam James
2021-02-21  9:55 Sam James
2021-02-19  0:44 Sam James
2021-02-17  7:36 Sergei Trofimovich
2021-02-16 18:39 Sam James
2021-02-16 18:39 Sam James
2021-02-11  7:36 Sergei Trofimovich
2021-02-10 18:26 Sam James
2021-02-01 18:04 Sergei Trofimovich
2020-09-04 15:17 Sam James
2020-09-02  0:19 Sam James
2020-08-05 12:19 Joonas Niilola
2020-04-13 17:21 Agostino Sarubbo
2020-04-13 14:49 Agostino Sarubbo
2020-04-13 14:48 Agostino Sarubbo
2020-03-03  6:03 Joonas Niilola
2019-01-23 13:41 Mikle Kolyada
2018-04-09 19:30 Andreas Sturmlechner
2018-02-11 10:25 Michał Górny
2018-01-10  6:19 Markus Meier
2018-01-08 22:05 Mikle Kolyada
2015-11-15 10:57 Alexis Ballier

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=1728890037.0285982df8103da5c13c35ea8a4da8d413984ec3.flow@gentoo \
    --to=flow@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