From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1620795-garchives=archives.gentoo.org@lists.gentoo.org>
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 CDEC9158043
	for <garchives@archives.gentoo.org>; Sun, 14 Apr 2024 07:49:43 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B6619E2A20;
	Sun, 14 Apr 2024 07:49:42 +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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 83587E2A20
	for <gentoo-commits@lists.gentoo.org>; Sun, 14 Apr 2024 07:49:42 +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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 8B1E234337B
	for <gentoo-commits@lists.gentoo.org>; Sun, 14 Apr 2024 07:49:41 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id E6AEF9B6
	for <gentoo-commits@lists.gentoo.org>; Sun, 14 Apr 2024 07:49:39 +0000 (UTC)
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org>
Message-ID: <1713080892.4f7ce08c648151e5b872a13be98b493b74d7e670.ulm@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/pymacs/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-emacs/pymacs/pymacs-0.26-r5.ebuild
X-VCS-Directories: app-emacs/pymacs/
X-VCS-Committer: ulm
X-VCS-Committer-Name: Ulrich Müller
X-VCS-Revision: 4f7ce08c648151e5b872a13be98b493b74d7e670
X-VCS-Branch: master
Date: Sun, 14 Apr 2024 07:49:39 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: aaa9c145-d2f4-4113-8a66-a4aebc66721f
X-Archives-Hash: fcbf512065e70fd2dc33edc267749cd4

commit:     4f7ce08c648151e5b872a13be98b493b74d7e670
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 14 07:38:06 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Apr 14 07:48:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f7ce08c

app-emacs/pymacs: Locate rst2latex{,.py} command

Closes: https://bugs.gentoo.org/929979
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-emacs/pymacs/pymacs-0.26-r5.ebuild | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/app-emacs/pymacs/pymacs-0.26-r5.ebuild b/app-emacs/pymacs/pymacs-0.26-r5.ebuild
index 0cc4eacd125b..5d51948e9238 100644
--- a/app-emacs/pymacs/pymacs-0.26-r5.ebuild
+++ b/app-emacs/pymacs/pymacs-0.26-r5.ebuild
@@ -12,7 +12,7 @@ DESCRIPTION="A tool that allows both-side communication between Python and Emacs
 HOMEPAGE="https://www.emacswiki.org/emacs/PyMacs
 	https://github.com/dgentry/Pymacs/"
 
-if [[ "${PV}" == *9999* ]] ; then
+if [[ ${PV} == *9999* ]]; then
 	inherit git-r3
 
 	EGIT_REPO_URI="https://github.com/dgentry/${PN^}.git"
@@ -35,7 +35,7 @@ BDEPEND="
 	)
 "
 
-PATCHES=( "${FILESDIR}/${PN}-0.26-setup.patch"  )
+PATCHES=( "${FILESDIR}/${PN}-0.26-setup.patch" )
 
 DOCS=( "${PN}.rst" )
 SITEFILE="50${PN}-gentoo.el"
@@ -49,7 +49,9 @@ src_compile() {
 	elisp_src_compile
 
 	if use doc; then
-		VARTEXFONTS="${T}/fonts" emake RST2LATEX="rst2latex.py" "${PN}.pdf"
+		# docutils 0.21.1 renamed rst2latex.py to rst2latex
+		local r2l=$(command -v rst2latex || command -v rst2latex.py || die)
+		VARTEXFONTS="${T}"/fonts emake RST2LATEX="${r2l}" ${PN}.pdf
 	fi
 }
 
@@ -57,5 +59,5 @@ src_install() {
 	distutils-r1_src_install
 	elisp_src_install
 
-	use doc && dodoc "${PN}.pdf"
+	use doc && dodoc ${PN}.pdf
 }