Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/pymacs/
Date: Mon, 27 Feb 2023 00:05:39
Message-Id: 1677456327.73cc7110fe1f2bf40e3373a5ee3055da27db7cf3.xgqt@gentoo
1 commit: 73cc7110fe1f2bf40e3373a5ee3055da27db7cf3
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 26 23:55:57 2023 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 00:05:27 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73cc7110
7
8 app-emacs/pymacs: enable python 3.11
9
10 Closes: https://bugs.gentoo.org/896536
11 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
12
13 app-emacs/pymacs/pymacs-0.26-r3.ebuild | 19 +++++++++++++------
14 1 file changed, 13 insertions(+), 6 deletions(-)
15
16 diff --git a/app-emacs/pymacs/pymacs-0.26-r3.ebuild b/app-emacs/pymacs/pymacs-0.26-r3.ebuild
17 index 648ad8f83a57..b17150d95bb4 100644
18 --- a/app-emacs/pymacs/pymacs-0.26-r3.ebuild
19 +++ b/app-emacs/pymacs/pymacs-0.26-r3.ebuild
20 @@ -3,26 +3,29 @@
21
22 EAPI=8
23
24 -PYTHON_COMPAT=( python3_{9,10} )
25 +# Can not use "DISTUTILS_USE_PEP517" because we need "DISTUTILS_IN_SOURCE_BUILD".
26 DISTUTILS_IN_SOURCE_BUILD=1
27 +PYTHON_COMPAT=( python3_{9..11} )
28
29 inherit elisp distutils-r1
30
31 DESCRIPTION="A tool that allows both-side communication between Python and Emacs Lisp"
32 HOMEPAGE="https://www.emacswiki.org/emacs/PyMacs"
33 -SRC_URI="https://github.com/dgentry/${PN^}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
34 +SRC_URI="https://github.com/dgentry/${PN^}/archive/v${PV}.tar.gz
35 + -> ${P}.tar.gz"
36 +S="${WORKDIR}"/${P^}
37
38 LICENSE="GPL-2+"
39 SLOT="0"
40 KEYWORDS="amd64 arm ~hppa ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
41 IUSE="doc"
42
43 -BDEPEND="doc? (
44 +BDEPEND="
45 + doc? (
46 >=dev-python/docutils-0.7
47 virtual/latex-base
48 - )"
49 -
50 -S="${WORKDIR}/${P^}"
51 + )
52 +"
53
54 SITEFILE="50${PN}-gentoo.el"
55
56 @@ -35,6 +38,7 @@ python_configure() {
57 # called once
58 python_compile_all() {
59 elisp_src_compile
60 +
61 if use doc; then
62 VARTEXFONTS="${T}"/fonts emake RST2LATEX=rst2latex.py pymacs.pdf
63 fi
64 @@ -42,7 +46,10 @@ python_compile_all() {
65
66 python_install_all() {
67 elisp_src_install
68 +
69 distutils-r1_python_install_all
70 +
71 dodoc pymacs.rst
72 +
73 use doc && dodoc pymacs.pdf
74 }