commit:     60404288705b3df37bc04b1bbfe69a7704a3a4f2
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  4 13:53:22 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Apr  4 14:15:47 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60404288

sci-mathematics/alectryon: fix setup.cfg; add DISTUTILS_USE_PEP517

Bug: https://github.com/cpitclaudel/alectryon/pull/80
Closes: https://bugs.gentoo.org/836748
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 .../{alectryon-1.4.0.ebuild => alectryon-1.4.0-r1.ebuild}     |  2 ++
 .../alectryon/files/alectryon-1.4.0-setup.cfg-version.patch   | 11 +++++++++++
 2 files changed, 13 insertions(+)

diff --git a/sci-mathematics/alectryon/alectryon-1.4.0.ebuild 
b/sci-mathematics/alectryon/alectryon-1.4.0-r1.ebuild
similarity index 95%
rename from sci-mathematics/alectryon/alectryon-1.4.0.ebuild
rename to sci-mathematics/alectryon/alectryon-1.4.0-r1.ebuild
index bdbf53a0c35b..a15045952615 100644
--- a/sci-mathematics/alectryon/alectryon-1.4.0.ebuild
+++ b/sci-mathematics/alectryon/alectryon-1.4.0-r1.ebuild
@@ -3,6 +3,7 @@
 
 EAPI=8
 
+DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{8..10} )
 
 inherit elisp-common distutils-r1
@@ -42,6 +43,7 @@ BDEPEND="
 "
 
 DOCS=( CHANGES.rst CITATION.bib README.rst )
+PATCHES=( "${FILESDIR}"/${P}-setup.cfg-version.patch )
 SITEFILE="50${PN}-gentoo.el"
 
 src_compile() {

diff --git 
a/sci-mathematics/alectryon/files/alectryon-1.4.0-setup.cfg-version.patch 
b/sci-mathematics/alectryon/files/alectryon-1.4.0-setup.cfg-version.patch
new file mode 100644
index 000000000000..9445c0857f0d
--- /dev/null
+++ b/sci-mathematics/alectryon/files/alectryon-1.4.0-setup.cfg-version.patch
@@ -0,0 +1,11 @@
+index 1a25a92..066089b 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -1,6 +1,6 @@
+ [metadata]
+ name = alectryon
+-version = attr: alectryon.__version__
++version = attr: alectryon.__init__.__version__
+ description = A library to process Coq snippets embedded in documents, 
showing goals and messages for each Coq sentence.
+ long_description = file: README.rst
+ url = https://github.com/cpitclaudel/alectryon

Reply via email to