From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6FEE0158089 for ; Mon, 13 Nov 2023 07:34:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 429402BC01F; Mon, 13 Nov 2023 07:34:51 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 264B12BC01F for ; Mon, 13 Nov 2023 07:34:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0DA6A335D80 for ; Mon, 13 Nov 2023 07:34:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4EC5912F4 for ; Mon, 13 Nov 2023 07:34:48 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1699860631.743affca25bc57cb1e19a0e4efdcf1f7db936ecb.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dblatex/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/dblatex/dblatex-0.3.12-r2.ebuild X-VCS-Directories: app-text/dblatex/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 743affca25bc57cb1e19a0e4efdcf1f7db936ecb X-VCS-Branch: master Date: Mon, 13 Nov 2023 07:34:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d94cd497-fc85-4921-8608-63ac09c869fd X-Archives-Hash: 1a2d99064e31ced8c304f05e185f5586 commit: 743affca25bc57cb1e19a0e4efdcf1f7db936ecb Author: Sam James gentoo org> AuthorDate: Mon Nov 13 07:30:31 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Nov 13 07:30:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=743affca app-text/dblatex: migrate to fig2dev Closes: https://bugs.gentoo.org/917247 Signed-off-by: Sam James gentoo.org> app-text/dblatex/dblatex-0.3.12-r2.ebuild | 69 +++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/app-text/dblatex/dblatex-0.3.12-r2.ebuild b/app-text/dblatex/dblatex-0.3.12-r2.ebuild new file mode 100644 index 000000000000..6902a9a37b05 --- /dev/null +++ b/app-text/dblatex/dblatex-0.3.12-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +# Breaks installation of /usr/bin/dblatex, bug #906788 +#DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="Transform DocBook using TeX macros" +HOMEPAGE="http://dblatex.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/project/dblatex/dblatex/${P}/${PN}3-${PV}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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-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 + media-gfx/imagemagick + >=media-gfx/fig2dev-3.2.9-r1 + inkscape? ( media-gfx/inkscape ) +" +DEPEND="${RDEPEND}" +BDEPEND="${RDEPEND} + test? ( ~${CATEGORY}/${P} )" + +S="${WORKDIR}/${PN}3-${PV}" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.11-path-logging.patch" + "${FILESDIR}/${PN}-0.3.11-setup.patch" + "${FILESDIR}/${PN}-0.3.11-encode.patch" +) + +python_prepare_all() { + # Manual page is precomressed, but we will use our own compression later. + gunzip docs/manpage/dblatex.1.gz || die + # If we dont have inkscape we need to use an alternative SVG converter + use inkscape || eapply "${FILESDIR}/${PN}-0.3.11-no-inkscape-dependency.patch" + # If we use inscape however we want to make dblatex compatible with v1.0 + use inkscape && eapply "${FILESDIR}/${PN}-0.3.11-inkscape-1.0.patch" + distutils-r1_python_prepare_all +} + +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 +} + +python_test_all() { + emake -C tests/mathml +}